How to debug Script(Script include / Asynchronous processing)

Takumi_
Tera Contributor

Hi All, I'm trying to debug asynchronous processing. I wanna know best way how to debug asynchronous processing.

usually I check a log if I want to know variable(Object) value. cuz Script Debugger doesnt work in asynchronous processing. 

Thats worst way in my life.

If you know other way, Please teach me.

Thank you for reading.

 

#Debug #Asyncronous processing

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@Takumi, Unfortunately, the options for asynchronous debugging are still pretty limited in ServiceNow. They did come up with script tracer https://docs.servicenow.com/bundle/vancouver-application-development/page/script/debugging/concept/s...
However, it also offers limited to showing which lines on Service side across business rules and script includes have executed and if they contain any errors. For accessing the run time values of the variables you would still have to rely on the gs.info statements in the code.

View solution in original post

1 REPLY 1

Sandeep Rajput
Tera Patron
Tera Patron

@Takumi, Unfortunately, the options for asynchronous debugging are still pretty limited in ServiceNow. They did come up with script tracer https://docs.servicenow.com/bundle/vancouver-application-development/page/script/debugging/concept/s...
However, it also offers limited to showing which lines on Service side across business rules and script includes have executed and if they contain any errors. For accessing the run time values of the variables you would still have to rely on the gs.info statements in the code.