Using advanced tools > Debugging scripts > Disabling script steps
 

Disabling script steps

Note  This feature is available when the Use advanced tools general preference is selected. See Using advanced tools.

You can disable and enable script steps to test portions of a script. When you run a script, disabled script steps are skipped.

To disable script steps:

1. Choose Scripts menu > Script Workspace.

2. Double-click the script that contains the script steps to disable.

3. In the script, select the script steps, then choose Edit menu > Disable.

Notes 

To edit the color coding of disabled script steps, in the Script Workspace, choose View menu > Preferences and click the Syntax Coloring tab (Windows), or choose View menu > Script Workspace Preferences and click the Syntax Coloring tab (macOS).

Related topics 

Debugging scripts

Creating and editing scripts

Using the Data Viewer