Skip to content

Debugging is broken in v2022.9.0 #4185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
6 tasks done
kborowinski opened this issue Sep 28, 2022 · 2 comments · Fixed by #4186
Closed
6 tasks done

Debugging is broken in v2022.9.0 #4185

kborowinski opened this issue Sep 28, 2022 · 2 comments · Fixed by #4186
Assignees
Labels

Comments

@kborowinski
Copy link

kborowinski commented Sep 28, 2022

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

After upgrading extension to latest preview version v2022.9.0 I can't start interactive debugging or attach to existing PowerShell session.

Downgrading extension to v2022.8.5 solves the problem.

launch.json:

{
    "name": "PowerShell: Interactive Session",
    "type": "PowerShell",
    "request": "launch"
},
{
    "name": "PowerShell Attach to Host Process",
    "type": "PowerShell",
    "request": "attach",
    "runspaceId": 1
},
{
    "name": "PowerShell Attach Interactive Session Runspace",
    "type": "PowerShell",
    "request": "attach",
    "processId": "current"
}

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.2.6
PSEdition                      Core
GitCommitId                    7.2.6
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.10032.0, 6.0.0, 6.1.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visual Studio Code Version

1.72.0-insider
835d39cfac9ede6c7c90678c8d6c3d4d0171ed6d
x64

Extension Version

Steps to Reproduce

  1. Upgrade extension to latest preview version v2022.9.0.
  2. Start debugging interactive session or attach to existing PowerShell session

Visuals

Interactive debugging:
image

Attaching to existing session:
image

Logs

20220928T120302.zip

@kborowinski kborowinski added the Issue-Bug A bug to squash. label Sep 28, 2022
@ghost ghost added the Needs: Triage Maintainer attention needed! label Sep 28, 2022
@kborowinski
Copy link
Author

kborowinski commented Sep 28, 2022

Is it related to this PR? I do not set cwd in the launch.json. Setting it to empty "cwd": "" does not help either.

@andyleejordan
Copy link
Member

Good find! I'll ping you on Discord to test something for me.

@andyleejordan andyleejordan added Area-Debugging and removed Needs: Triage Maintainer attention needed! labels Sep 28, 2022
@andyleejordan andyleejordan self-assigned this Sep 28, 2022
@andyleejordan andyleejordan moved this to In Progress in American Pharoah Sep 28, 2022
Repository owner moved this from In Progress to Done in American Pharoah Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants