Debugging Tasks Overview

The AWE interface provides several features that can be used to help debug a task that is not working as expected.

Stepping through the task

"Stepping" is the process of executing a task one step at a time. When you click the Run icon (or press F5), task execution may occur so quickly that it is impossible to tell what is happening. Instead, try clicking the Step icon , located to the far right of the Run icon (or press F9). This will execute the step, then wait. This gives you a chance to evaluate the task in several ways:

To execute the next step, click the Step icon again. You can also run the rest of the task at regular speed from this point forward by clicking the Run icon.

Setting a breakpoint

Breakpoints are very useful for larger tasks where stepping from the beginning of the task to a point of interest may be tedious and time consuming. Instead, you can tell the task to pause at a specific step by creating a breakpoint at that step. When the breakpoint is encountered, the task will pause. From here, you can follow the recommendations above, including stepping from this point forward by clicking the Step icon, or continuing normal execution by clicking the Run icon.

Setting a watch

Watches provide a powerful means for watching the state of variables and expressions in your task. In larger tasks, where script steps, multiple Set Variable steps, or other more complex steps are involved, watches are invaluable for seeing where and how variable values change. A watch can be a variable name to be examined, or it can be a complex expression that is reevaluated as the step executes.