Hi developers!
How do you debug implementation code in .impl classes of REST.API in InterSystems IRIS?
Especially if you don't have access to globals, so no things like:
Set ^AAA="here we are"
not possible in this case.

Suppose I have the following signature of the REST.API method called as POST and containing JSON. :
ClassMethod submitForm(formData As %Stream.Object) As %Stream.Object
{
return formData
}
Can I debug "line by line" or "command by command"?
Can I return anything to the browser's console? Or into any IRIS expected place, which is relatively easy to check?
What are my options?
Please, share your experience?