This project is read-only.
1

Resolved

Trying to view VB type under debugger broke debugger

description

When inspecting the properties of a NamedTypeSymbol, a property evaluation (CoClassType) threw an assert which tried to pop up a dialog. This caused my debugger to get into a wedged state.
System.dll!Microsoft.Win32.SafeNativeMethods.MessageBox(System.IntPtr hWnd, string text, string caption, int type) Line 71  C#
System.dll!System.Diagnostics.AssertWrapper.ShowMessageBoxAssert(string stackTrace, string message, string detailMessage) Line 139  C#
System.dll!System.Diagnostics.DefaultTraceListener.Fail(string message, string detailMessage) Line 108  C#
System.dll!System.Diagnostics.DefaultTraceListener.Fail(string message) Line 83 C#
System.dll!System.Diagnostics.TraceInternal.Fail(string message = "") Line 226  C#
System.dll!System.Diagnostics.Debug.Assert(bool condition) Line 100 C#
Microsoft.CodeAnalysis.VisualBasic.dll!Microsoft.CodeAnalysis.VisualBasic.Symbols.SourceNamedTypeSymbol.get_CoClassType() Line 1898 Basic
Evaluation of: Unknown evaluation   
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.VisualBasic.NavigationBar.VisualBasicNavigationBarItemService.CreateItemForEvents(Microsoft.CodeAnalysis.ITypeSymbol eventType = An internal error has occurred while evaluating method Microsoft.CodeAnalysis.VisualBasic.Symbol.GetDebuggerDisplay()., Microsoft.CodeAnalysis.Document document = Module1.vb, Microsoft.CodeAnalysis.SemanticModel semanticModel = {Microsoft.CodeAnalysis.VisualBasic.SyntaxTreeSemanticModel}, System.Threading.CancellationToken cancellationToken = IsCancellationRequested = False, Microsoft.CodeAnalysis.INamedTypeSymbol containingType = An internal error has occurred while evaluating method Microsoft.CodeAnalysis.VisualBasic.Symbol.GetDebuggerDisplay()., Microsoft.CodeAnalysis.IPropertySymbol eventContainer = Nothing) Line 245   Basic
We shouldn't have asserts fire under the debugger like this.

comments

VSadov wrote Apr 17, 2014 at 11:34 PM

Fixed in changeset caffab037184f72ef15c31f01c679a3282473ee0

jasonmalinowski wrote Apr 18, 2014 at 12:31 AM

Reactivating -- commit caaffab fixed a different issue, not this one.

VSadov wrote Apr 26, 2014 at 1:02 AM

Fixed in changeset 03fd44afd545936b759bf38f49103bed33b2d99c