blitz-research/monkey — pull request #17 by devolonter (2013-04-28 20:03:07+00:00)
Title: Debugger for HTML5 target

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:**
1. Just press F12 key

**Firefox:**
1. Choose Web Developer -> Web Console
2. In the console go to the “Debugger” tab

**IE:**
1. Press F12 key
2. In the console, go to the "Script" tab
3. Press "Start debugging"

**Opera:**
1. Choose Page -> Developer Tools -> Opera Dragonfly
2. In the console go to the "Scripts" tab
3. 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.