How to display the value of a variable in jelly script

jmweli
Kilo Expert

Hi ServiceNow Developers,

 

In jelly script how do I display the value of a variable? For instance in javascript I can use alert in a client script or gs.log in business rule or script include. I am currently debugging jelly script code and would like to know how can I display the value of a variable.

 

Kindly advise.

 

Thanks,

Johannes

8 REPLIES 8

Hi Johannes Mweli,



Thanks! Has this been answered already? If yes, kindly mark the post of the person who have answered your question correctly. Otherwise, feel free to discuss further your concern.


Thanks for the help!



Where would it print if I try this: <g:breakpoint var="sysparm_view"/>? Console? HTML?


johannes5
Giga Expert

I would like to mark this post answered, how do i go about doing so


Hi Johannes Mweli,



Just click the Correct Answer link located under the post you think have answered your question. See screenshot below for example:



Sample.GIF