-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
support pdb.set_trace() with pytest-xdist #390
Comments
Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42): pytest-xdist manages a test slave process which collects and runs tests (at the control of the master process). However, it doesn't currently implement "stdout/stderr/stdin" forwarding. So it is this forwarding that is missing for making pdb() work. It's probably not very hard to implement this forwarding but requires understanding of execnet which is the underlying library for managing master-slave communication. |
@rbuchholz is actually @rbu on GitHub |
Closing as stalled, also this one is rather hard to do propperly |
If you need to use PDB momentarily to troubleshoot, but don't want to rip out xdist, you can invoke it with the flags |
Also, if you need to use a debugger, and you actually need test distribution (for example, because you are debugging a xdist-heisenbug that only happens when tests are distributed), you can use a remote debugger! python-remote-debug just solved that issue for me. |
Originally reported by: Robert Buchholz (BitBucket: rbuchholz, GitHub: rbuchholz)
Given a test
I get
This is py.test version 2.4.2, imported from .../pytest-2.4.2-py2.7.egg/pytest.pyc
setuptools registered plugins:
pytest-xdist-1.9 at .../pytest_xdist-1.9-py2.7.egg/xdist/plugin.pyc
The text was updated successfully, but these errors were encountered: