From a3d8a1f4ffbf059371a58db4d18eadf4ea06a25b Mon Sep 17 00:00:00 2001 From: TEJA P C <39472754+PCTEJA@users.noreply.github.com> Date: Fri, 13 Nov 2026 23:00:08 -0500 Subject: [PATCH 1/2] Fix debugpy.ps1 argument forwarding with splatting The PowerShell no-config wrapper forwarded $args without splatting, so an array of arguments passed by a caller reached the Python process concatenated as a single string (e.g. 'arg1 arg2' instead of two separate argv entries). Use @args in both the Windows (python) and non-Windows (python3) invocations so array arguments expand into separate arguments, matching how the caller could pass them to python directly. Fixes #1024 --- bundled/scripts/noConfigScripts/debugpy.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 bundled/scripts/noConfigScripts/debugpy.ps1 diff --git a/bundled/scripts/noConfigScripts/debugpy.ps1 b/bundled/scripts/noConfigScripts/debugpy.ps1 old mode 100755 new mode 100644 index 4b2ff85a..032024a1 --- a/bundled/scripts/noConfigScripts/debugpy.ps1 +++ b/bundled/scripts/noConfigScripts/debugpy.ps1 @@ -2,7 +2,7 @@ $env:DEBUGPY_ADAPTER_ENDPOINTS = $env:VSCODE_DEBUGPY_ADAPTER_ENDPOINTS $os = [System.Environment]::OSVersion.Platform if ($os -eq [System.PlatformID]::Win32NT) { - python $env:BUNDLED_DEBUGPY_PATH --listen 0 --wait-for-client $args + python $env:BUNDLED_DEBUGPY_PATH --listen 0 --wait-for-client @args } else { - python3 $env:BUNDLED_DEBUGPY_PATH --listen 0 --wait-for-client $args + python3 $env:BUNDLED_DEBUGPY_PATH --listen 0 --wait-for-client @args } \ No newline at end of file From ff04d417a7b4a26816fa34c809becdc4028ce6e6 Mon Sep 17 00:00:00 2001 From: PCTEJA Date: Mon, 16 Nov 2026 09:32:47 +0000 Subject: [PATCH 2/2] Restore executable bit on PowerShell no-config wrapper --- bundled/scripts/noConfigScripts/debugpy.ps1 | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 bundled/scripts/noConfigScripts/debugpy.ps1 diff --git a/bundled/scripts/noConfigScripts/debugpy.ps1 b/bundled/scripts/noConfigScripts/debugpy.ps1 old mode 100644 new mode 100755