From 7d6839c747562fa1eb53a38f3633d4bbb1bbc13b Mon Sep 17 00:00:00 2001 From: Eleanor Boyd <26030610+eleanorjboyd@users.noreply.github.com> Date: Wed, 12 Feb 2025 10:19:23 -0800 Subject: [PATCH] fix powershell script for powershell no-config debug (#610) --- 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