Skip to content
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

Exit debugger stop early if cause is PSE #1818

Merged
merged 1 commit into from
Jun 8, 2022

Conversation

SeeminglyScience
Copy link
Collaborator

@SeeminglyScience SeeminglyScience commented Jun 7, 2022

If the ErrorActionPreference is set to Break and the user hits the
Stop button in the UI, then we need to exit early on reentrance of
OnDebuggerStop. Currently we deadlock until they hit stop again.

Fixes PowerShell/vscode-powershell#4010

If the `ErrorActionPreference` is set to `Break` and the user hits the
Stop button in the UI, then we need to exit early on reentrance of
OnDebuggerStop. Currently we deadlock until they hit stop again.
@SeeminglyScience SeeminglyScience requested a review from a team June 7, 2022 16:13
@andyleejordan
Copy link
Member

This fixes PowerShell/vscode-powershell#4010 right?

Copy link
Member

@andyleejordan andyleejordan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving, leaving for you to squash and merge so you can double check if it closes that issue. Thanks Patrick!!!

@SeeminglyScience
Copy link
Collaborator Author

Yep! Thanks Andy!

@SeeminglyScience SeeminglyScience merged commit 9ce4762 into PowerShell:master Jun 8, 2022
@SeeminglyScience SeeminglyScience deleted the fix-ea-break branch June 8, 2022 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PSIC> spam when using Stop button with -ErrorAction Break and nested scopes
2 participants