Home Page (Debugger) | Overview | How Do I... Topics
View the value of a variable or expression or the contents of a register
View the value of a variable using QuickWatch
View a the value of a variable or expression or the contents of a register in the Watch window
View type information for a variable in the Watch window
View a variable in the Variables window
View type information for a variable in the Variables window
Display meaningful values for your custom data type?
To view the value of a variable or expression or contents of a register
– or –
Click Break on the Debug menu to halt the debugger.
Tip The Expression drop-down list box contains the most recently used QuickWatch expressions.
To view the value of a variable using QuickWatch
To view the value of a variable or expression or the contents of a register in the Watch window
Press ENTER (if typing).
The Watch window evaluates the variable or expression immediately and displays the value or an error message.
If you add an array or object variable to the Watch window, plus sign (+) or minus sign (–) boxes appear in the Name column. Use these boxes to expand or collapse your view of the variable described in Spreadsheet Fields.
Change the Watch window display format (to display Unicode characters, for example) using formatting symbols, described in Symbols for Watch Variables.
To view type information for a variable in the Watch window
To view a variable in the Variables window
To view type information for a variable in the Variables window
On the View menu, click Properties.
To display meaningful values for a custom datatype
The file autoexp.dat controls how the debugger displays data types in windows, Quickwatch, and DataTips. You can modify this file to add meaningful displays for your own datatypes. For details, see the autoexp.dat file itself (located in the /bin directory).