ServiceNow Tools · LessonReviewed by Sneha I, ServiceNow Trainer, 8 yrs · Updated · Published · current release · utility
ServiceNow Script debugger
Step through server-side code with breakpoints.
Quick answer
The ServiceNow Script Debugger sets breakpoints in server-side code, business rules and script includes, so you can trigger it by saving a record, step through line by line, and inspect current, the local variables and the call stack while it runs. Pair it with gs.info() logging for quick checks that do not need a full session.
The Script Debugger lets you set breakpoints in server scripts and step through execution, inspecting variables.
- Set breakpoints in business rules and script includes.
- Trigger the code (save a record) and step line by line.
- Inspect
current, locals and the call stack. - Pair with
gs.info()logging for quick checks.