The JavaScript Log and Debug window

The JavaScript Log window is a further way that logs can be viewed in the ServiceNow platform. Rather than using the GlideSystem logging methods, this method allows you to define a different type of log to send to a window that appears at the bottom of the screen.

To see the JavaScript Log window, you can go to the system settings of the instance you are working on. Once displayed, select the Developer option. From here, set the JavaScript Log and Field Watcher attribute to show the JavaScript Log window. 

We can see the attribute set in Figure 9.13:

Figure 9.13: Developer system settings showing the JavaScript ...

Get Mastering ServiceNow Scripting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.