Where is gs.debug() output?

hghg
Kilo Contributor

I use gs.debug to generate some debug message. I have enabled Session Debug in my application.   I even tried "Enable All" under System diagnostics-> Session Debug and Debug Log. Still don't see the debug message printed out in System Logs > System Log > Application Logs.

Where I should go to see the debug message printed by gs.debug() in my application?

10 REPLIES 10

At the moment the only way to see gs.debug() messages is to turn on "System Diagnostics > Session debug > Enable All" in Helsinki (i don't know about previous releases) and use your browser search functionality to find "[DEBUG]". I tried all other Debug Scripts (e.g. Debug Log, just filter "debug" to see all) individually, no one is showing gs.debug(). The big problem is that there is much overhead to the "Enable All" function, so a "Show Log Verbosity Debug" option would be nice.


Stephen Farrar
ServiceNow Employee
ServiceNow Employee

Can you try creating a system property in your app scope - <<scope>>.logging.verbosity and set it to debug, then see if they show up?



See the docs here:


Scoped Script Logging - ServiceNow Wiki


This works. tested in Istanbul patch 3.


Vinod54
Tera Expert

Same with me gs.debug message does not come in system logs, when adding in scripted rest api