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

inspector: added --inspect-publish-uid-ipc-path argument #28235

Closed
wants to merge 1 commit into from

Conversation

alexkozy
Copy link
Member

The argument takes the IPC path as an argument when it is passed,
the inspector web socket server will send its full web socket url
to IPC server with the given path at the start.

This flag is required to solve inspector web socket url discovery
the problem for child processes.

Only one discovery option is available right now; it is searching
for ws:// URLs in stderr of node process. This approach does not
work when the parent process ignores the stderr of the child process,
e.g. update-notifier uses this technique.

Discussion about using files instead can be found here:
nodejs/diagnostics#298

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

The argument takes the IPC path as an argument when it is passed,
the inspector web socket server will send its full web socket url
to IPC server with the given path at the start.

This flag is required to solve inspector web socket url discovery
the problem for child processes.

Only one discovery option is available right now; it is searching
for ws:// URLs in stderr of node process. This approach does not
work when the parent process ignores the stderr of the child process,
e.g. update-notifier uses this technique.

Discussion about using files instead can be found here:
nodejs/diagnostics#298
@alexkozy alexkozy requested a review from eugeneo June 14, 2019 22:32
@nodejs-github-bot
Copy link
Collaborator

Sadly, an error occurred when I tried to trigger a build. :(

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. inspector Issues and PRs related to the V8 inspector protocol labels Jun 14, 2019
@BridgeAR
Copy link
Member

BridgeAR commented Jul 5, 2019

@nodejs/inspector PTAL. @ak239 seems like this needs a rebase.

@alexkozy
Copy link
Member Author

alexkozy commented Aug 7, 2019

I think that I managed to solve this problem in user land.

@alexkozy alexkozy closed this Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. inspector Issues and PRs related to the V8 inspector protocol
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants