could you please tell me what is the best way to debug the BPM script?
Now I use everywhere the same command:
$.log.info('Testing THIS and THIS: ' + JSON.stringify(variable));
Is there any better way?
I have to dissapoint you but there is no better way. We log many things in the bpm-script-api. Such as variable values and how the script is initialized and which will be saved and so on. So if you turn on the logging like described here
https://developer.enaio.org/redline/display/onpremise/BPM Server-Side Scripting#BPMServer-SideScripting-Logging
to a DEBUG level you see more in the dms-service log.
Sorry. I hope it helps.