Closed
Description
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
Activity
daviwil commentedon 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
JustinGrote commentedon Jul 21, 2019
This should be marked as a dupe of #298
SydneyhSmith commentedon Jul 23, 2019
Thanks @JustinGrote closing as a duplicate of #298