-
Notifications
You must be signed in to change notification settings - Fork 30k
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
webSocketDebuggerUrl returned by v8_inspector in /json is invalid #7227
Comments
@nodejs/diagnostics |
Yes, it is a bug in inspector_agent.cc. Would you be able to send a PR? |
@pavelfeldman would this be against the v8 repo? @auchenberg if you do not have time to do this I'd be more than happy to, just let me know |
It'd be nice if we could extract hash into a const and reuse it as well. I can see that entire block is wrong. Should be using same hash as https://github.com/nodejs/node/blob/master/src/inspector_agent.cc#L37 |
@pavelfeldman I'm digging into this right now. It seems like it isn't going to be straight forward afaict as The call stack
edit: it is worth mentioning that the instance of |
Look at how
|
@pavelfeldman thanks! figured it out and pushed a PR |
Fix the `webSocketDebuggerUrl` and `devtoolsFrontendUrl` returned by v8_inspector in /json HTTP endpoint to work with 3rd party clients. Fixes: nodejs#7227 PR-URL: nodejs#7232 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Not sure if someone's already fixed this. In the latest nightly this is the url I get. webSocketDebuggerUrl: "ws://localhost:9999/node" |
The
webSocketDebuggerUrl
returned by v8_inspector in/json
HTTP endpoint is invalid, and causes 3rd party clients like VS Code and Sublime to fail connecting to the new CDP endpoint.In addition then
devtoolsFrontendUrl
is served without the?ws=
querystring, which is returned by Chrome and Edge.Actual response from
http://localhost:5858/json
:Expected response:
(CC @ofrobots, @pavelfeldman)
The text was updated successfully, but these errors were encountered: