You can add the launch configuration to VSCode in a file called launch.json that joins the process you want:
{ "version": "0.2.0", "configurations": [ { "type": "node", "request": "attach", "name": "Attach to Process", "processId": "${command:PickProcess}" }, {...} ] }
Press ctrl + shift + D to display the debug section in Visual Studio code, select Attach to Process , and then click play . VSCode will automatically show you the available options on your local computer. In addition to process IDs of running processes, node VSCode shows the full path to your node application, so itβs easy to choose the appropriate process to join.
source share