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

How to stop doctest hijack unhandled exceptions? #176

Closed
tower120 opened this issue Jan 24, 2019 · 2 comments
Closed

How to stop doctest hijack unhandled exceptions? #176

tower120 opened this issue Jan 24, 2019 · 2 comments

Comments

@tower120
Copy link

Hi!
I would like the debugger to stop on unhandled exceptions. But doctest catch them all.
Is it possible to temporary disable exception hijacking?

@onqtam
Copy link
Member

onqtam commented Jan 24, 2019

Hmmm this was actually suggested long ago - so a stack trace can be obtained.

Could you try the DOCTEST_CONFIG_NO_EXCEPTIONS_BUT_WITH_ALL_ASSERTS config option and let me know if it is enough?

It changes the semantics for REQUIRE and the <LEVEL>_THROWS.../<LEVEL>_NOTHROW asserts though...

@tower120
Copy link
Author

I'm sorry, turns out it work as is. I just had disabled breakpoints on exceptions.

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