cocos2d/cocos2d-x — pull request #1589 by funkaster (2012-11-16 20:16:15+00:00)
Title: improves the debugger

Some changes to the debugger. This changes a little bit the way the debugger is executed: There's no way to create new globals (compartments) from js anymore. Also, to enable the debugger, you can call `scriptingCore->enableDebugger()`. That will load the `debugger.js` script, prepare the debugger environment and expose the `startDebugger` function, which you can test for in your js code, and then call with the right arguments. I will update also the `debugger.js` and the example `main.js` (as well as the instructions) in the cxx-generator repo.