Closed devolonter closed 11 years ago
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:
This isn’t a complete pull-request see: https://github.com/blitz-research/monkey/pull/17
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: