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

Commit 22fe7c0

Browse files
fix bug in "Pause on handled exception": Exception filter was not rebuilt after ignoring an exception from DebuggeeExceptionForm
1 parent 9d237df commit 22fe7c0

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/AddIns/Debugger/Debugger.AddIn/Service/DebuggeeExceptionForm.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
111111
entry.IsActive = false;
112112
}
113113
process.Debugger.Options.ExceptionFilterList = list;
114+
process.Debugger.ReloadOptions();
114115
}
115116
base.OnClosing(e);
116117
}

src/AddIns/Debugger/Debugger.Core/ManagedCallback.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ void ExitCallback()
141141
isInCallback = false;
142142
}
143143

144+
public void ReloadOptions()
145+
{
146+
exceptionFilter = null;
147+
}
148+
144149
#region Program folow control
145150

146151
public void StepComplete(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugStepper pStepper, CorDebugStepReason reason)

src/AddIns/Debugger/Debugger.Core/NDebugger.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,8 @@ public void ReloadOptions()
302302
bool isPaused = process.IsPaused;
303303
if (!isPaused)
304304
process.Break();
305+
306+
process.CallbackInterface.ReloadOptions();
305307

306308
// We need to be paused for this
307309
foreach(Module module in process.Modules) {

0 commit comments

Comments
 (0)