-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't debug when using PowerShell 7.4 #4668
Comments
Confirmed here with PowerShell 7.4.0-preview.4 on Windows 10, with v2023.6.0 of the extension. |
Thanks, am looking at this with high priority. |
Yup, reproduces locally. Going to start testing versions backwards to see when it first breaks. |
Whelp, works in preview.3 and not preview.4 so at least that's pretty narrow! |
"Narrow" as I look at the diff...my current guess is from PowerShell/PowerShell#14953 but I need to figure out exactly what. |
I can only reproduce on Windows, not Ubuntu. What about MacOS? |
Looks like a perfect storm caused by two bugs:
# breakpoint set in vscode
> Get-PSBreakpoint | % Script
c:\Users\Frode\Desktop\Demo\HelperModule.psm1
# reference - notice driveletter
> dir .\HelperModule.psm1 | % fullname
C:\Users\Frode\Desktop\Demo\HelperModule.psm1 |
@fflaten I can at least say that the server is registering with that driver letter being lowercase because it's literally coming across the wire that way (that is, in the |
Uhh actually, more info! I see the same behavior in the logs of the C# extension (also built on top of O#) where the drive letter is being lower-cased for every LSP request with a path. So it's definitely an O# thing. Grr. |
Maybe intentional to align with VSCode API?
|
@fflaten yup, that was exactly it! Ha, just saw this and figured out the same thing from a different investigation. |
Prerequisites
Summary
It seems that VSCode doesn't stop on breakpoints when debugging in PS 7.4
PowerShell Version
Visual Studio Code Version
Extension Version
ms-vscode.powershell@2023.6.0
Steps to Reproduce
Set breakpoint
Press F5
Notice it doesn't stop
Visuals
Logs
No response
The text was updated successfully, but these errors were encountered: