question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support to attach to an electron spawned node process using the picker

See original GitHub issue

Currently 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:open
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
weinandcommented, Sep 12, 2017

@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).

0reactions
Tyriarcommented, Aug 27, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found