pytest-xdist
pytest-xdist copied to clipboard
Debugging with docker compose interpreter doesn't work on python 3.11
Environment:
- Pycharm version: PyCharm 2023.3.2 (Professional Edition)
- Python version: 3.11
- pytest-xdist version: 3.5.0
pytest.inifileaddopts:-ra -q -n auto- The interpreter is defined using the docker compose: https://www.jetbrains.com/help/pycharm/using-docker-compose-as-a-remote-interpreter.html
Issue: When running a debugger with a breakpoint, the breakpoints don't work.
I tried a few things which expose some behavioural changes:
- Downgrading python to
3.10.13solved the issue and breakpoints started working - Removing the
-n autowhile staying on python 3.11 also solved the issue and breakpoints started working
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
We have no idea if the pycharms plugin supports execnet, please report to jetbrains
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
Apparently it happens without Docker as well: https://youtrack.jetbrains.com/issue/PY-65561/Debugger-doesnt-stop-at-breakpoints-when-using-pytest-xdist