Skip to content

Change in behaviour of -Debug common parameter #10873

@jhoneill

Description

@jhoneill

In PowerShell up to 5.1 -Debug set the debug preference to Inquire which allowed the code being run to drop into a nested prompt.
In 6 and 7 it sets it to continue which makes write-debug similar to write-verbose . Inquire has to be set via$debugActionPreference

Further: "Inquire" offers a suspend option (drop to nested prompt) which can't be set via $debugActionPreference and $debugActionPreference offers break (drop to debugger) which can't be selected via the inquire prompt

Are these by design ? If so what's the logic of -debug printing messages but not providing access to debugging ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-AnsweredThe question is answered.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions