Skip to content

Debug PowerShell 5.1 Untitled Files Not Working #3391

Closed
@SoulSeekkor

Description

@SoulSeekkor

Issue Description

Porting an issue from here that was determined to be an extension issue specifically. Had previously created this issue but it was closed prematurely.

Unless my memory is incorrect, one of the biggest advantages to VS Code over ISE was that we used to be able to set breakpoints and debug Powershell files that were untitled and not saved yet.

With this version I've noticed that no longer works, I can set a breakpoint on an untitled tab and it does not stop, it simply runs the entire script without stopping.

image

Attached Logs

Follow the instructions in the README about
capturing and sending logs.

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.19042
VSCode 1.56.0
PowerShell Extension Version 2021.2.2

PowerShell Information

Name Value
PSVersion 5.1.19041.906
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.19041.906
BuildVersion 10.0.19041.906
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
material-icon-theme PKief 4.6.0
powershell ms-vscode 2021.2.2
vscode-inline-values-powershell TylerLeonhardt 0.0.5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions