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

PowerShell debugger to break on error #538

Closed
Glober777 opened this issue Mar 14, 2017 · 3 comments
Closed

PowerShell debugger to break on error #538

Glober777 opened this issue Mar 14, 2017 · 3 comments
Labels
Issue-Enhancement A feature request (enhancement).

Comments

@Glober777
Copy link

Hi,

Is it possible to have PowerShell debugger in VSCode to break in case there's an unhandled exception/error record being sent to the console (kind of like ErrorActionPreference set to Inquire for cmdlets, but for regular exceptions as well)? That could really make debugging experience much better. Currently, every time I see an unhandled error on the console, I have to figure out where did it come from, set one or more breakpoints and restart debugging and if VSCode could break automatically, it would save me from the manual effort.

Thanks,
Glober777

@daviwil daviwil added the Issue-Enhancement A feature request (enhancement). label Mar 14, 2017
@daviwil daviwil added this to the Backlog milestone Mar 14, 2017
@daviwil
Copy link
Contributor

daviwil commented Mar 14, 2017

Yep, we definitely want to add this. It will depend on PowerShell gaining the ability to break on exceptions, see this issue for more details:

PowerShell/PowerShell#2830

@TylerLeonhardt TylerLeonhardt modified the milestone: Future May 24, 2018
@JustinGrote
Copy link
Collaborator

This should be marked as a dupe of #298

@SydneyhSmith
Copy link
Collaborator

Thanks @JustinGrote closing as a duplicate of #298

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement A feature request (enhancement).
Projects
None yet
Development

No branches or pull requests

6 participants