Debug a script or condition
Scripts and conditions that do not need a context for execution
In debug mode, you can run scripts and conditions that do not use any specific context. To debug a script or a condition, complete the following steps:
- Open the script or condition.
- In the Object Inspector pane, set the Context property to the value None.
- On the
Script Note Editor Tools tab, in the
Control section, click
Execute in Debug Mode
.
The script appears in a new debug mode window.
- Run the script using the buttons on the Debugger Tools tab.
Scripts and conditions that need a context for execution
In debug mode, you cannot run scripts and conditions that use a specific context. Instead, run these scripts and conditions in the corresponding context. To debug a script or a condition, follow these steps:
- In the Navigator pane, right-click the script or condition and click Add to Debug Service.
- Open the document or the process that uses the script and start the document
creation or process.
Once the script is executed, the debugger window opens.
- Run the script using the buttons on the Debugger Tools tab.
To disable execution in the debug mode for a script or condition, in the Navigator pane, right-click the script or condition and click Remove from Debug Service.