pytest-dev / pytest-xdist

pytest plugin for distributed testing and loop-on-failures testing modes.
https://pytest-xdist.readthedocs.io
MIT License
1.46k stars 232 forks source link

Debugging with docker compose interpreter doesn't work on python 3.11 #995

Open tm-slavik57 opened 9 months ago

tm-slavik57 commented 9 months ago

Environment:

Issue: When running a debugger with a breakpoint, the breakpoints don't work.

I tried a few things which expose some behavioural changes:

These 2 attempts made me thing it is related to this plugin and specifically to something that changed between python version 3.10.13 and 3.11

RonnyPfannschmidt commented 9 months ago

We have no idea if the pycharms plugin supports execnet, please report to jetbrains

tm-slavik57 commented 9 months ago

I've opened an issue to jetbrains, putting it here if someone else stumbles into this bug: https://youtrack.jetbrains.com/issue/PY-65550/Pycharm-2023.3.2-with-docker-compose-interpreter-dont-stop-on-breakpoints-on-python-3.11

tm-slavik57 commented 9 months ago

Apparently it happens without Docker as well: https://youtrack.jetbrains.com/issue/PY-65561/Debugger-doesnt-stop-at-breakpoints-when-using-pytest-xdist