Skip to content

Commit 0c4d40f

Browse files
committed
Breakpoints.Clear() deactivates all the breakpoints. Otherwise COM exception may be thrown on Detach() or Terminate()
1 parent 7024b44 commit 0c4d40f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Mono.Debugging.Win32/CorDebuggerSession.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ void QueueToHelperThread (Action action)
158158
void TerminateDebugger ()
159159
{
160160
helperOperationsCancellationTokenSource.Cancel();
161+
Breakpoints.Clear ();
161162
lock (terminateLock) {
162163
if (terminated)
163164
return;

0 commit comments

Comments
 (0)