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 log and Field Watcher option
Once the JavaScript Log and Field Watcher
attribute has been set, you will see a window appear at the bottom of the screen. This is the same window that appears to show a watched field, but this time, the tab set will be JavaScript Log.
We can see the window that appears in Figure 9.14:
Figure 9.14: JavaScript Log window
This...