-
Notifications
You must be signed in to change notification settings - Fork 234
Support --pdb
again when --pdbcls
is also specified
#864
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
Comments
Unless you provide an example that works im inclined to close this as not supportable This isn't just about the class, but about how it is integrated |
I am now using python-web-pdb, and the following work out of the box:
|
I approve of the notion, I'd like to see a new option to allow xdist pdb in combination with a pdb class What happens when multiple processes hit pdb and what happens when a ssh gateway is used? |
Re SSH gateway: I have no idea, never used that feature, but I see no reason for it to be much different. The idea to use a channel for communication with the debugger that isn't also used for IPC should work just as well, in theory - unless perhaps there is some application-level timeout at play. Re multiple processes failing, I see two likely possibilities depending on the debugger:
As someone who has spent hours of desperation finding remote debugging as a valid approach (because of a heisenbug that only happens when xdist is used to distribute tests, and only on that one machine with 128 physical cores where we use 128 workers), either of these would still have been a massive improvement over the status quo. End of the day, 99% of the time it's better to use xdist to find failures, and then re-run those tests without for debugging - but for those cases where that isn't enough, and you actually need to see what is happening in a worker - even an experimental solution with huge caveats is preferable to no support at all. At the very least I would like the option to shoot myself in the foot here. |
This ties in with #863 - debugging isn't made impossible by xdist, it's just that default PDB doesn't work. Remote debuggers do, and it would be nice if
--pdb
resulted in an error (but also a nudge to use a remote debugger and specify it using--pdbcls
)--pdb
in combination with--pdbcls
did not result in an error anymoreThe text was updated successfully, but these errors were encountered: