Share this page

# 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.

Note: You can monitor variables only when execution of a Vuser script is in the Paused state.

In this topic:

## 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:

1. Click View > Debug > Watch to open the Watch pane.
2. Click the Add Watch button . The Add New Watch dialog box opens.
3. 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.

Back to top

## Edit a watch expression

You can edit a watch expression only when execution of a Vuser script is in the Paused state.

To edit a watch expression:

1. Click View > Debug > Watch to open the Watch pane.
2. 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.
3. 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.

Back to top

## Delete a watch expression

You can delete a watch expression only when execution of a Vuser script is in the Paused state.

To delete a watch expression:

1. Click View > Debug > Watch to open the Watch pane.
2. 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.

Back to top

## 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:

1. Click View > Debug > Watch to open the Watch pane.
2. Click the Delete All Watches button . VuGen deletes all the expressions from the watch list.

Back to top

See also:

- Debug scripts

https://admhelp.microfocus.com VuGen,Professional Performance Engineering,Performance Engineering for Developers 8942
Tips to improve your search results... OpenText™ Virtual User Generator Help Center OpenText™ VuGen Help 26.1 All View Local Help Center View Online Help Center Version: