Hi! This is not a question. I would like to share with you a trick I've
recently figured out.
I was wondering how to debug forms scripts like those in field events
using step by step debugger (not just console.log).
The first my attempt was to put the "debugger" command. But Designer
said "identifier is a reserved word". Then I figured out that in order
to trick syntax checked it's needed to put the debugger command into the
eval function.
So if you put the code as follows:


somewhere in place you want executions stops then the syntax validator
will pass the code. And when you run your form you can look at the
Source tab of DevTools in your browser. Execution will stop right in the
line where debbuger was set. Then press F10 (next step in Chrome) until
you get in the script code.

hello_amigo's Profile: https://forums.netiq.com/member.php?userid=211
View this thread: https://forums.netiq.com/showthread.php?t=55505