Browse Source

close #296: ArgumentNullException when debugging and pdb points to missing file

+ show StackFrames without file name as unreachable in CallStackPad
pull/520/merge
Siegfried Pammer 11 years ago
parent
commit
8063942775
  1. 4
      src/AddIns/Debugger/Debugger.AddIn/Pads/CallStackPad.cs

4
src/AddIns/Debugger/Debugger.AddIn/Pads/CallStackPad.cs

@ -150,7 +150,9 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads
{ {
bool showExternalMethods = DebuggingOptions.Instance.ShowExternalMethods; bool showExternalMethods = DebuggingOptions.Instance.ShowExternalMethods;
var symSource = WindowsDebugger.PdbSymbolSource; var symSource = WindowsDebugger.PdbSymbolSource;
bool hasSymbols = symSource.Handles(frame.MethodInfo) && !symSource.IsCompilerGenerated(frame.MethodInfo); bool hasSymbols = symSource.Handles(frame.MethodInfo)
&& !symSource.IsCompilerGenerated(frame.MethodInfo)
&& frame.NextStatement != null && !string.IsNullOrWhiteSpace(frame.NextStatement.Filename);
if (showExternalMethods || hasSymbols) { if (showExternalMethods || hasSymbols) {
// Show the method in the list // Show the method in the list
previousItemIsExternalMethod = false; previousItemIsExternalMethod = false;

Loading…
Cancel
Save