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

Inspect exception with gdb #421

Closed
r-barnes opened this issue Sep 14, 2020 · 2 comments
Closed

Inspect exception with gdb #421

r-barnes opened this issue Sep 14, 2020 · 2 comments

Comments

@r-barnes
Copy link

When running doctests if user code throws an exception, it doesn't seem possible to do a backtrace with gdb. How can I do this?

@r-barnes
Copy link
Author

When starting gdb use:

catch throw

GDB will then intercept the exception before doctest handles it.

@evandrocoan
Copy link

I had the same issue. Thanks for sharing a solution!

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

2 participants