-
Notifications
You must be signed in to change notification settings - Fork 55
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
Improve argument reporting #123
Comments
I have found out, arguments are available when a FunctionClauseError is reported. Here is the explanation. With that, I have also found out that, the stack trace is been parsed at notice.ex line 57. Hence for the limited cases like FunctionClauseError, the arguments are not available for the final output. There is an existing PR for the fix |
@TraceyOnim nice! So with #373 merged, what should the documentation say about |
Another question: do you think it's possible to display args for other types of exceptions with some additional research/work in the future? Or should I close this issue after the documentation is updated? |
From the research, I can say filter_args only works with FunctionClauseError. I have checked the changelog 44c15cf. Arguments are shown when |
Ah yeah, good catch! I'll fix it. |
Lemme do some additional research on this first before closing. Just in case I might miss something |
@sorentwo I've been thinking, would it make sense to default to |
Great idea, I second this |
@joshuap That would improve the experience for most people and isn't a breaking change. I'm in favor 👍 |
@TraceyOnim great, want to submit a PR for that? If the two of you are good with a minor release instead of major (since it's not breaking), I'm good with that. |
Sure, I can submit the PR |
Confirmed that args are reported properly for For future reference, here's a simple way to cause a Enum.drop([1, 2, 3], 0.0) |
Honeybadger now supports sending arguments, however the cases where the arguments are actually available seem limited; see this comment by @sorentwo.
We may be able to provide arguments more often by studying how Elixir/iex display the arguments in printed stack traces.
The text was updated successfully, but these errors were encountered: