You can set breakpoints before or after you launch a debug session and you can remove breakpoints while a debug session is in process.
.js or .ds extension to debug in the
Studio Commerce Cloud Script Editor or the JSDT editor (which is the
default JavaScript editor for Eclipse).You can modify your Eclipse
preferences to make the Commerce Cloud Script Editor you default
JavaScript editor if you want to use the auto complete feature for the
Salesforce B2C Commerce Script API.
Breakpoints appear in three states:
- a
breakpoint when initially set.
- a
breakpoint when the script is stopped at the breakpoint
- a
breakpoint when it's successfully registered with the debugger. When
you start the debugger, all breakpoints should have a check mark. If a
breakpoint isn't successfully registered, usually because the
debugger can't locate the script, the breakpoint appears as initially
set. If the script completes and one or more breakpoints appear as
initially set, then there is an issue with the communication with the
server or the cartridge isn't in the server's path.