Debugging Scripts
UX Studio lets you debug
Salesforce B2C Commerce scripts (.js
extension) and JavaScript
(.js
extension) running on your instance. In B2C Commerce
15.4 and later, you can debug scripts using the B2C Commerce plugin Script Debugger, the Script Debugger
API, or the JSDT (JavaScript Development Tools editor available for
Eclipse.
Note: Script debugging is disabled on Production instances to
ensure data security.
The debugger lets you:
- Create a Remote Script Debugging Session
- Set Breakpoints in scripts which cause the script execution engine to suspend the script when the breakpoint is reached
- Use Script Debugger controls to step through the script
- Use Script Debugger views to evaluate script variables and expressions
It's important to understand that script debugging impacts script execution performance. When you launch a script debugging session, the server must evaluate the script's current position to determine when a breakpoint is reached. Use Custom Code Timeouts to control how long a script can run.