Debugging often includes watching variables. Watches help you narrow the scope of evaluated expressions in the debug process.
In the Watches area you can permanently place the items you want to watch per project, such as variables, objects, and expressions.
With Studio you can:
|
|
Add Watches |
|
|
Remove Watches (Delete) |
|
|
Edit Watches |
There are several ways to add watches:
Go to the Debug Menu and select "Add Watch"
In the Editor, select an expression in the code, open the right-click menu and select the option "Add Watch" from the menu.
In the Debug window's watches tab, open the right click
menu and select the option "Add Watch" from the menu.
If an expression in the Editor is selected, it will automatically appear
in the Add Watch dialog, otherwise expressions can be manually added to
the watches list.
Add New Watch Dialog
Watches display the watch expression, type and current value (results).
In the following image, you can see both arrays and primitive variables:

Watches List
Whenever content is setup in a certain hierarchy, the watches tab will display the content in accordance to the hierarchy in a tree type display.
To remove a single watch from the Debug window's watches tab.
Select an item from the watches list, open the right-click menu and select the option "Remove Watch" from the menu.
To delete all watches from the Debug window's watches tab.
Make sure no items are selected in the watches list, open the right-click menu and select the option "Remove Watch" from the menu.
Expressions can also be edited from the Debug window's watches tab. Select an item from the watches list, open the right-click menu and select the option "Edit expression" from the menu.
|
|
|
|
|
Related Links: |
|
|
|