Browse Source

Activate ILSpy when breakpoint is hit

pull/310/merge
Ronny Klier 14 years ago committed by Daniel Grunwald
parent
commit
0a83a850f5
  1. 4
      Debugger/ILSpy.Debugger/Services/Debugger/WindowsDebugger.cs

4
Debugger/ILSpy.Debugger/Services/Debugger/WindowsDebugger.cs

@ -789,6 +789,8 @@ namespace ICSharpCode.ILSpy.Debugger.Services
{ {
if (debuggedProcess != null && debuggedProcess.SelectedThread != null) { if (debuggedProcess != null && debuggedProcess.SelectedThread != null) {
MainWindow.Instance.Activate();
// use most recent stack frame because we don't have the symbols // use most recent stack frame because we don't have the symbols
var frame = debuggedProcess.SelectedThread.MostRecentStackFrame; var frame = debuggedProcess.SelectedThread.MostRecentStackFrame;
@ -831,6 +833,8 @@ namespace ICSharpCode.ILSpy.Debugger.Services
TypeDefinition nestedTypeDef = null; TypeDefinition nestedTypeDef = null;
foreach (var assembly in DebugInformation.LoadedAssemblies) { foreach (var assembly in DebugInformation.LoadedAssemblies) {
if (null == assembly)
continue;
if ((assembly.FullName.StartsWith("System") || assembly.FullName.StartsWith("Microsoft") || assembly.FullName.StartsWith("mscorlib")) && if ((assembly.FullName.StartsWith("System") || assembly.FullName.StartsWith("Microsoft") || assembly.FullName.StartsWith("mscorlib")) &&
!assembly.Name.Version.ToString().StartsWith(debuggeeVersion)) !assembly.Name.Version.ToString().StartsWith(debuggeeVersion))
continue; continue;

Loading…
Cancel
Save