Discussion (14)1
Log in or sign up to continue

In VS Code, you can create a debugger launch configuration for your API endpoint. Set the "request" attribute to "attach" and the "processID" attribute to the job ID of the production component that services your API. Set breakpoints and run this configuration. Then when a request arrives, you can debug the service and endpoints while viewing the REST request contents.

Here is a reference video; example starts at 4:00.

https://www.youtube.com/watch?v=diLHwA0rlGM

This can be done using the Serenji extension. Free evaluation keys for Serenji's debugging features are available on request.

The steps are documented here. I demonstrated it on the main stage at Global Summit 2019 during a session hosted by @Jeff Fried but unfortunately the YouTube video of that session has since been set private (see item 10 at https://community.intersystems.com/post/intersystems-global-summit-2019-... for the link).