Debugger3.HexInputMode Property
Gets or sets a value that indicates whether the expressions are evaluated in hexadecimal or decimal format.
Namespace: EnvDTE90
Assembly: EnvDTE90 (in EnvDTE90.dll)
Syntax
'Declaration
Property HexInputMode As Boolean
'Usage
Dim instance As Debugger3
Dim value As Boolean
value = instance.HexInputMode
instance.HexInputMode = value
bool HexInputMode { get; set; }
property bool HexInputMode {
bool get ();
void set (bool value);
}
function get HexInputMode () : boolean
function set HexInputMode (value : boolean)
Property Value
Type: System.Boolean
A Boolean that is true if hexadecimal format; otherwise, false.
Implements
Remarks
Use this property to determine or set whether expressions are evaluated in hexadecimal or decimal format. It directly corresponds to the setting in the General, Debugging, Options dialog box.
For more information, see Expressions in the Debugger.
Examples
The following example shows how to use the HexInputMode property.
To test this property:
Set a breakpoint in the target application.
Run the target application in the debug mode.
When the application stops at the breakpoint, run the add-in.
public static void HexInputMode(EnvDTE80.DTE2 dte)
{
// Setup debug Output window.
Window w =
(Window)dte.Windows.Item(EnvDTE.Constants.vsWindowKindOutput);
w.Visible = true;
OutputWindow ow = (OutputWindow)w.Object;
OutputWindowPane owp = ow.OutputWindowPanes.Add("Hex Input Mode
Test");
owp.Activate();
EnvDTE90.Debugger3 debugger = (EnvDTE90.Debugger3)dte.Debugger;
debugger.HexInputMode = false;
debugger.HexDisplayMode = true;
EnvDTE.Expression exp = debugger.GetExpression("length", true, 1);
owp.OutputString("Value of variable length in hex: " + exp.Value);
debugger.HexInputMode = true;
debugger.HexDisplayMode = false;
exp = debugger.GetExpression("length", true, 1);
owp.OutputString("\nValue of variable length in decimal: " +
exp.Value);
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.