-
Notifications
You must be signed in to change notification settings - Fork 7.7k
[Regression] Difference in behavior when using Debug-Runspace from Windows PowerShell and PowerShell 7 #13567
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
Comments
So this is why all the 5 guides I found on how to debug runspaces didn't work for me. |
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you. |
2 similar comments
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you. |
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you. |
This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes. |
Steps to reproduce
Open 2 PowerShell windows of the same version
create a file
foo.ps1
that looks like this:In PowerShell one
In PowerShell two
In PowerShell one
Hurry up and run In PowerShell two:
Expected behavior
This happens in Windows PowerShell
Actual behavior
This happens in PowerShell 7. Note it does not break into a debug prompt.
Thoughts
Frankly I'm suspicious of my own PR way back when #11312 that changed this behavior. This parameter
-BreakAll
mentioned here:#13527
should probably be
-NoBreakAll
or have some way to have it on by default and allow you to opt out. This will allow for backcompat for Windows PowerShell and the ability to toggle BreakAll.Environment data
Although this bug existed in 7.0...
The text was updated successfully, but these errors were encountered: