Browse Source

Detaching from a process no longer causes the text editor to jump to the line of code where the process was paused just before detaching.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3153 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 17 years ago
parent
commit
9c8d604831
  1. 15
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/NDebugger.cs
  2. 10
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Process-StateControl.cs

15
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/NDebugger.cs

@ -172,20 +172,9 @@ namespace Debugger @@ -172,20 +172,9 @@ namespace Debugger
DeactivateBreakpoints();
// Detach all processes.
foreach (Process process in processCollection) {
if (!process.IsPaused) {
process.Break();
}
process.CorProcess.Detach();
}
RemoveAllProcesses();
}
void RemoveAllProcesses()
{
while (processCollection.Count > 0) {
RemoveProcess(processCollection[0]);
Process process = processCollection[0];
process.Detach();
}
}

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

@ -185,6 +185,16 @@ namespace Debugger @@ -185,6 +185,16 @@ namespace Debugger
RaisePausedEvents();
}
public void Detach()
{
if (IsRunning) {
corProcess.Stop(uint.MaxValue);
NotifyPaused(PausedReason.ForcedBreak);
}
corProcess.Detach();
NotifyHasExpired();
}
#region Convenience methods
public void Continue()

Loading…
Cancel
Save