-
Notifications
You must be signed in to change notification settings - Fork 44
debugpy
cli does not work when using virtual envs
#606
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
Comments
I think the $os = [System.Environment]::OSVersion
if ($os.Platform -match "Win32NT") {
python $env:BUNDLED_DEBUGPY_PATH --listen 0 --wait-for-client $args
} else {
python3 $env:BUNDLED_DEBUGPY_PATH --listen 0 --wait-for-client $args
} |
I tried to recreate my venv to fix this and wasn't able to get access to
|
@TheOpponent Do you see a terminal warning on the terminal title? This happens if the terminal did not startup with the correct flags. This PR #601 should address it. |
I did this after relaunching the terminal after installing 1.97.0. |
$os = [System.Environment]::OSVersion.Platform
if ($os -eq [System.PlatformID]::Win32NT) {
python $env:BUNDLED_DEBUGPY_PATH --listen 0 --wait-for-client $args
} else {
python3 $env:BUNDLED_DEBUGPY_PATH --listen 0 --wait-for-client $args
} |
Merged
closed by #610 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Type: Bug
Behaviour
Activate a virutal environment in VS Code terminal. Try debugging using the activated python. It uses the wrong python.
Steps to reproduce:
sys.executable
you get the wrong one.Diagnostic data
launch.json
configurationOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output for
Python Debugger
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython Debugger
)Extension version: 2025.1.2025021101
VS Code version: Code - Insiders 1.98.0-insider (b1bce46d27c96db4ad9e1a7968606118feff9abb, 2025-02-11T12:59:07.299Z)
OS version: Windows_NT x64 10.0.26100
Modes:
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: