Watches

A Watch is a debugging feature that can be used in the Task Builder for examining the state or condition of variables and other expressions within a running task. You can set a watch on a variable used in the task, or you can enter an expression to create a more complex watch. When a task executes, Watches are re-evaluated after each step is executed. Watches are mainly used for debugging and therefore, are  ignored when a task is executed as a result of a trigger or executed manually from the Task Administrator.

A watch can simply be the name of a variable. For example, to watch the value of a variable named TotalCount, add a watch that contains simply TotalCount. Embedded expressions can also be used within a watch, using the same syntax as a standard AutoMate embedded expression. For example, to watch the length of an AutoMate variable called "myName", add a watch Len(myName)

Using Watches


The Watches Debug Pane displays a list of all watches and updates the value of each watch as the task runs. Watches can be added, removed, or modified using the Watches Tool.

To watch a variable:

  1. Enter the variable to watch in one of the following ways:

OR

  1. The variable and its current value (if applicable) is added to the Watches debug pane.

To watch an expression:

  1. In the Watches debug pane, enter the expression to watch in one of the following ways:

  2. Click Watch to add to the watch list.

  3. The variable and its current value (if applicable) is added to the Watches debug pane.

To modify a watch:

  1. In the Watches debug window, right-click the watch and select Change.

  2. Type the new variable or expression for the watch and press Enter.

To remove a watch:

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.

See Also

Watches Debug View

Debugging Tasks Overview

About the Debug Window