From 0c25520e39b2a6e9a1d0b368bb712f2462b2f0d6 Mon Sep 17 00:00:00 2001 From: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com> Date: Wed, 12 Feb 2025 09:46:39 -0800 Subject: [PATCH] fix powershell script for powershell no-config debug --- bundled/scripts/noConfigScripts/debugpy.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bundled/scripts/noConfigScripts/debugpy.ps1 b/bundled/scripts/noConfigScripts/debugpy.ps1 index 945c5091..bf949d64 100755 --- a/bundled/scripts/noConfigScripts/debugpy.ps1 +++ b/bundled/scripts/noConfigScripts/debugpy.ps1 @@ -1,6 +1,7 @@ # PowerShell script -if ($PSVersionTable.OS -match "Windows") { +$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 -} +} \ No newline at end of file