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

Loading…
Cancel
Save