You can display the current value of a variable or expression in the
following ways:
- Using the Examine push button in the push-button view
- Using the Examine dialog box, accessed through the Command menu on
the main window
The Examine push button displays a current value most quickly, but the
Examine dialog box allows you to request typecasting or an altered
output radix in the displayed result.
To display the current value using the Examine push button:
1. Find and select the variable name or expression in a window.
2. Click on the Examine push button on the push-button view of the
main window. The debugger displays the variable or expression and
its current value in the command view. Note that this is the value
of the variable or expression in the current scope, which might not
be the same as the source location where you selected the variable
name or expression.
To display the current value using the Examine dialog box, perform the
following steps:
1. Do one of the following:
- Find and select the variable name or expression symbols in a
window, and choose the Examine menu item from the Commands menu
on the main window. The Examine dialog box appears, with the
name you selected in the Variable/Expression field.
- Choose the Examine menu item from the Commands menu on the main
window. The Examine dialog box appears. Enter the name of the
variable or symbols of the expression you are examining in the
Variable/Expression field of the dialog box.
2. If you are changing the output type, pull down the menu in the
Typecast entry box and click on the desired data type.
3. If you are changing the output radix, pull down the menu in the
Output Radix entry box and click on the desired radix.
4. Click on OK.
Your echoed command and the current value appear in the command view.