Debugging Deployed SuiteScript 2.1 User Event Scripts
SuiteScript 2.1 user event scripts can be debugged using the 2.1 Debugger similar to other supported server script types (scheduled scripts and Suitelets) as described in Debugging Deployed SuiteScript 2.1 Scheduled Scripts and Suitelets. However, because a user event script can have multiple entry points, there are some special steps to take when debugging SuiteScript 2.1 user event scripts.
You can debug every entry point included in your SuiteScript 2.1 user event script within the same browser session, however, you must reattach to Chrome DevTools for each entry point included in the script.
SuiteScript does not support read-only sublists. If you are debugging a script that loads a record with a custom child record as a sublist, make sure the Allow Child Record Editing setting is checked for the child record in Customization. If this box is not checked, the sublist is read-only and will not load in the parent record. See Creating Custom Record Types for additional information about creating custom records.
See the following topics for an example of debugging a user event script deployed on the Customer record.
-
Creating the User Event Script and Starting the Debugger Example
-
Debugging the beforeSubmit and afterSubmit Entry Points Example