Watch expressions and variables
VuGen's Watch pane enables you to monitor variables while a script runs. The list of variables that you want to watch is known as the watch list, and is displayed in the watch pane. To display the Watch pane, click View > Debug > Watch. You can add only variables to the watch list - you cannot add expressions to the watch list. You can add, edit, or remove variables within the watch list by using the Watch pane's toolbar buttons. You can sort the columns in the watch pane by expression, value, or type name by clicking the column headers. For details on other debugging features in VuGen, see Debugging overview.
Note: You can monitor variables only when execution of a Vuser script is in the Paused state.
Add a new watch to the watch list
You can add a new watch expression only when execution of a Vuser script is in the Paused state.
To add a new watch:
- Click View > Debug > Watch to open the Watch pane.
- Click the Add Watch button . The Add New Watch dialog box opens.
- In the Expression field, enter the variable that you want to watch, and then click OK. VuGen adds the variable to the list of expressions in the watch list.
Note: You can add only variables to the watch list - you cannot add expressions to the watch list.
Edit a watch expression
Note: You can edit a watch expression only when execution of a Vuser script is in the Paused state.
To edit a watch expression:
- Click View > Debug > Watch to open the Watch pane.
- In the watch list, select the expression that you want to edit, and then click the Edit Watch Expression button . The Edit Watch dialog box opens.
- In the Expression field, modify the existing variable as required, and then click OK. VuGen displays the modified variable in the list of variables in the watch list.
Delete a watch expression
Note: You can delete a watch expression only when execution of a Vuser script is in the Paused state.
To delete a watch expression:
- Click View > Debug > Watch to open the Watch pane.
- In the Watch pane, select the expression that you want to delete, and then click the Delete Watch button . VuGen deletes the selected expression from the list of expressions in the watch list.
Delete all watch expressions from the watch list
Note: You can delete watch expressions only when execution of a Vuser script is in the Paused state.
To delete all watch expressions from the watch list:
- Click View > Debug > Watch to open the Watch pane.
- Click the Delete All Watches button . VuGen deletes all the expressions from the watch list.