Support to attach to an electron spawned node process using the picker
See original GitHub issueCurrently you cannot attach to an electron spawned node process like the TypeScript server using the picker, that is using a launch config like:
{
"type": "node",
"request": "attach",
"name": "Attach to process",
"processId": "${command:PickProcess}",
"port": 5859,
"protocol": "legacy"
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
NODEJS [electron io.js] send input to spawned process child ...
I have had issues trying to use child.stdin.write(); because my PowerShell process just hangs. It will not respond to my input.
Read more >Debug Node.js Apps using Visual Studio Code
Attach by Process ID: Open the process picker to select a node or gulp process for debugging. With this launch configuration, you can...
Read more >electron-re - npm
Show all alive processes in your Electron application: main process, renderer process, the service process (imported by electron-re), and the ...
Read more >The Ultimate Guide to Electron with React | by Aditya Patnaik
The main process is the backbone of an Electron App. It can spawn multiple child processes(also called the renderer process). How?
Read more >Quick Start | Electron
The entry point of any Electron application is its main script. This script controls the main process, which runs in a full Node.js...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@auchenberg previous versions of Electron did not support the SIGUSR1 approach of bringing node into debug mode (even if it was not launched with a
--debug
or--inspect
flag).I own the process explorer now but I think this aligns more with one of the debug area owners, I’d be more than willing to review a PR though.
Here is the process explorer context menu code: https://github.com/microsoft/vscode/blob/a3cb14be7f2cceadb17adf843675b1a59537dbbd/src/vs/code/electron-sandbox/processExplorer/processExplorerMain.ts#L426-L426