- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2020 04:00 PM
Hi ServiceNow Community Developers,
If I am using the gs.debug() function in a scoped application where do I go to see the output that was printed out by the function?
For instance, if I use gs.log() in a global application I normally navigate to "Script Log Statements" and I would see the output there. For gs.debug() how & where do I see the output? Please advise.
Thanks,
Johannes
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2020 04:09 PM
Go to the sys_app table (e.g. type sys_app.list in the Application navigator search box), find your scoped app record in the list and open it.
Down in the Related links, you'll see "enable session debugging" - click it.
You'll then see your gs.debug/gs.info/gs.warn/gs.error statements at the bottom of standard lists and forms and as of New York, you'll also see them in the Script Debugger on the session log tab.
There may be an easier way, but this is how I do it (since System Applications> Applications no longer brings you to sys_app.list).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2020 04:09 PM
Go to the sys_app table (e.g. type sys_app.list in the Application navigator search box), find your scoped app record in the list and open it.
Down in the Related links, you'll see "enable session debugging" - click it.
You'll then see your gs.debug/gs.info/gs.warn/gs.error statements at the bottom of standard lists and forms and as of New York, you'll also see them in the Script Debugger on the session log tab.
There may be an easier way, but this is how I do it (since System Applications> Applications no longer brings you to sys_app.list).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2020 05:07 AM
Thanks Chuck, your response was very very helpful

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2020 05:13 AM
If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2020 07:08 AM
For what it's worth, output from gs.debug/info/warn/error also go to System Logs> All - great for asynchronous operations.