34
Programming with TIDE
©2000-2008 Tibbo Technology Inc.
On the above screenshot we can see the status of a short, a string, a property of
an object, a member of an array, one user-defined structure, and an undefined
variable. Notice, that the "x(y)" is displayed in red indicating that its value has
just changed. Notice also that this line shows an array indexed by another variable
(y). This is not the limit of the watch pane's abilities -- try entering more complex
expressions, it will work!
There are several ways of adding variables and object properties to the
watch list. You can:
Press Insert while the watch pane has focus -- this will bring up an Add
to Watch List dialog. Type the name of a variable or property to watch
and press OK.
Alternatively, double-click on the empty space in the watch pane to
obtain the same result.
You can also select Debug > Add to Watch List from the Menu.
Additionally, there is an Add to Watch List button on the Debug
toolbar.
You can right-click on the variable or property in the source code and
select Add to Watch List from the context-sensitive menu.
You can also right-click on the property in the Project pane (Browser
tab) and select Add to Watch List.
In the Add to Watch List dialog you may type multiple items to be added to the
watch by separating their names with commas (i.e. "i, j, k, ser.num"). For objects
you will get a drop-down list of available members: