Hi,
When I try to debug a Python file using the Conda environment detected by the VS Code Python extension, it seems to use an incorrect configuration. The console shows the following automatically generated command and results in a Permission denied error:
/usr/bin/env /home/jovyan/.conda/envs/py310 /home/jovyan/.vscode-server/extensions/ms-python.debugpy-2025.10.0-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher 40869 -- /home/jovyan/test.py
/usr/bin/env: ‘/home/jovyan/.conda/envs/py310’: Permission denied
It appears that the extension tries to run the environment path itself as a command, which fails because it is a directory, not an executable.
The correct behavior should be to execute the Python binary like this:
/usr/bin/env /home/jovyan/.conda/envs/py310/bin/python ...
Could you please help me fix or work around this issue?
Thanks!
Hi,
When I try to debug a Python file using the Conda environment detected by the VS Code Python extension, it seems to use an incorrect configuration. The console shows the following automatically generated command and results in a Permission denied error:
It appears that the extension tries to run the environment path itself as a command, which fails because it is a directory, not an executable.
The correct behavior should be to execute the Python binary like this:
Could you please help me fix or work around this issue?
Thanks!