Skip to content

Can't debug when using PowerShell 7.4 #4668

Closed
PowerShell/PowerShell
#20046
@PrzemyslawKlys

Description

@PrzemyslawKlys

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all open and closed 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.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

It seems that VSCode doesn't stop on breakpoints when debugging in PS 7.4

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.4.0-preview.4
PSEdition                      Core
GitCommitId                    7.4.0-preview.4
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0.}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visual Studio Code Version

1.80.1
x64

Extension Version

ms-vscode.powershell@2023.6.0

Steps to Reproduce

  1. Create empty file
  2. Add some code

Write-Host "Test 1"

Write-Host "Test 2"
  1. Set breakpoint

  2. Press F5

  3. Notice it doesn't stop

Visuals

Debugging not working

Logs

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions