Browse Source

Activate ILSpy when breakpoint is hit

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

6
Debugger/ILSpy.Debugger/Services/Debugger/WindowsDebugger.cs

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

Loading…
Cancel
Save