-
Notifications
You must be signed in to change notification settings - Fork 498
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
Cannot attach debugger to PS 7.4.0 processes #4843
Comments
Bump... |
Thanks for the issue @nightroman we will need to do some more investigation into this |
Are you perhaps using the Windows Store installed version of PowerShell? I can never seem to attach to that installation, but can attach to 7.4 installed in pretty any other manner. |
I use the |
Here is the latest status, changed with new versions, still not working but differently
|
Thanks for the update, that's very helpful and has led me to find a bug (or two). |
So I think VS Code got stricter about type matching in variable substitutions, and these were mismatched. The original design allowed the PID to be an int or a string (which was just a special case for "current") but that led to a lot of unnecessary complication. |
When can we try the fix? |
@nightroman every commit has a build, here is the one for the PR: Extract the VSIX and use "install with VSIX" in vscode and then reload your vscode. |
Can confirm I reproduced on the VSIX after choosing host process 80488. @andyleejordan surprised type checking didn't catch this but I think this needs to be
|
I definitely changed that so either I lost it in a rebase or that's the wrong build. |
Yup, it is fixed in the PR: https://github.com/PowerShell/vscode-powershell/pull/4888/files#r1462216399 which build did you guys grab? |
I thought I grabbed the PR build so I probably screwed up, let me double check |
Well you did grab the right artifact...but when I build locally I go from being able to repro to not. |
Now with the changes made, the input to |
Removing the line with NB I believe this attached debugger flow was not well documented. But it's formally a breaking change. Please mention this in release notes. For your consideration. |
@nightroman the goal is to not break existing configs, we are working on it in the linked PR and will note back here if we find it. |
Prerequisites
Summary
Cannot attach debugger to an interactively selected PS 7.4.0 processes.
This operation takes long time, then results in this error
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
Launch profile:
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: