We have learned how to write client-side and server-side code, including client scripts, business rules, script includes, script actions, UI macros, and UI pages using Jelly, and we have also learned how to design workflows. While there are many different kinds of scripting features available in the platform, developers usually also require a set of tools and features to debug their code. The ServiceNow platform offers developers many different ways to debug, troubleshoot, and optimize their code.
Within the ServiceNow platform, we write both server-side and client-side code. The ways to troubleshoot them more or less remain the same but the approach differs. In this chapter, we will cover the many different troubleshooting and debugging techniques available within the platform. We will also cover some coding best practices and understand the flow and execution of the different available scripting options, including server-side scripts, client-side scripts...