DEV Community

Thom
Thom

Posted on

3

ServiceNow: Script Tracer

With the new Quebec release, ServiceNow has now a 'Script Tracer'!
The Script Tracer is a javascript debugger which helps you debug synchronous, server-side scripts which are executed as part of an application's logic.

To start tracing you need to open the Script Tracer via System Diagnostics > Script Tracer. The Tracer opens in a new window and then press the 'Start Trace' button to start tracing.

alt text

The tracer tracks all server-side scripts and UI actions that are triggered during the time of tracing. Errors are indicated by a red cycle with a X.

alt text

There are three tabs with more information. The state tab shows the fields and new values resulting by the script. Changed values are highlighted in green.

The Script tab shows the specific line of script, with the button 'Show Script' you can see the complete script. With the button 'View File' in the top right, you can switch directly to the file.

The Transaction tab shows details about the current transaction.

Top comments (1)

Collapse
 
kamal_deeppareek_f5bb5d8 profile image
Kamal Deep Pareek

The Script Tracer in ServiceNow Quebec release is an essential tool for debugging server-side scripts. It helps track all server-side actions and UI triggers. The tool provides detailed insights across three tabs: State, Script, and Transaction. Errors are clearly highlighted, improving the debugging experience significantly.

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay