When browser's debugger encounters a keyword “debugger” it stops the execution and goes to the line where he met this keyword. With browsers development tools you can explore stack and move on it. It works in all modern browsers.
Yes, I realize that it allows you to debug only the translated code. But I think it's better than just the error with "STOP" text.
The debugger runs only when development tools are opened in browser and debugging takes place.
Chrome:
Just press F12 key
Firefox:
Choose Web Developer -> Web Console
In the console go to the “Debugger” tab
IE:
Press F12 key
In the console, go to the "Script" tab
Press "Start debugging"
Opera:
Choose Page -> Developer Tools -> Opera Dragonfly
In the console go to the "Scripts" tab
Press the "Reload" button
P.S. Previous pull-request broke reflection. I added filter for DebugLog and DebugStop functions. Now it works properly. But I think you know a better solution.
When browser's debugger encounters a keyword “debugger” it stops the execution and goes to the line where he met this keyword. With browsers development tools you can explore stack and move on it. It works in all modern browsers.
A little more detail can be found here: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Statements/debugger
Yes, I realize that it allows you to debug only the translated code. But I think it's better than just the error with "STOP" text.
The debugger runs only when development tools are opened in browser and debugging takes place.
Chrome:
Firefox:
IE:
Opera:
P.S. Previous pull-request broke reflection. I added filter for DebugLog and DebugStop functions. Now it works properly. But I think you know a better solution.