Tips for Debugging SuiteScript 1.0 and SuiteScript 2.0 Scripts
The following tips may help you debug SuiteScript 1.0 and SuiteScript 2.0 scripts using the Script Debugger:
-
Review the Execution Log subtab on the Script Debugger page to view all script messages and alerts, including those indicating any script errors.
-
Execution metrics are shown on the Execution Log subtab of the Script Debugger page.
-
Use breakpoints to pause script execution at predetermined lines of code. Breakpoints are managed on the Break Points subtab on the Script Debugger page. See Break Points for more information.
-
Use the Watch subtab on the Script Debugger page to see values of variables within your script and to evaluate expressions on-the-fly. See Watches for more information.
-
Use the Evaluated Expressions subtab on the Script Debugger page to enter and evaluate manually-entered expressions. See Evaluate Expressions for more information.
-
To cancel a debugging session without completing script execution, click the X button on the Script Debugger page.