microsoft / vscode-docker

Docker Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker
Other
1.18k stars 508 forks source link

After attach to a running container can't use F5 to debug python script #4266

Closed bigtree2020 closed 3 months ago

bigtree2020 commented 3 months ago

I have a docker container running on a remote Linux machine. I can attach it to the running docker and run my script from the command line. But when I use F5 to debug, it complains that no module name 'torch', which actually is included in the running docker. image

Did I miss something?

bigtree2020 commented 3 months ago

It turns out I need to choose a different python interpreter.