-
Notifications
You must be signed in to change notification settings - Fork 72
Description
Hello,
I recently upgraded my Python version from 3.11.2 to 3.12.9, and since then, the debugger in VSCode isn't working anymore. There's no error message when launching the debugger. The only interesting log I found is Test Result named pipe /tmp/python-test-results-2e74c42d379a5ccd71fd cancelled. It seems that something crashed when launching.
Running test in VSCode without the debug mode works. Using debugpy in cli mode works too. Everything worked correctly with Python 3.11.
I tried to update all related dependencies, including those for pytest, but the issue persists.
To investigate further, I created a new project with Python 3.12.9 and gradually added dependencies (pytest, pytest-asyncio, pytest-django, etc.). The debugger continued to work until I added pytest-django, which seems to be triggering the problem. This suggests there may be a compatibility issue with that library.
That’s why I’m opening this issue here. I’ll also report it on the pytest-django repository in case it's relevant there as well.
My config:
Python 3.12.9
Django 5.1.4
pytest 7.4.4
pytest-asyncio 0.23.3
pytest-cov 4.1.0
pytest-django 4.8.0
pytest-subtests 0.14.1
pytest-xdist 3.6.1