The Automated Workflow Designer provides several features that can be used to help debug a Workflow that is not working as expected. Try the following suggestions to help pinpoint the cause of an errant Workflow:
"Stepping" is the process of executing an Automated Workflow one step at a time. When you click the Run icon (or press F5), Workflow 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 Workflow in several ways:
Examine the contents of your variables by looking at the Variable View of the Debug Window
Examine the states of any watches you have set, using the Watches View of the Debug Window (see below for more information on watches)
Observe what the previous step may (or may not) have done by reading the contents of the Output View.
To execute the next step, click the Step icon again. You can also run the rest of the Workflow at regular speed from this point forward by clicking the Run icon.
Breakpoints are very useful for larger Workflows where stepping from the beginning of the Workflow to a point of interest may be tedious and time consuming. Instead, you can tell the Workflow to pause at a specific step by creating a breakpoint at that step. When the breakpoint is encountered, Automated Workflow will pause Workflow execution. From here, you can follow the recommendations above, including stepping from this point forward by clicking the Step icon, or continuing normal Workflow execution by clicking the Run icon. See Using Breakpoints for more information.
Watches provide a powerful means for watching the state of variables and expressions in your Workflow. In larger Workflows, where Automated Workflow Script steps, multiple Set Variable steps, or other more complex Workflow steps are involved, watches are invaluable for seeing where and how variable values change. A watch can be simply a variable name to be examined, or it can be a complex expression that is reevaluated as the step executes. See Using Watches for more information.
For Workflows that make use of Interactivity Actions, or otherwise interact with various windows, set an option to minimize Designer as the Workflow runs. Designer is minimized as the Workflow runs, and restored when the Workflow ends or encounters a breakpoint. This allows Interactivity and Window actions to work unobstructed.
To minimize Designer on run
On the Designer Tools menu, click Editor Options.
Click the Debugger tab, select Minimize on run and click OK.