- 
                Notifications
    You must be signed in to change notification settings 
- Fork 520
Closed
PowerShell/PowerShellEditorServices
#1630Labels
Area-DebuggingBug: Pre-releaseBugs reproducing only in the pre-release extension.Bugs reproducing only in the pre-release extension.Issue-BugA bug to squash.A bug to squash.
Milestone
Description
Prerequisites
- I have written a descriptive issue title.
- I have searched all issues to ensure it has not already been reported.
- I have read the troubleshooting guide.
- I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
- I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
Summary
Powershell session crashes in preview extension when attempting to debug a script with active breakpoint in unsaved file. Debugging the same code in a saved file works.
Also occurs when debugging Pester tests, but was able to reproduce the same exception in this simpler demo so I believe it might be the same root cause.
PowerShell Version
Name                           Value
----                           -----
PSVersion                      7.1.3
PSEdition                      Core
GitCommitId                    7.1.3
OS                             Microsoft Windows 10.0.22000
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0Visual Studio Code Version
1.62.0-insider
b3318bc0524af3d74034b8bb8a64df0ccf35549a
x64Extension Version
ms-vscode.powershell-preview@2021.11.0Steps to Reproduce
- Open a new unsaved file with content $a = 1
- Place a breakpoint on the line and launch/debug file as normal
Visuals
Logs
No response
chris-peterson
Metadata
Metadata
Assignees
Labels
Area-DebuggingBug: Pre-releaseBugs reproducing only in the pre-release extension.Bugs reproducing only in the pre-release extension.Issue-BugA bug to squash.A bug to squash.

