Chapter 14. Debugging

ServiceNow is a vast and potentially very complex system, which means that the need to debug your code now and then is not only inevitable, but perfectly normal. The key is to write detailed test scripts, and test thoroughly so that any bugs are discovered prior to reaching your production instance.

In this chapter, we're going to learn about the various tools and methods used in troubleshooting and debugging your code in ServiceNow, including the following topics:

  • Debug message logging
  • Client-side debugging
  • Server-side debugging
  • Debugging security and ACLs
  • Server-side JavaScript debugger

Logging

Note

While there is a feature called session debug logging, this section is about the system log and how to use logging within scripts effectively ...

Get Learning ServiceNow 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.