How You Can Examine Values of Expressions
As you debug an application, you can examine the value of expressions using the Debugger window.
To examine an expression
1. In the Debugger window, drag the cursor over the expression in the script to select it.
2. Do one of the following:
• Click the Examine toolbar button.
• Click Tools, Values, Examine.
• Right-click the selected expression and select Examine from the pop-up menu.
If you have not selected an expression when you click Examine, or if the selected expression is invalid, the Selection Popup dialog appears, letting you correct or enter the expression that you want to examine.
When you examine an expression, the Debugger displays the value of the expression in the data display area of the Debugging window:
• If the value of the expression is a simple data type, the display has the form:
expression = type, value n
expression
Specifies the expression
type
Specifies its data type
n
Specifies its value
• If the value of the expression is an object other than an array, the display has the form:
expression = classname 'objectname'
or
expression = Unnamed classname
expression
Specifies the expression
classname
Specifies the class of the object
objectname
Specifies the name of the object
• If the value of the expression is an ArrayObject, the display has the form:
expression = Array of classname
expression
Specifies the expression
classname
Specifies the class of the objects in the array
Because two local procedures in the same main script can define identically named local variables, the Debugger tracks the scope for all expressions.
The scope of the currently executing line is used when the expression's value is displayed. This value is tracked in future displays. If you leave the script for which the scope of the variable is valid, the data display indicates that there is no valid value in the current scope.
If you do not want the Debugger to display these invalid variables, select the Hide Variables Not Valid in Current Scope option from the Examine Values pop-up menu. A checkmark appears to the left of the option.
When the value of an expression is an object, a plus sign (+) precedes the line where its value is displayed. Click the plus sign to expand the display and view the object's attributes. If any of its attributes are objects, they are likewise preceded by a plus sign and can be expanded in turn.
To close an expanded object, click the minus sign (-) that precedes the object.
When an ArrayObject has been expanded, an array type node follows the arrayobject class and its attributes. This node displays the class name of the row objects and the number of rows in the array. For an array of stringobject with 16 rows, the array type node is displayed as follows: