g:breakpoint

The g:breakpoint tag can be used to dump the values of all variables or a specific variable into the system log. It is useful for debugging purposes while developing Jelly scripts. It accepts the following attributes:

  • var: (Optional) The var attribute can be used to specify the name of the variable whose value needs to be dumped into the system log. If no var attribute is specified, then the system dumps all variables (including values) into the Jelly context available until the current execution.

Example 1--dumping all variables:

<g:breakpoint /> 

Example 2--dumping a specific variable:

<g:breakpointvar="sysparm_view"/> 

Get ServiceNow Application Development 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.