chmp / ipytest

Pytest in IPython notebooks.
MIT License
314 stars 17 forks source link

Add breakpoint() support #80

Closed alac1984 closed 2 years ago

alac1984 commented 2 years ago

It would be very interesting that, besides using --pbd option in autoconfig, we have breakpoint() support too.

I use breakpoints a lot with pytest when I'm developing new methods and functions, and I miss them in this library.

chmp commented 2 years ago

It seems that this is a bug in IPython. So there is not much I can do about it. As the original breakpoint hook stills seems to work, you could try resetting it in your notebook:

import sys
sys.breakpointhook = sys.__breakpointhook__

For me this fixed the issue.

chmp commented 2 years ago

Closing this for now, as this issue seems to be an upstream one.