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 production 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