Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Node Subprocess Attach Port SelectorNew to Visual Studio Code? Get it now.
Node Subprocess Attach Port Selector

Node Subprocess Attach Port Selector

freshx

|
3,535 installs
| (0) | Free
Select a node process port before attach.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Node Subprocess Attach Port Selector

Select a node process before debug.

'launch.json' definition example:

{
    "type": "node",
    "request": "attach",
    "name": "Attach to subprocess",
    "port": "${command:freshx.node-subprocess-attach-port-selector}",
    "debug_ports": "${workspaceFolder}/debug_ports.json"
}

Needs a debug_ports file with scheme:

{
  "name": port,
}

Run nodeJs commands from main process with:

node --inspect $port $nodeJsFile
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft