How can I debug my code using VisualScript?
I'm in the Editor and I'm unclear on how I'm supposed to add debug code?
-
Official comment
The JavaScript you write in the Editor is executed in your browser when you run the gadget. Just put the line:
debugger;
at the start of your script (or wherever you want the debugger to open) and the browser's debugger will open and stop at that line. Then you can step through the code.
The Editor itself will indicate syntax errors with a warning symbol on the line. The tool-tip indicates the nature of the error.
Comment actions
Please sign in to leave a comment.
Comments
2 comments