Breakpoints

Creating breakpoints in your code is as easy as opening up any record with a script editor field (business rule, UI Policy, ACL, etc.), and left-clicking in the margin. This will add a blue arrow to indicate a breakpoint on the specified line, as you can see below. However, though you can add breakpoints to client-side script objects, these breakpoints will be ignored since the debugger only functions server-side.

Breakpoints are linked with the line number on which they're generated. If your script has 10 lines and you create a breakpoint on the 9th, but then remove three of the lines so that there are only 7, the breakpoint will ...

Get Learning ServiceNow now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.