How to debug Scripted Rest Service using Script Debugger

Ajit Pawar
Kilo Contributor

How to debug Scripted Rest Service using Script Debugger?

I have one scripted rest service and script debugger also has breakpoints, invoked script rest web service from rest api explorer and postman, getting the response but debug is stopping at break point.

 

Any suggestions?

Thanks

Ajit

 

4 REPLIES 4

Ajit Pawar
Kilo Contributor

any suggestion on this?

Hi,

check the blog below, it will help you to do the debug in the right way:

https://developer.servicenow.com/blog.do?p=/post/debugging-inbound-rest-calls-and-the-business-rules...

If I have answered your question, please mark my response as correct and/or helpful 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

Cheers
Alberto

Community Alums
Not applicable

I think you will not be able to debug it through debugger due to the different sessions. REST API authentication user will create its own session if I am not wrong.

ckoss
Kilo Contributor

same issue here ( MADRID ) 

i created this simple scripted REST (Post):

i start the script debugger and set a breakPoint

Then i call this via Rest API Explorer...I would expect that the debugger would stop at the breakPoint - but nothing is happening.

POST https://txxxxxxx.service-now.com/api/x_322433_xxx_cfgm/post_createupdateci_ck is fired and i just receive OK 200...
so the moment it seem that the debugging is completely ignored?!

any hint?

 

find_real_file.png

find_real_file.png