Scheduled Script Debugging
Use the deployment record’s Testing status to debug and test your script. If you want to step through your script in the SuiteScript Debugger, you’ll need to use deployed debugging.
Want more details? See Debugging Deployed SuiteScript 1.0 and SuiteScript 2.0 Server Scripts and Debugging Deployed SuiteScript 2.1 Server Scripts.