azicchetti/jquerymobile-router — pull request #67 by sukima (2012-12-13 15:07:27+00:00)
Title: Adds better stack trace to error messages

Found that in Chrome when an error happens in say a handler function the
try/catch block would catch the error and pass it along to the debug()
method. The problem is that when the debug function in turn does a
console.log(err) it looses the stack trace and your not able to see what
happened.

This might be the limitations of Chrome's console but adding the
err.stack allows the developer a peek into the cause of any errors
thrown.