Set or remove breakpoints

Set breakpoints to pause scripts at specific lines, and remove breakpoints when you are done debugging them.

Before you begin

Role required:
  • admin
  • script_debugger

About this task

Breakpoints belong to the developer who sets them. Developers must set and remove their own breakpoints.

Procedure

  1. Navigate to the server script to debug. For example, navigate to System Definition > Business Rules.
  2. From the Syntax Editor, click the gutter next to a script line.
    Current stateDescription
    Blank line Click a blank line to set a breakpoint. The Script Debugger pauses the script at this line.
    Breakpoint Click a breakpoint to remove it.
  3. From the Syntax Editor toolbar, click the Open Script Debugger icon.
    The system opens a Script Debugger window.
  4. Trigger the script. For example, create a record to trigger an insert business rule script.
    The Script Debugger pauses the script on the first line containing a breakpoint, and the system displays a confirmation window.
  5. Click Start Debugging.
    The system switches focus to the Script Debugger window and displays the target script paused at the first breakpoint.
  6. When debugging is complete, remove breakpoints from the script.