Ejemplo n.º 1
0
		/// <summary>
		/// Gets the tooltip control that shows the value of given variable.
		/// Return null if no tooltip is available.
		/// </summary>
		public object GetTooltipControl(Location logicalPosition, string variableName)
		{
			try {
				var tooltipExpression = GetExpression(variableName);
				string imageName;
				var image = ExpressionNode.GetImageForLocalVariable(out imageName);
				ExpressionNode expressionNode = new ExpressionNode(image, variableName, tooltipExpression);
				expressionNode.ImageName = imageName;
				return new DebuggerTooltipControl(logicalPosition, expressionNode) { ShowPins = !IsInExternalCode };
			} catch (GetValueException) {
				return null;
			}
		}
Ejemplo n.º 2
0
 static Location()
 {
     defaultLocation = new Location ("", 0);
 }
Ejemplo n.º 3
0
		/// <summary>
		/// Gets the tooltip control that shows the value of given variable.
		/// Return null if no tooltip is available.
		/// </summary>
		public object GetTooltipControl(Location logicalPosition, string variableName)
		{
			try {
				var tooltipExpression = GetExpression(variableName);
				string imageName;
				var image = ExpressionNode.GetImageForLocalVariable(out imageName);
				ExpressionNode expressionNode = new ExpressionNode(null, image, variableName, tooltipExpression);
				expressionNode.ImageName = imageName;
				return new DebuggerTooltipControl(logicalPosition, expressionNode) { ShowPins = debuggedProcess.GetCurrentExecutingFrame().HasSymbols };
			} catch (System.Exception ex) {
				LoggingService.Error("Error on GetTooltipControl: " + ex.Message);
				return null;
			}
		}
Ejemplo n.º 4
0
 static Location()
 {
     _default = new Location ("", 0);
 }