Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 2832791

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main/src/addins/MonoDevelop.Debugger.Win32/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)