Browse Source

Scroll to current line in debugger stepping

pull/263/head
Ronny Klier 14 years ago
parent
commit
ebbbb3e41e
  1. 2
      Debugger/ILSpy.Debugger/Services/Debugger/DebuggerService.cs
  2. 2
      ILSpy.SharpDevelop.LGPL/Bookmarks/CurrentLineBookmark.cs
  3. 1
      ILSpy/TextView/DecompilerTextView.cs

2
Debugger/ILSpy.Debugger/Services/Debugger/DebuggerService.cs

@ -6,6 +6,7 @@ using System.Collections.Generic;
using ICSharpCode.AvalonEdit.Document; using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.Decompiler; using ICSharpCode.Decompiler;
using ICSharpCode.Decompiler.ILAst; using ICSharpCode.Decompiler.ILAst;
using ICSharpCode.ILSpy;
using ICSharpCode.ILSpy.Bookmarks; using ICSharpCode.ILSpy.Bookmarks;
using ICSharpCode.ILSpy.Debugger.Bookmarks; using ICSharpCode.ILSpy.Debugger.Bookmarks;
using ICSharpCode.ILSpy.Debugger.Tooltips; using ICSharpCode.ILSpy.Debugger.Tooltips;
@ -189,6 +190,7 @@ namespace ICSharpCode.ILSpy.Debugger.Services
public static void JumpToCurrentLine(MemberReference memberReference, int startLine, int startColumn, int endLine, int endColumn) public static void JumpToCurrentLine(MemberReference memberReference, int startLine, int startColumn, int endLine, int endColumn)
{ {
CurrentLineBookmark.SetPosition(memberReference, startLine, startColumn, endLine, endColumn); CurrentLineBookmark.SetPosition(memberReference, startLine, startColumn, endLine, endColumn);
MainWindow.Instance.TextView.UnfoldAndScroll(startLine);
} }
#region Tool tips #region Tool tips

2
ILSpy.SharpDevelop.LGPL/Bookmarks/CurrentLineBookmark.cs

@ -53,7 +53,7 @@ namespace ICSharpCode.ILSpy.Debugger.Bookmarks
get { return 100; } get { return 100; }
} }
public CurrentLineBookmark(MemberReference member, AstLocation location) : base(member, location) private CurrentLineBookmark(MemberReference member, AstLocation location) : base(member, location)
{ {
} }

1
ILSpy/TextView/DecompilerTextView.cs

@ -462,7 +462,6 @@ namespace ICSharpCode.ILSpy.TextView
DebugInformation.CodeMappings[token].GetInstructionByTokenAndOffset(token, ilOffset, out member, out line); DebugInformation.CodeMappings[token].GetInstructionByTokenAndOffset(token, ilOffset, out member, out line);
// update marker // update marker
CurrentLineBookmark.Remove();
CurrentLineBookmark.SetPosition(member, line, 0, line, 0); CurrentLineBookmark.SetPosition(member, line, 0, line, 0);
var bm = CurrentLineBookmark.Instance; var bm = CurrentLineBookmark.Instance;

Loading…
Cancel
Save