In an open script, click the Debug Script button (or select Edit > Debug Script) to show the script in the JSL Debugger window. You can also use a keyboard shortcut:
• Press Ctrl+Shift+R (Windows).
• Press Shift+Command+R (macOS).
The JSL Debugger helps identify the point at which a script causes an error or fails. Rather than commenting out portions of the script or adding Print() expressions, you can use the Debugger to find the problem.
Once the JSL Debugger appears, you can continue in this mode, or you can click the Profile JSL Script button to move into the JSL Profiler mode. The JSL Profiler helps with optimization. You can profile your scripts during execution to see how much time is spent executing particular lines or how many times a particular line is executed.
Tip: To debug a script automatically when you open it, include Debug JSL( 1 ) in the Open() statement:
Open( "$SAMPLE_SCRIPTS/scoping.jsl", Debug JSL( 1 ) );