ajaxorg/cloud9 — pull request #1889 by janjongboom (2012-07-06 09:26:00+00:00)
Title: Debugger without timing issues

At the moment it's kinda sorta impossible to debug node.js applications on cloud9. Primary reason is the increased lag due to openshift sitting behind it. This always was a problem but we never really saw it because the lag wasn't big enough, as the debugger has quite some timing issues. This pull request:

* Restructures the event system, all events are emitted at the right time and only once
* Doesn't attach to the debugger twice, or when the debugger is not ready yet
* Easy up the yellow marker issues, by making the debugger the boss of it and only listening to break events. Nothing smart there anymore.

So: it's faster, it doesn't have `setTimeout` anymore, and the yellow markers actually always show up when required. Feel free to refresh browser etc. state will be persisted and you will be able to continue debugging. Yay.

@zefhemel