Log console error when callback throws exception. #5

wants to merge 1 commit into


None yet
2 participants

sethml commented Sep 20, 2011

On Chrome (probably in V8), there's an unfortunate bug where re-throwing an exception does not preserve the stack trace. This makes it super confusing and annoying to try to debug dnode callbacks which throw an unhandled exception.

This change is a really crude but helpful way to debug these problems: just print the stack trace on the console, so the developer has something to work with. Perhaps there's a better way?

mhart commented Jul 1, 2012

I believe this should be fixed now? http://code.google.com/p/chromium/issues/detail?id=60240

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment