-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do you set the debugpy launcher to use python3? #2123
Comments
@dwbelliston What Python base image are you using? I'm surprised there are any where |
Here is the dockerfile and launch.json. The base image from docker file is here: https://hub.docker.com/r/google/cloud-sdk/dockerfile Dockerfile:
launch.json
|
Thanks! It looks like that image indeed uses 2.7 as the default. I think we can safely change launcher.py in our extension to use As a workaround before we can get that fixed, you can make the same change to Windows: Change Alternatively, you could make a copy of that file and use the |
We have released Docker 1.4.0 which contains a fix for this. |
https://github.com/microsoft/vscode-docker/blob/master/resources/python/launcher.py
This file has a section of args that are passed to docker exec.
My debug fails, because the container receives
python
as python2.7, but my program needs python3, which is available in the container. If i change this launcher.py file to python3 it works. Can i pass this somehow to the launcher?The text was updated successfully, but these errors were encountered: