Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
egamma opened this issue Apr 28, 2017 · 7 comments
Closed

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

egamma opened this issue Apr 28, 2017 · 7 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code workbench-diagnostics General VS Code built-in diagnostic issues

Comments

@egamma
Copy link
Member

egamma commented Apr 28, 2017

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"

        }
@egamma egamma added debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality labels Apr 28, 2017
@weinand weinand added this to the September 2017 milestone Sep 5, 2017
@auchenberg
Copy link
Contributor

Is this because the new process isn't exposed over the HTTP debug interface? This Node issue could be related: nodejs/node#9435

@weinand
Copy link
Contributor

weinand commented 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).

@weinand
Copy link
Contributor

weinand commented Sep 25, 2017

There is still no support for SIGUSR1 in the node version (v7.9) that is built into our version of Electron.

@weinand
Copy link
Contributor

weinand commented Dec 8, 2017

With the new vscode-processes extension and the option to start all processes in inspect mode, this feature is now in reach.

@weinand weinand modified the milestones: On Deck, January 2018 Dec 8, 2017
@alexdima alexdima modified the milestones: February 2018, December 2017 Dec 12, 2017
@weinand weinand assigned RMacfarlane and unassigned weinand Jan 8, 2018
@weinand
Copy link
Contributor

weinand commented Jan 8, 2018

@RMacfarlane Since you now own the VS Code process viewer (#41045) I took the liberty to assign this feature request to you.

@RMacfarlane RMacfarlane modified the milestones: February 2018, March 2018 Feb 27, 2018
@RMacfarlane RMacfarlane modified the milestones: March 2018, April 2018 Mar 27, 2018
@RMacfarlane RMacfarlane removed this from the April 2018 milestone Apr 26, 2018
@RMacfarlane RMacfarlane added this to the Backlog milestone Oct 25, 2019
@RMacfarlane RMacfarlane assigned Tyriar and unassigned TylerLeonhardt May 12, 2021
@Tyriar Tyriar added the workbench-diagnostics General VS Code built-in diagnostic issues label Jun 4, 2021
@Tyriar
Copy link
Member

Tyriar commented 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:

private showContextMenu(item: ProcessItem, isLocal: boolean) {

@Tyriar Tyriar assigned connor4312 and unassigned Tyriar Aug 27, 2021
@connor4312
Copy link
Member

For a while js-debug has been able to debug ext host child processes by setting attachToChildProcesses: true in the launch config. I think that covers this scenario at least from a user POV. I haven't seen feature requests otherwise for how to debug electron node processes, and as this hasn't had any other community input, I will close as unplanned for the moment.

@connor4312 connor4312 added the *out-of-scope Posted issue is not in scope of VS Code label Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code workbench-diagnostics General VS Code built-in diagnostic issues
Projects
None yet
Development

No branches or pull requests

9 participants