Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.57 KB

File metadata and controls

23 lines (17 loc) · 1.57 KB

Debugging

Client Side

Command / Function Description
`console.log(String Object)`
`
{{data
json}}`
debugger; Native to Chrome and Firefox to set a browser breakpoint, letting an admin step through script line by line

Server Side

Command / Function Description
`console.log(String Object)`
`$sp.log(String Object)`
gs.log(String) Normal ServiceNow function to output text to the syslog database table.
gs.warn(String) Normal ServiceNow function to output text to the syslog database table as a WARNING.
gs.error(String) Normal ServiceNow function to output text to the syslog database table as an ERROR.
gs.addInfoMessage(String) Normal ServiceNow function to output a message to the page in the browser, visible in the ServiceNow UI
gs.addErrorMessage(String) Normal ServiceNow function to output an error to the page in the browser, visible in the ServiceNow UI