Skip to content
Browse files

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

  • Loading branch information...
1 parent 509f318 commit 93948ebc56162c8e07741074eca047b2527f3a3f @eusebiu eusebiu committed with dgrunwald Aug 26, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/AddIns/Debugger/Debugger.AddIn/Service/WindowsDebugger.cs
View
7 src/AddIns/Debugger/Debugger.AddIn/Service/WindowsDebugger.cs
@@ -642,10 +642,11 @@ public object GetTooltipControl(Location logicalPosition, string variableName)
var image = ExpressionNode.GetImageForLocalVariable(out imageName);
ExpressionNode expressionNode = new ExpressionNode(image, variableName, tooltipExpression);
expressionNode.ImageName = imageName;
- return new DebuggerTooltipControl(logicalPosition, expressionNode) { ShowPins = debuggedProcess.SelectedThread.MostRecentStackFrame.HasSymbols };
- } catch (GetValueException) {
+ return new DebuggerTooltipControl(logicalPosition, expressionNode) { ShowPins = debuggedProcess.GetCurrentExecutingFrame().HasSymbols };
+ } catch (System.Exception ex) {
+ LoggingService.Error("Error on GetTooltipControl: " + ex.Message);
return null;
- }
+ }
}
public ITreeNode GetNode(string variable, string currentImageName = null)

0 comments on commit 93948eb

Please sign in to comment.
Something went wrong with that request. Please try again.