Step 2: Open the Chrome Developer tools
- Edit any sales order record (make sure you are in Edit mode and not View mode)
- Right click anywhere on the record and select “Inspect”:

The web developer tools will open on the right section of the browser:

Step 3: View your script using the tools
- Click on the “Sources” tab. If you can’t see the “Sources” tab, then drag the center divider to the left.
- Then on the left pane, open the “app” folder and then open “common/scripting”. You will see your script there. Click on it to open it:

Step 4: Add breakpoints to your script
- Click on the line numbers where you want execution to pause:

Step 5: Save the Sales Order
- The execution will stop at the first breakpoint.
- Click the play button to stop at the next breakpoint.

You can use the buttons on the top right to continue execution. The current value of the variable is shown in gray text:

You can also click the “Console” tab and enter the names of variables to see their value:

Writing Snippets
For various reasons you may want to write a one-off client script and run it in the browser. One reason could be to quickly update a group of records without having to deploy a script in the environment. Here’s how:
Step 1: Create the Snippet
- With the Chrome Developer Tools open, click the “Snippets” tab on the left side.
- Click “New snippet”



