Skip to content

Debugger do not work if path to environment and python.exe contains spaces #1016

@cehernandezecon

Description

@cehernandezecon

Type: Bug

Behaviour

Debugger do not work if path to environment and python.exe contains spaces. Tries to initialize and stops after half a second.

Steps to reproduce:

Set up a python environment in a path that contains spaces. Set that environment as the python environment in visual studio code. Try to debug. It does not work. Normal play button to run scripts works. Problem only occurs when the script is ran with the debugger

Extension version: 2026.4.0
VS Code version: Code 1.117.0 (10c8e557c8b9f9ed0a87f61f1c9a44bde731c409, 2026-04-21T16:12:14-07:00)
OS version: Windows_NT x64 10.0.26200
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.14.0.final.0
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): ms-python.python:venv
    Details
System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i7-1355U (12 x 2611)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0xa7a1 [Intel(R) Iris(R) Xe Graphics], DRIVER_VENDOR=Intel, DRIVER_VERSION=31.0.101.4032 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8246
Machine model name:
Machine model version:
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
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.70GB (18.10GB free)
Process Argv . --crash-reporter-id 625c264b-e296-4660-880e-3e78adae77d6
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
6abeh943:31336334
envsactivate1:31464700
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ec5jj548:31422691
cp_cls_t_966_ss:31454198
inlinechat_v2_hd992725:31505030
4je02754:31466945
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31490510
38bie571_auto:31478678
cp_cls_c_1081:31454833
conptydll_true:31498968
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_treatment2:31471001
c9b86496:31447327
rl_b_098a3278:31497326
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
89g7j272:31504412
7e187181:31503455
cpptoolsoff-v2:31475362
i2gc6536:31499202
ghj88844:31499326
ec1eg703:31491645
client_tst_t:31495907
ddid_c:31478207
1b2f8594:31502054
getcmakediagnosticson:31489824
pro_large_t:31499376
cp_cls_c_1082:31504161
55165474_sum_c:31505222
nes-cj-aftline:31500937
logging_enabled_new:31498466
j0d79568:31499440
nes-dist-check-on:31503267
748c7209:31497895

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