SuiteScript Debugger Overview

SuiteScript provides a script debugger for SuiteScript 1.0, SuiteScript 2.0, and SuiteScript 2.1 server scripts, core plug-in implementations, and on-demand debugging.

Important:

You cannot use the SuiteScript Debugger to debug SuiteScript 2.1 scripts. You can still test critical parts of your script in the SuiteScript Debugger as a SuiteScript 2.0 script before you run the script as a SuiteScript 2.1 script. For more information about SuiteScript 2.1, see SuiteScript 2.1.

As a new feature in 2020.2, SuiteScript 2.1 scripts can be debugged with the new 2.1 Script Debugger. This debugger uses Chrome DevTools directly within NetSuite to allow users to debug their scripts using functionality that is similar to debugging JavaScript in the Google Chrome browser.

Client scripts cannot be debugged using the SuiteScript Debugger, but they can be debugged using the tools available for your browser. To debug client scripts, you should use the Chrome DevTools for Chrome and the Firebug debugger for Firefox. For additional information about these tools, see the documentation provided with each browser.

Note:

Currently, only one script can be debugged at a time in a given debug session, regardless of the version of the script.

The following table shows which server script types are supported in each debugger. On-demand debugging is also supported. Client scripts are debugged on the client browser.

Script Type

Script Debugger (SuiteScript 1.0)

Script Debugger (SuiteScript 2.0)

2.1 Script Debugger (SuiteScript 2.1)

Bundle Installation

Map/Reduce

Mass Update

Portlet

RESTlet

Scheduled

SDF Installation

This script type runs on the client browser.

Suitelet

User Event

Workflow Action

Custom Plug-in

The following table shows which custom plug-ins are supported in each debugger. Support for SuiteScript 2.1 scripts will increase in future releases.

Core Plug-in

Script Debugger (SuiteScript 1.0)

Script Debugger (SuiteScript 2.0)

2.1 Script Debugger (SuiteScript 2.1)

Platform Extension

Not available

GL Plugin

Payment Gateway

Consolidated Rate Adjustor

Promotions

Tax Calculation

Shipping Partners

Email Capture

Advanced Rev Rec

Bank Connectivity

Test Plugin

For more information about using each debugger, see the following help topics:

Related Topics

Debugging Overview
Debugging SuiteScript 1.0 and SuiteScript 2.0 Scripts
Debugging SuiteScript 2.1 Scripts
Script Debugger Metering and Permissions
Debugging Client Scripts

General Notices