-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Exported convenience function to get a callstack #3744
Comments
? |
Also |
backtrace and catch_backtrace are already exported. Exported helper functions can be How about For a user point of view, typical use would be in a |
How about this: We export show_backtrace make both arguments optional (defaulting to STDOUT and
|
We will need |
if you want the backtrace of the exception caught, yes. |
Exporting show_backtrace with both arguments optional is good. However, I would still prefer a less verbose, convenience function for the typical user code scenario (server side code) - i.e., logging caught exceptions. |
Well, I'm open to suggestions for names, but I think |
How about just For other scenarios, people can use |
Yeah, I guess that's fine with me. I still don't think that name is ideal, but oh well. @JeffBezanson ? |
Bump. |
What if That way we can define the usual |
@ssfrr +1 for that idea. |
Happened upon this while debugging this PR. Seems relevant: #14469 |
I think this is fixed with the
|
Currently, in case of errors, the callstack is only printed and displayed by the REPL.
It will be good to have an exported function(s) that can a) print the callstack when called and b) return a stringified version of the same.
See https://groups.google.com/d/topic/julia-users/S485_5jG2Nw/discussion
The text was updated successfully, but these errors were encountered: