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
Running a terminal with both ms-python.python and ms-python.debugpy extensions contributing to the terminal environment has conflicts - i.e. cannot run debugpy becuase it's not in the path if it is not the last environment override (therefore there may be some randomness for reproducing depending on the order of these overrides).
Steps to reproduce:
Open a project with a venv
Ensure both the ms-python.python and ms-python.debugpy extensions are present
Ensure python.terminal.shellIntegration.enabled is true
Open / restart the terminal
Start a Python shell. I expect the option to open in Native REPL to be there, but it is not
Type debugpy .It may not be in the path despite the message from the terminal stating you can run it
Diagnostic data
Below is the changes to the terminal environment reported by VS Code. The ms-python.python and ms-python.debugpy overwrite each other. The $PATH variable will depend on the order of the changes, which is not configurable.
Type: Bug
Behaviour
Running a terminal with both ms-python.python and ms-python.debugpy extensions contributing to the terminal environment has conflicts - i.e. cannot run debugpy becuase it's not in the path if it is not the last environment override (therefore there may be some randomness for reproducing depending on the order of these overrides).
Steps to reproduce:
python.terminal.shellIntegration.enabled
is truedebugpy
.It may not be in the path despite the message from the terminal stating you can run itDiagnostic data
Below is the changes to the terminal environment reported by VS Code. The ms-python.python and ms-python.debugpy overwrite each other. The $PATH variable will depend on the order of the changes, which is not configurable.
Terminal Environment Changes
Extension: ms-python.debugpy
Enables use of no-config debugging,
debugpy <script.py>
, in the terminal.PYDEVD_DISABLE_FILE_VALIDATION=1
DEBUGPY_ADAPTER_ENDPOINTS=~/.vscode/extensions/ms-python.debugpy-2025.0.1-linux-x64/.noConfigDebugAdapterEndpoints/endpoint-d65bbbc3e1313e05.txt
PATH=${env:PATH}:~/.vscode/extensions/ms-python.debugpy-2025.0.1-linux-x64/bundled/scripts/noConfigScripts
BUNDLED_DEBUGPY_PATH=~/.vscode/extensions/ms-python.debugpy-2025.0.1-linux-x64/bundled/libs/debugpy
Extension: vscode.git
Enables the following features: git auth provider
GIT_ASKPASS=/usr/share/code/resources/app/extensions/git/dist/askpass.sh
VSCODE_GIT_ASKPASS_NODE=/usr/share/code/code
VSCODE_GIT_ASKPASS_EXTRA_ARGS=
VSCODE_GIT_ASKPASS_MAIN=/usr/share/code/resources/app/extensions/git/dist/askpass-main.js
VSCODE_GIT_IPC_HANDLE=/run/user/1000/vscode-git-9811775006.sock
Extension: ms-python.python
Activated environment for
./.venv/bin/python3.11
VIRTUAL_ENV=~/dev/python/xxx/.venv
VIRTUAL_ENV_PROMPT=project-xxxx
PS1=project-xxx${env:PS1}
PATH=~/.vscode/extensions/ms-python.python-2025.0.0-linux-x64/python_files/deactivate/bash:~/dev/python/xxx/.venv/bin:${env:PATH}
Extension version: 2025.0.0
VS Code version: Code 1.97.2 (e54c774e0add60467559eb0d1e229c6452cf8447, 2025-02-12T23:20:35.343Z)
OS version: Linux x64 6.8.0-54-generic
Modes:
python.languageServer
setting: DefaultUser Settings
Installed Extensions
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off
webnn: unavailable_software
A/B Experiments
The text was updated successfully, but these errors were encountered: