Closed eladavron closed 1 year ago
It seems like the Docker extension finished its part and did the handoff to the Python extension (which does the actual debugging). I've seen this error happen on occasion, but never persistently. I'll take a look and see if I can reproduce, but it might be worth opening this in https://github.com/microsoft/vscode-python as well; they know much more about Python's debugging process than I do.
Closing for now as this appears to be an issue in the Python extension. Can re-open if that is not the case.
Similar to #2641 and #2313 but adding
"debugAdapterHost": "172.17.0.1"
or"debugAdapterHost": "localhost"
did not solve it for me.When I try starting a debug session of a dockerized Python Flask app in WSL, in the exact same configuration that used to work flawlessly, starting ~1 week ago it instead shows me this error after a few seconds:
I do see it starting both the container:
and the debugpy session:
but it just doesn't seem to be able to connect to the running container (which remains up even after this error):
Running the container regularly with its docker-compose works fine.
Here are my
launch.json
:and
tasks.json
Things I've tried that didn't help:
"debugAdapterHost": "172.17.0.1"
or `"debugAdapterHost": "localhost"Versions: