Watches

A Watch is a debugging feature used for examining the state of variables and other expressions within a running task. 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 embedded expression. For example, to watch the length of an variable named myName, add a watch %Len(myName)%.

The Watches Debug Panel allows you to add, remove or modify items to watch. It displays the list of added watches and updates their value as the task runs. This way, watches can be re-evaluated after each task step is executed. Watches are mainly used for debugging, therefore, they are ignored when a task is executed as a result of a trigger or executed manually from the Task Administrator.

Using Watches

The Watches debug panel is a place where you can enter variable names and expressions that you want to watch during a debugging session.

To watch a variable

To watch an expression

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

  2. Click Watch to add to the watch list.

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

To modify a watch

  1. In the Watches debug panel, 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 when the task is executed outside Task Builder.