How to debug Rest service ClassMethod on postman call
I want to debug my class method when call REST service using postman.
Comments
This free guide is pretty great if you are asking for Postman help? https://community.getpostman.com/t/the-postman-cheatsheet-quick-reference-guide-2019/1054
My colleague @Sourabh Sethi created a pretty great video on this subject yesterday which may also help: https://community.intersystems.com/post/new-coding-talk-informative-and-fast-web-api-objectscript-and-ensemblehealthshare
Hello, would you like to debug using which development IDE?
Are you already familiar with some form of debugging?
I am using Inter System IRIS IDE.
I am new in Inter System IRIS development,, and want debug the class method when call method using postman request.
In your Service Rest, insert one hang like this:
Method OnProcessInput(pInput As %CharacterStream, Output pOutput As %Stream.Object) As %Status
{
//20 seconds
hang 20 break
Set tSC = $System.Status.OK() In your Production you need have a port of your service like this:
.png)
Use Postman to send a request like this: http://server:port
In your Studio, Attach
your process after you send a request from Postman, and wait the process be attached.
you can call your classmethod directly calling from terminal by passing desired parameters via terminal.
And then attaching the jobid of terminal in studio.