-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Automatically stop console output capturing when pudb is used #647
Comments
Closing as stalled |
if If I had learned about these switches earlier, I would have used pudb earlier — which I sincerely wished! I consider this to be essential. If nothing seems reasonable, a mention in the doc would be highly appreciated. |
@benjaminweb pdb is explicitly supported since its in the stdlib - other debuggers added support code for pytest (pdbpp), or pytest plugins where written (pytest-ipdb) for example also pytest supports declaring a pdb class, in which case pytest.set_trace is invoked does the pytest support and defers the rest to the actual debugger also the cli options are unrelated to debugger integration, using those just makes it easier to use unsupported tools a integrated debugger disables capture while debugging and then re-enables it |
@RonnyPfannschmidt is the pytest pdb class stuff mentioned in the docs somewhere? I've only found https://docs.pytest.org/en/latest/usage.html#setting-breakpoints, which only mentions the stdlib pdb module. |
pytest-ipdb is no longer maintained. @RonnyPfannschmidt so, the lacking pudb integration is due to that pudb seems not to declare a pdb class? can we verify this and delegate the issue if applicable to them? Ah, I see there is already an issue pending: inducer/pudb#221 What needs to be done to get the implementation with pytest right? The current approach still seems to require the |
inducer/pudb#224 suggest this has been done already. cc @inducer |
inducer/pudb#224 just concerns passing on exceptions correctly. I haven't tested debug-on-test-fail with pytest and pudb, so I don't know whether it works as intended. (Although I am a heavy user of pytest, so thank you!) |
Originally reported by: BitBucket: vmalloc, GitHub: vmalloc
Currently py.test correctly identifies when pdb kicks in and temporarily stops output capturing. This also works for ipdb AFAIK. When trying to use pudb to debug or set_trace in running code, the output capturing is not turned off, thus causing an error. It would be nice for pudb to be recognized as well.
The text was updated successfully, but these errors were encountered: