Skip to content

Attaching to a remote EH process actually debugs the parent server process #1914

Closed

Description

@roblourens
  • Connect to an ssh remote
  • Start this debug config
{
    "name": "Attach by Process ID",
    "processId": "${command:PickProcess}",
    "request": "attach",
    "skipFiles": [
        "<node_internals>/**"
    ],
    "type": "node"
}
  • Pick the pid of the extension host, or one of its children
  • Check process.pid in the debug console to see that you got attached to the server process instead
  • Also, setting
"attachExistingChildren": true,
"autoAttachChildProcesses": true,

doesn't make a difference

Activity

  1. added
    bug
    on Dec 30, 2023
  2. fellotin commented on Dec 31, 2023

    @fellotin
  3. connor4312 commented on Jan 4, 2024

    @connor4312
    Member

    I cannot reproduce this. But note that putting a process in debug mode involves sending a SIGUSR1 signal to the process which causes it to listen on 9229. If something else was already listening on that port for any reason, that will be connected to instead of the desired process. Would that explain what you were seeing? / was the server process already listening on 9229 prior to running that command?

  4. added
    info-needed
    on Jan 4, 2024
  5. connor4312 commented on Jan 30, 2024

    @connor4312
    Member

    Let me know if you have more info / think there's an underlying issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buginfo-needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions