Is it possible to dump the entire contents of a var in an isml template.

For example this gives me output:


But if I want to debug the entire 'payment' object:


The result is: [object Object]


You can use as below in script:

    out.print( JSON.stringify(payment) );

This will stringify the object and show string as below:


instead of [object Object]

| improve this answer | |
  • 1
    thanks that works. I also discovered that for more detailed debugging I can use the debugger tool in VS Code to create break points to see the value of all objects – Alan A Aug 7 '19 at 9:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.