|
|
|
@ -51,8 +51,17 @@ namespace Debugger.AddIn.Options
@@ -51,8 +51,17 @@ namespace Debugger.AddIn.Options
|
|
|
|
|
{ |
|
|
|
|
bool result = base.SaveOptions(); |
|
|
|
|
Process proc = WindowsDebugger.CurrentProcess; |
|
|
|
|
// debug session is running
|
|
|
|
|
if (proc != null) { |
|
|
|
|
bool wasPausedNow = false; |
|
|
|
|
// if it is not paused, break execution
|
|
|
|
|
if (!proc.IsPaused) { |
|
|
|
|
proc.Break(); |
|
|
|
|
wasPausedNow = true; |
|
|
|
|
} |
|
|
|
|
proc.Debugger.ResetJustMyCodeStatus(); |
|
|
|
|
// continue if it was not paused before
|
|
|
|
|
if (wasPausedNow) proc.AsyncContinue(); |
|
|
|
|
} |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|