You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm opening this here as well as in the Docker Extension GitHub as per their recommendation:
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.
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:
* Executing task: docker-run: debug
> docker container run --detach --tty --name 'wifidrvpotatofarm-dev' --publish '443:8080/tcp' --mount 'type=bind,source=/home/eavron/.vscode-server/extensions/ms-python.python-2022.20.2/pythonFiles/lib/python/debugpy,destination=/debugpy,readonly' --label 'com.microsoft.created-by=visual-studio-code' --entrypoint 'python3' wifidrvpotatofarm:latest <
8041342216b01346e9bd6cf643d429a7f77d8d7f6bee35ff96039a50759ac492 * Terminal will be reused by tasks, press any key to close it.
but it just doesn't seem to be able to connect to the running container (which remains up even after this error):
eavron@eavron-mobl:/mnt/c/Users/eavron/AppData/Local/Programs/Microsoft VS Code$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9d7947e54110 wifidrvpotatofarm:latest "python3" 2 minutes ago Up 2 minutes 0.0.0.0:443->8080/tcp wifidrvpotatofarm-dev
Running the container regularly with its docker-compose works fine.
Adding "debugAdapterHost": "172.17.0.1" or "debugAdapterHost": "localhost"
Rebuilding the image
Clearing Docker cache
Reinstalling Docker
Reinstalling Docker extension
Downgrading Docker extension
Versions:
VSCode: 1.74.3
Docker Desktop: 4.16.2
Python Extension: 2022.20.2
Extension: 1.23.3
Extension version: 2022.20.2
VS Code version: Code 1.74.3 (97dec172d3256f8ca4bfb2143f3f76b503ca0534, 2023-01-09T16:59:02.252Z)
OS version: Windows_NT x64 10.0.25284
Modes:
Sandboxed: No
Remote OS version: Linux x64 5.15.83.1-microsoft-standard-WSL2
The text was updated successfully, but these errors were encountered:
Hi @eladavron, could you check if it works if you set "clientOS": "Windows"(or "clientOS": "Unix" if it's the other way around) in your launch configuration (just to make sure this is actually the issue you're seeing and whether it fixes it for you?) Thanks
Type: Bug
I'm opening this here as well as in the Docker Extension GitHub as per their recommendation:
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:
Extension version: 2022.20.2
VS Code version: Code 1.74.3 (97dec172d3256f8ca4bfb2143f3f76b503ca0534, 2023-01-09T16:59:02.252Z)
OS version: Windows_NT x64 10.0.25284
Modes:
Sandboxed: No
Remote OS version: Linux x64 5.15.83.1-microsoft-standard-WSL2
The text was updated successfully, but these errors were encountered: