Skip to content

PowerShell debugger to break on error #538

Closed
@Glober777

Description

@Glober777

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

added this to the Backlog milestone on Mar 14, 2017
daviwil

daviwil commented on Mar 14, 2017

@daviwil
Contributor

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

modified the milestone: Future on May 24, 2018
JustinGrote

JustinGrote commented on Jul 21, 2019

@JustinGrote
Collaborator

This should be marked as a dupe of #298

SydneyhSmith

SydneyhSmith commented on Jul 23, 2019

@SydneyhSmith
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      PowerShell debugger to break on error · Issue #538 · PowerShell/vscode-powershell