Get variable values from Service Portal using Chrome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 01:53 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 02:21 AM
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'
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.