Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: should print out stacktrace of caught exceptions in debug mode. #23

Open
gergely-ujvari opened this issue Nov 25, 2013 · 0 comments

Comments

@gergely-ujvari
Copy link

I suggest a very simple, yet (IMHO) very helpful suggestions. I was using jschannel for notification and the function which it've called had an obvious error in it, but jschannel quietly ate the exception, even in debug mode, and the only error it gave back is a "runtime_error" string, which is far from being helpful.

After inspecting the code, I think adding a simple console.log(e.stack) or something similar (only in debug mode) here: https://github.com/mozilla/jschannel/blob/master/src/jschannel.js#L390
would help a great deal when debugging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant