Skip to content

Debugger doesn't connect with venv #784

@smosek

Description

@smosek

Type: Bug

  • Create .venv virtual environment
  • Set python interpreter to .venv/bin/python
  • Run program

The terminal shows the activate command and the launch command, but only the activate command is run:

source /Users/smosek/purecloud/sandbox/kiro-test/.venv/bin/activate
 /usr/bin/env /Users/smosek/purecloud/sandbox/kiro-test/.venv/bin/python /Users/smosek/.kiro/extensions/ms-python.debugpy-2025.6.0-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher 61147 -- /Users/smosek/purecloud/sandbox/kiro-test/test.py 
kiro-test (dev|use1|admin) % source /Users/smosek/purecloud/sandbox/kiro-test/.venv/bin/activate
(.venv) kiro-test (dev|use1|admin) % 

After a while I get a message saying: "Timed out waiting for launcher to connect".

Extension version: 2025.10.0
VS Code version: Code 1.103.1 (Universal) (360a4e4fd251bfce169a4ddf857c7d25d1ad40da, 2025-08-12T16:25:40.542Z)
OS version: Darwin arm64 24.6.0
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.13.5
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Unknown
System Info
Item Value
CPUs Apple M4 Pro (14 x 2400)
GPU Status 2d_canvas: enabled
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: enabled_on
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 4, 7, 6
Memory (System) 48.00GB (0.07GB free)
Process Argv --crash-reporter-id 8e3698ac-df8a-4a8e-8e4c-25ffcc015b57
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
747dc170:31275177
6518g693:31334701
aj953862:31281341
9d2cg352:31346308
convertlamdaf:31368658
nesew2to5:31336538
agentclaude:31350858
nes-set-on:31351930
63221493:31336333
0927b901:31350571
f76d9909:31348711
editstats-enabled:31346257
45650338:31358607
0cj2b977:31352657
0574c672:31362109
asdad:31365766
newchatstate:31363049
pylancealldocsf:31367565
cloudbuttont:31368504
retryenabled:31370050

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage-neededNeeds assignment to the proper sub-team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions