Browse Source

Fix attach to IDebugger events from DebuggerService

pull/263/head
Ronny Klier 14 years ago
parent
commit
d5e5db311e
  1. 12
      ILSpy.SharpDevelop.LGPL/Services/DebuggerService.cs

12
ILSpy.SharpDevelop.LGPL/Services/DebuggerService.cs

@ -390,7 +390,19 @@ namespace ICSharpCode.ILSpy.Debugger.Services @@ -390,7 +390,19 @@ namespace ICSharpCode.ILSpy.Debugger.Services
public static void SetDebugger(Lazy<IDebugger> debugger)
{
if (currentDebugger != null)
{
currentDebugger.DebugStarting -= new EventHandler(OnDebugStarting);
currentDebugger.DebugStarted -= new EventHandler(OnDebugStarted);
currentDebugger.DebugStopped -= new EventHandler(OnDebugStopped);
}
currentDebugger = debugger.Value;
if (currentDebugger != null)
{
currentDebugger.DebugStarting += new EventHandler(OnDebugStarting);
currentDebugger.DebugStarted += new EventHandler(OnDebugStarted);
currentDebugger.DebugStopped += new EventHandler(OnDebugStopped);
}
}
}
}

Loading…
Cancel
Save