Skip to content

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

Closed
@roblourens

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

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions