Written by

Question Vivek Nayak · Aug 8, 2019

How to debug Rest service ClassMethod on postman call

I want to debug my class method when call REST service using postman.

Comments

Hello, would you like to debug using which development IDE?
Are you already familiar with some form of debugging?

0
Vivek Nayak  Aug 8, 2019 to Rodolfo Moreira dos Santos

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.

0
Rodolfo Moreira dos Santos  Aug 8, 2019 to Vivek Nayak

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:

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.

0
Sourabh Sethi · Aug 8, 2019

you can call your classmethod directly calling from terminal by passing desired parameters via terminal.

And then attaching the jobid of terminal in studio.

0