jsn / ServiceNow, simplified.
AustraliaREFERENCE GUIDE

Access the JavaScript log

On this page

Access the JavaScript log

JavaScript that runs on the browser, such as client scripts, can include a call to jslog() to send information to the JavaScript Log. Users with the admin role can access this log.

Before you begin

Role required: admin

About this task

The steps to access the JavaScript debug window depend on which UI version you’re using.

Note: The JavaScript debug window is not supported with Next Experience. For more information about supported features in Next Experience, see Considerations for activating Next Experience.

Procedure

  1. Open the JavaScript log by navigating to the appropriate location for your version of the UI.

<table id=“simpletable_HowToOpenJavaScriptLogAndFieldWatcherInDifferentUIs”><tbody><tr><td>

Core UI

</td><td>

  1. Select the gear icon in the banner frame.

  2. Select the Developer section.

  3. Toggle the JavaScript Log and Field Watcher switch.

</td></tr><tr><td>

UI15

</td><td>

  1. Select the gear icon in the banner frame.

  2. Select JavaScript Log and Field Watcher.

</td></tr><tr><td>

UI11

</td><td>

Select the debug icon in the banner frame.

</td></tr></tbody> </table> A new pane opens at the bottom of the screen. It shows the JavaScript Log tab and may also show the Field Watcher tab.

  1. If needed, select the JavaScript Log tab.

  2. Select the clear icon to clear the contents of the log, as needed.

Keep exploring.

Find another answer, or bring this documentation into your own tools.