Skip to content

os.setsid() potentially fails in adapter/__main__.py if attaching to session leader remotely #1081

@fecjanky

Description

@fecjanky

Environment data

  • debugpy version: 1.6.3
  • OS and version: CentOS 8
  • Python version (& distribution if applicable, e.g. Anaconda): python3.9
  • Using VS Code or Visual Studio: vscode

Actual behavior

Debugger client connection times out

Expected behavior

Debugger client can successfully attach to injected debugpy server

Steps to reproduce:

  1. launch a python program with setsid python ....
  2. Attach to it using a remote configuration from vscode, check stderr when attaching to see the actual error message

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions