# Debugging Workflow Scripts in the Command Center

When adding a complex script to a workflow activity, use debug mode to develop the script by modifying the script and retrying it without starting the workflow from the beginning.

## Before You Begin

Review how to debug workflows in Debugging Workflows.

## Procedure

1. Set a breakpoint on the activity where you are adding the script.

2. On the top right corner of the workflow editor, click DEBUG to start stepping through the workflow activities.

3. When the breakpoint on the activity is reached, add your script to the activity.

4. To test the script, click RETRY.

5. Continue to modify and retry the script as needed.

6. Optional: Test the interaction of prior activities with the script without restarting the workflow with new inputs. Select any activity prior to the script activity and click Set Activity to start stepping through the workflow at the selected activity.

7. To exit debug mode, click STOP.

## Related Topics

- Setting Workflow Breakpoints in the Command Center

- Expressions for an Activity Input

×

Loading...