Browse Source

Bug fix: Consider that the process may be resumed in the OnDebuggeeStateChanged event

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2840 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 18 years ago
parent
commit
f18f1fc0c5
  1. 15
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/Process-StateControl.cs

15
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/Process-StateControl.cs

@ -113,13 +113,16 @@ namespace Debugger @@ -113,13 +113,16 @@ namespace Debugger
}
debugeeState = new DebugeeState(this);
OnDebuggeeStateChanged();
// The process might have been resumed by the event
}
OnDebuggingPaused();
if (PausedReason == PausedReason.Exception) {
ExceptionEventArgs args = new ExceptionEventArgs(this, SelectedThread.CurrentException);
OnExceptionThrown(args);
if (args.Continue) {
this.Continue();
if (IsPaused) {
OnDebuggingPaused();
if (PausedReason == PausedReason.Exception) {
ExceptionEventArgs args = new ExceptionEventArgs(this, SelectedThread.CurrentException);
OnExceptionThrown(args);
if (args.Continue) {
this.Continue();
}
}
}
}

Loading…
Cancel
Save