The following are debugging strategies for client-side scripts, which run in the web browser and manipulate the user interface:
g_form.addInfoMessage(). This is a client-side API that displays an information message at the top of the form.
Field Watcher. This is a debugging tool that displays the current and previous values of one or more fields on a form.
jslog(). This is a client-side API that writes a message to the browser console.
The following is not a debugging strategy for client-side scripts, but for server-side scripts, which run on the ServiceNow platform and manipulate the database:
gs.log(). This is a server-side API that writes a message to the system log. References: Client-Side Scripting APIs, Debugging Client Scripts
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit