Watches are used as a debug tool in the Task Builder to evaluate a variable or condition as a task is running. You can set a watch on a variable used in the task, or you can enter an expression to create a more complex watch. The Watches view of the Debug window displays a list of all watches and updates the value of each watch as the task runs.
In the Steps pane of the Task Builder window, select the Create Variable step for the variable you want to watch.
On the Edit menu, click Add to watchlist.
In the Task Builder debug window, click the Watches tab.
Enter the expression to watch in one of the following ways:
Type the expression
into the entry box. For example, to evaluate the length of an AutoMate
variable named myName, enter
Click the Gear button to the right of the Watches entry box. Then use the Expression Builder to create an expression to watch. Click Insert when you are finished.
Click Evaluate to check the syntax of your expression.
Click Watch to add the watch.
In the Watches Debug window, right-click the watch and click Change.
Type the new variable or expression for the watch and press Enter.
Select the watch to be removed and press the Delete key, or select Remove from the right-click menu.
To remove all watches, select Remove All from the right-click menu.
Note: Using watches can affect runtime performance in the debugger on slower machines. If debugging speed becomes a factor, try removing watches that are no longer needed. This does not apply to runtime performance outside the debugger, as watches are ignored outside Task Builder.
Watches Debug View
Debugging Tasks Overview
About the Debug Window