Browse Source

fix bug when SD tried to display the source file that not exists (e.g. the symbols are present but the sources aren't - see Prism).

pull/15/merge
Eusebiu Marcu 14 years ago
parent
commit
8d11730326
  1. 17
      src/Main/Base/Project/Src/Services/Debugger/CurrentLineBookmark.cs

17
src/Main/Base/Project/Src/Services/Debugger/CurrentLineBookmark.cs

@ -29,13 +29,16 @@ namespace ICSharpCode.SharpDevelop.Debugging
SetPosition(tecp.TextEditor.FileName, tecp.TextEditor.Document, markerStartLine, markerStartColumn, markerEndLine, markerEndColumn); SetPosition(tecp.TextEditor.FileName, tecp.TextEditor.Document, markerStartLine, markerStartColumn, markerEndLine, markerEndColumn);
} else { } else {
lock (syncObject) { lock (syncObject) {
dynamic codeView = viewContent.Control; // get the decompiled view if exists
var document = codeView.TextEditor.Document as IDocument; if (viewContent != null && viewContent.Control != null) {
SetPosition(codeView.Adapter.FileName, document, markerStartLine, markerStartColumn, markerEndLine, markerEndColumn); dynamic codeView = viewContent.Control;
codeView.IconBarManager.Bookmarks.Add(CurrentLineBookmark.instance); var document = codeView.TextEditor.Document as IDocument;
codeView.UnfoldAndScroll(markerStartLine); SetPosition(codeView.Adapter.FileName, document, markerStartLine, markerStartColumn, markerEndLine, markerEndColumn);
if (document != null) codeView.IconBarManager.Bookmarks.Add(CurrentLineBookmark.instance);
CurrentLineBookmark.instance.Document = document; codeView.UnfoldAndScroll(markerStartLine);
if (document != null)
CurrentLineBookmark.instance.Document = document;
}
} }
} }
} }

Loading…
Cancel
Save