You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I've been using the built-in Python debugger Pdb which you can drop into by just adding breakpoint() since Python 3.7. Normally I run my tests with coverage but I have to remember to not do that, bypassing my normal unittest script, because the process will just hang and need to be killed.
Describe the solution you'd like
It would be nice if coverage could detect that a breakpoint was hit and abort.
Describe alternatives you've considered
If aborting isn't a good idea, coverage could print a message so that I know what's going on and can kill the process. Alternatively the process could somehow just work through a debug session but I don't actually need the coverage statistics when I'm debugging.
Additional context #1337 seems related but the result of the interaction is different. In that issue the reporter says that breakpoints are skipped whereas here it seems like the breakpoints are hit but somehow coverage prevents the Pdb CLI from popping up.
The text was updated successfully, but these errors were encountered:
Ahh my bad. I should have tried to created a minimal example first. When I actually tried to do that now I realized the problem has nothing to do with coverage. It was the -b option in the unittest module. That apparently also buffers the debugger output.
Is your feature request related to a problem? Please describe.
I've been using the built-in Python debugger
Pdb
which you can drop into by just addingbreakpoint()
since Python 3.7. Normally I run my tests withcoverage
but I have to remember to not do that, bypassing my normal unittest script, because the process will just hang and need to be killed.Describe the solution you'd like
It would be nice if coverage could detect that a breakpoint was hit and abort.
Describe alternatives you've considered
If aborting isn't a good idea,
coverage
could print a message so that I know what's going on and can kill the process. Alternatively the process could somehow just work through a debug session but I don't actually need the coverage statistics when I'm debugging.Additional context
#1337 seems related but the result of the interaction is different. In that issue the reporter says that breakpoints are skipped whereas here it seems like the breakpoints are hit but somehow coverage prevents the Pdb CLI from popping up.
The text was updated successfully, but these errors were encountered: