{
"name": "Repro: debugpy launch",
"type": "debugpy",
"request": "launch",
"module": "samplepkg.tasks.repro.main",
"console": "integratedTerminal",
"logToFile": true,
"python": "${workspaceFolder}/.venv/Scripts/python.exe",
"cwd": "${workspaceFolder}",
"args": [
"--root", "<DATASET_ROOT>",
"--out", "<DATASET_ROOT>/master.json",
"--csv-delimiter", ",",
"--csv-quotechar", "\"",
"--csv-doublequote",
"--encoding", "utf-8-sig"
],
"env": {
"PYTHONPATH": "${workspaceFolder}/src"
}
}
Debug does not start. Log shows spawn ENOENT, where the python path appears additionally quoted in syscall and path.
Debug session should launch normally with the selected workspace interpreter.
0 Starting Session:
{
"name": "Repro: debugpy launch",
"type": "debugpy",
"request": "launch",
"module": "samplepkg.tasks.repro.main",
"console": "integratedTerminal",
"logToFile": true,
"args": [
"--root",
"<DATASET_ROOT>",
"--out",
"<DATASET_ROOT>/master.json",
"--csv-delimiter",
",",
"--csv-quotechar",
"\\\"",
"--csv-doublequote",
"--encoding",
"utf-8-sig"
],
"env": {
"PYTHONPATH": "C:\\Users\\<USER>\\<WORKSPACE>\\src",
"PYTHONIOENCODING": "UTF-8",
"PYTHONUNBUFFERED": "1"
},
"__configurationTarget": 6,
"python": "c:\\Users\\<USER>\\<WORKSPACE>\\.venv\\Scripts\\python.exe",
"debugAdapterPython": "c:\\Users\\<USER>\\<WORKSPACE>\\.venv\\Scripts\\python.exe",
"debugLauncherPython": "c:\\Users\\<USER>\\<WORKSPACE>\\.venv\\Scripts\\python.exe",
"clientOS": "windows",
"cwd": "c:\\Users\\<USER>\\<WORKSPACE>",
"envFile": "c:\\Users\\<USER>\\<WORKSPACE>\\.env",
"stopOnEntry": false,
"showReturnValue": true,
"internalConsoleOptions": "neverOpen",
"terminalQuoteCharacter": "'",
"debugOptions": [
"ShowReturnValue",
"FixFilePathCase"
],
"justMyCode": true,
"workspaceFolder": "c:\\Users\\<USER>\\<WORKSPACE>"
}
8 Error:
{
"errno": -4058,
"code": "ENOENT",
"syscall": "spawn \"c:\\Users\\<USER>\\<WORKSPACE>\\.venv\\Scripts\\python.exe\"",
"path": "\"c:\\Users\\<USER>\\<WORKSPACE>\\.venv\\Scripts\\python.exe\"",
"spawnargs": [
"c:\\Users\\<USER>\\.vscode\\extensions\\ms-python.debugpy-2026.4.0-win32-x64\\bundled\\libs\\debugpy\\adapter",
"--log-dir",
"c:\\Users\\<USER>\\.vscode\\extensions\\ms-python.debugpy-2026.4.0-win32-x64"
]
}
14 Client --> Adapter:
{
"command": "initialize",
"arguments": {
"clientID": "vscode",
"clientName": "Visual Studio Code",
"adapterID": "debugpy",
"pathFormat": "path",
"linesStartAt1": true,
"columnsStartAt1": true,
"supportsVariableType": true,
"supportsVariablePaging": true,
"supportsRunInTerminalRequest": true,
"locale": "en",
"supportsProgressReporting": true,
"supportsInvalidatedEvent": true,
"supportsMemoryReferences": true,
"supportsArgsCanBeInterpretedByShell": true,
"supportsMemoryEvent": true,
"supportsStartDebuggingRequest": true,
"supportsANSIStyling": true
},
"type": "request",
"seq": 1
}
15 Client --> Adapter:
{
"command": "disconnect",
"arguments": {
"restart": false
},
"type": "request",
"seq": 2
}
17 Error:
{}
725 Stopping Session
Description
Regression on Windows after updating Python Debugger to 2026.4.0.
Debug sessions with
type: "debugpy"fail immediately withspawn ENOENT, even though the interpreter exists and is selected.Downgrading to ms-python.debugpy@2025.18.0 fixes the issue immediately.
This started between April 29, 2026 and April 30, 2026.
Environment data
.venv\Scripts\python.exe(Python 3.14.2)launch.jsonconfiguration (anonymized){ "name": "Repro: debugpy launch", "type": "debugpy", "request": "launch", "module": "samplepkg.tasks.repro.main", "console": "integratedTerminal", "logToFile": true, "python": "${workspaceFolder}/.venv/Scripts/python.exe", "cwd": "${workspaceFolder}", "args": [ "--root", "<DATASET_ROOT>", "--out", "<DATASET_ROOT>/master.json", "--csv-delimiter", ",", "--csv-quotechar", "\"", "--csv-doublequote", "--encoding", "utf-8-sig" ], "env": { "PYTHONPATH": "${workspaceFolder}/src" } }Actual behavior
Debug does not start. Log shows
spawn ENOENT, where the python path appears additionally quoted insyscallandpath.Expected behavior
Debug session should launch normally with the selected workspace interpreter.
Steps to reproduce
.venvinterpreter.debugpylaunch config (request: launch,type: debugpy).ms-python.debugpyto2025.18.0.Sanitized log excerpt
Additional notes
Potentially related to path-quoting behavior in
ms-python.debugpy@2026.4.0release notes.Related issues: