-
Notifications
You must be signed in to change notification settings - Fork 78
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
Subset of CDP as profile for Node.js tools and VMs #52
Comments
thanks for putting this together @joshgav I'll go through the reading list today / tomorrow |
nodejs/node#7470 suggests linking/forwarding to a public URL but I'd be okay with embedding protocol.json in the binary. Then the user doesn't need an active network connection. v8_inspector/js_protocol.json when minified and compressed is about 8.5 kB, which seems acceptable to me. |
+1 to embedding. Internet isn't always reliable... |
I favor expending the HTTP endpoint to add For now we don't have a formel spec for the HTTP endpoint exposed by various runtimes, but we can easily sketch one together as the amount of HTTP methods are fairly limited. |
Embed the compressed and minified protocol.json from the bundled v8_inspector and make it available through the /json/protocol endpoint. Refs: nodejs/diagnostics#52 PR-URL: nodejs#7491 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Embed the compressed and minified protocol.json from the bundled v8_inspector and make it available through the /json/protocol endpoint. Refs: nodejs/diagnostics#52 PR-URL: nodejs#7491 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Embed the compressed and minified protocol.json from the bundled v8_inspector and make it available through the /json/protocol endpoint. Refs: nodejs/diagnostics#52 PR-URL: #7491 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Embed the compressed and minified protocol.json from the bundled v8_inspector and make it available through the /json/protocol endpoint. Refs: nodejs/diagnostics#52 PR-URL: #7491 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
In our meeting last week - #64 - we decided to close this and go with what's provided within v8_inspector for now. If a more constrained profile is needed later we'll evaluate then. @auchenberg started a chart to track compatibility across platforms, which helps with this too. |
CDP groups functionality into Domains containing Methods, Events, and Types. The domains and members supported by a given runtime/debug target can be specified in a
protocol.json
file, ideally retrievable dynamically by the debugger at a/json/protocol
endpoint on the debugee. Examples and discussion:V8's currently-supported Domains are listed here.
For Node to fully support CDP we must implement and specify which Domains and other members Node supports, likely in a
protocol.json
file, and likely starting from those supported by V8 and the inspector agent. We could call this the Node "profile" for CDP.This was discussed in #49's meeting.
Background and Resources
The text was updated successfully, but these errors were encountered: