Get variable values from Service Portal using Chrome

Dennis17
Tera Guru

Hi colleagues,

 

I saw one time someone getting variable values of one catalog item from Chrome console (in Service Portal).

Does anyone know hot to achieve that? At the end, I would like to know whether I can check variable values (even better if I can check hidden variables) for testing purpose.

 

Thanks in advance!

Denis.

1 REPLY 1

Peter Bodelier
Giga Sage

Hi @Dennis17 

 

If you put debugger; in a client script. The script will pause at that point when the console is open.

From there, you could access everything in your script.
You might also mean the option to print the widget's data to the console. This is done by Ctrl/Cmd + right click on a widget, and select either of the 'Log to console options' 

PeterBodelier_0-1702981317226.png

 


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.