DEBUGGER IN SERVICE NOW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2017 11:31 AM
Hello Guys,
Do we have proper debugging Methods to test ClientSide/Server Side SCripts.
Basically I am from JAVA background, there we have a good IDE where we can get all the information, So I would like to know do
we have any such feature for debugging scripts in service Now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2017 11:37 AM
Hello
Script debugger
The Script Debugger allows application developers to debug server-side JavaScript.
The Script Debugger allows each application developer to:
- Have a dedicated debug transaction, which only applies to the current session.
- Set and remove breakpoints.
- Pause the current session at a breakpoint.
- Step through code line-by-line.
- Step into and out of function and method calls.
- View the value of local and global variables.
- View the value of private variables from function closures.
- View the call stack.
- View the transaction the system is processing.
- Turn off the script debugger to resume running paused scripts.
To debug client-side script, you can use browser-based developers tools.
Note: For information about using Chrome to debug client-side scripts, see the blog post Using Chrome to Debug Client Side Errors by a ServiceNow Technical Support Engineer in the ServiceNow Community.
Only users with the script_debugger role can access the Script Debugger.A debugger transaction remains open as long as the user session is valid. If a user session logs out or times out, the system closes the debugger transaction.
- Parts of the Script Debugger interfaceThe Script Debugger interface displays information about breakpoints set, the call stack and line number of the currently executing script line, and details about variables and transactions.
- Script Debugger step-through controlsAfter the Script Debugger pauses a script, use the step-through controls to move between script lines and move between scripts in the call stack.
- Launch the Script DebuggerDevelopers can launch the Script Debugger from the application navigator, Studio, or from the syntax editor.
- Set or remove breakpointsSet breakpoints to pause scripts at specific lines, and remove breakpoints when you are done debugging them.
- Script Debugger statusThe Script Debugger status determines what debugging actions are available and what information it can display.
- Transaction detailsThe Script Debugger displays transaction details for the current paused user session.
- Available transaction detailsThe Script Debugger provides a standard set of transaction details for developers to debug and troubleshoot scripts.
- Script Debugger multiple developer supportThe Script Debugger allows multiple developers to debug their own transactions without affecting each other.
- Script Debugger impersonation supportYou can use the Script Debugger while impersonating another user, but only if the impersonated user has the script_debugger role and has read access to the target script.
- Script Debugger Scripts - Background supportThe Scripts - Background module does not support setting breakpoints directly in the script field. You can however, set breakpoints in the script objects called or triggered by the Scripts - Background module.
Please Refer :
JavaScript Debugger - ServiceNow Wiki
Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2017 11:48 AM
Yes you can refer the below link :
Also for debugging session refer this :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2017 11:48 AM
Hello Naresh,
If my understanding is correct, you are looking for how to debug ACLs, Business Rules, Script include And Client Scripts so please Refer below Urls might be helpful......
for ACLs Debugging Procedure :
for Business Rules Debugging Procedure :
for Client Scripts debugging Procedure :
JavaScript Debug Window - ServiceNow Wiki
Debugging Tools Best Practices - ServiceNow Wiki
for Script Include debugging Procedure :
JavaScript Debugger - ServiceNow Wiki
Debugging Tools Best Practices - ServiceNow Wiki
Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2017
04:42 PM
- last edited on
‎09-16-2023
09:56 PM
by
ServiceNow