background image
<< Commands - View menu | Commands - debugging mode >>
Commands - View Expand Data
<< Commands - View menu | Commands - debugging mode >>
User's Guide
519
27 M
ENU
C
OMMANDS
View menu
Note You can also collapse the data about a variable by double-
clicking on the minus (-) symbol.
View/Expand Data
Available only in debugging mode. Expands the data about a variable. A
minus (-) in front of a variable name indicates that more data is available. A
plus (+) in front of a variable name indicates that the data about it is already
expanded. A period (.) indicates that all the data about a variable is already
displayed.
Note You can also expand the data about a variable by double-
clicking on the (+) symbol.
View/Expression
Available only in debugging mode. Opens an Expression window in which
you can evaluate an expression and check the result. To evaluate an
expression, type it in the input area and press Enter. The result appears
directly beneath the expression. You use the Expression window to query the
application you are running, thus performing actions different from those
specified in your script.
If you type an identifier name, the result is the value that variable currently
has in the running script. If you type an expression, the result is the value of
that expression. Any function you specify must return a value, and must be in
scope
(accessible) at the current source line.
You can reference class properties and methods that return values in
expressions, as long as the declaration for the class they belong to is included
in one of the modules used by the script being debugged.
If an expression evaluates to a complex value, like an array, SilkTest may
display its result in collapsed form. Use View/Expand Data or View/Collapse
Data to manipulate the display, or double-click on the plus (+) and minus (-)
symbols.