This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
DebuggerExceptions while stepping through code #385
Closed
Description
When stepping through the code with F10 sometimes a DebuggerException occurs and debugger loses its context (application is still halted on some statement, but you don't see that in GUI). To get out of this strange state you have to add a breakpoint on a later statement and press F5.
Exception thrown:
Debugger.DebuggerException: Thread has exited
at Debugger.Thread.get_CorThread()
at Debugger.Thread.get_IsInValidState()
at Debugger.Thread.<get_Callstack>d__0.MoveNext()
at Debugger.Thread.get_MostRecentStackFrame()
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.debuggedProcess_DebuggingPaused(Object sender, DebuggerPausedEventArgs e)
at Debugger.Process.OnPaused(DebuggerPausedEventArgs e)
at Debugger.ManagedCallback.<>c__DisplayClass1.<ExitCallback>b__0()
at Debugger.MTA2STA.<>c__DisplayClass4.<EnqueueCall>b__1()
at Debugger.MTA2STA.PerformCall()
at Debugger.MTA2STA.PerformAllCalls()
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
It might happen occasionally on any statement, so I don't have a specific way to reproduce it.