Browse Source

Show tooltip pins only for frames with symbols (source exists).

pull/19/head
Eusebiu Marcu 15 years ago committed by Daniel Grunwald
parent
commit
93948ebc56
  1. 7
      src/AddIns/Debugger/Debugger.AddIn/Service/WindowsDebugger.cs

7
src/AddIns/Debugger/Debugger.AddIn/Service/WindowsDebugger.cs

@ -642,10 +642,11 @@ namespace ICSharpCode.SharpDevelop.Services
var image = ExpressionNode.GetImageForLocalVariable(out imageName); var image = ExpressionNode.GetImageForLocalVariable(out imageName);
ExpressionNode expressionNode = new ExpressionNode(image, variableName, tooltipExpression); ExpressionNode expressionNode = new ExpressionNode(image, variableName, tooltipExpression);
expressionNode.ImageName = imageName; expressionNode.ImageName = imageName;
return new DebuggerTooltipControl(logicalPosition, expressionNode) { ShowPins = debuggedProcess.SelectedThread.MostRecentStackFrame.HasSymbols }; return new DebuggerTooltipControl(logicalPosition, expressionNode) { ShowPins = debuggedProcess.GetCurrentExecutingFrame().HasSymbols };
} catch (GetValueException) { } catch (System.Exception ex) {
LoggingService.Error("Error on GetTooltipControl: " + ex.Message);
return null; return null;
} }
} }
public ITreeNode GetNode(string variable, string currentImageName = null) public ITreeNode GetNode(string variable, string currentImageName = null)

Loading…
Cancel
Save