Skip to content

Attach to local process not working through server WSL2, and no log files are generated.  #16921

@okz

Description

@okz

Steps to reproduce:

Attach to running python 'local process' running on WSL2, should bring up a 'list of processes'

Not sure if this is a supported use case, or if it's a WSL2/VScode issue. But have tested, attaching to 'local process' on SSH connections to other non-WSL targets, and works well. Specifying the process ID manually, on WSL connections also works. This makes me assume there is an issue on ${command:pickProcess} for WSL2 connections?

On WSL2, running the configuration, there is no process selection menu or log file created.

Would be great if someone can confirm.

Environment data

  • debugpy version: XXX (run import debugpy; print(debugpy.__version__) if uncertain)
  • OS and version: Windows 10, with WSL2 2004
  • Python version 3.8
  • Using VS Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-debuggingbugIssue identified by VS Code Team member as probable bugneeds PRReady to be worked onverifiedVerification succeeded

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions