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

veena_kvkk88
Mega Guru

I believe that msg shows up in the river of logs when you scroll down on the record. I don;t have a debug msg now but you can see where I meant in the screenshot below.



Screen Shot 2016-10-18 at 3.22.32 PM.png


Thanks veena.kvkk88.



What I meant is that I don't see the debug output generate from my script such as "gs.debug("Got matched event name " + event_name);"



There are many system logs as you shown, but I don't see my debug message although I know the script runs and returns REST response as expected.


veena.kvkk88


She Sull
Giga Guru
  1. Navigate to System Logs > System Log > Script Log Statements
  2. Update the filter to Created on Today (or whatever day you are looking for)
  3. Message contains (enter the message you are looking for)


debugMessage.png


hghg
Kilo Contributor

Thanks for the reply, Sherry.



I still don't see the debug message output generate in my scripted REST API.   It works in business rule script though.



Guess gs.debug() in scripted REST API either doesn't work (not supposed to work) or there are some limitations. Does anyone know?