Script debugger
Quick answer
The Script Debugger lets you set breakpoints in server scripts and step through execution, inspecting variables.
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.
Want to learn this properly?
Our live, instructor-led ServiceNow Training covers this hands-on, with real projects and a certification path.
Check your understanding
What does the script debugger let you set?
- A. Breakpoints
- B. ACLs
- C. Reports
Show answer
A. Breakpoints
Breakpoints pause execution for inspection.
What can you inspect while paused?
- A. Variables and the call stack
- B. Only the URL
- C. Nothing
Show answer
A. Variables and the call stack
You can inspect locals, current and the stack.
Frequently asked questions
What does the term Script debugger refer to in ServiceNow?
The Script Debugger lets you set breakpoints in server scripts and step through execution, inspecting variables.
What is worth remembering about Script debugger in practice?
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.