ariya/phantomjs — pull request #229 by execjosh (2012-04-04 14:55:48+00:00)
Title: Add --debug option

[Issue 436](http://code.google.com/p/phantomjs/issues/detail?id=436)

This adds a `--debug` option and makes it visible in JS-land via `phantom.isDebug`. Also, when `phantom.isDebug` is `true`, new `WebPage`s have a default `onError` handler set.