linkedin/dustjs — pull request #56 by jimmyhchan (2012-06-07 15:54:13+00:00)
Title: Fix for Issue #50: helper for debugging the context + console log wrapper

Adding a contextDump helper which logs the context stack.

I'm creating a wrapper/alias for `console` called `_console`. This checks whether `console` exists and provide a fallback (currently a no op) if it does not.

I'm looking for `console` in the global object instead of `window` to support node.

Later enhancements:
pretty print by unravelling the head/tail structure
option to print only the head.