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
Initial support for devtools inspector protocol #17
Conversation
One issue this currently has is an error stack that is printed to the terminal when an attached debugger disconnects:
|
Another issue is that memory profiling does not work. The devtools client will say that it's recording the snapshot but it never completes. |
FWIW apparently this is some sort of premium feature but will become available when the repo is public. |
29079f6
to
f3f68cd
Compare
Ok, so I updated the implementation so that it is not added to the list of named/registered services but it still implements from I've also made it so that disconnects are handled cleanly and added some logging when |
Updated |
02bba53
to
b1ad15a
Compare
But you aren't actually using You should be able to use |
0af087c
to
10b7d23
Compare
Yes, I know, but the mechanism was there and very simple to extend from. Easiest thing that just worked. I've reworked it as you've suggested. |
645b406
to
c99159e
Compare
382c1ae
to
40c088e
Compare
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
40c088e
to
f2fcd03
Compare
Bad CLA-bot! Bad! No I will not sign the CLA. (for those reading...I don't have to since I'm Cloudflare already...) |
d2b54b8
to
29dcab3
Compare
@jasnell Its gonna be easier if you just write the comment it wants you to write. You could also edit yourself into the allow list but that seems like more work. |
a2de5de
to
bcb2434
Compare
I have read the CLA Document and I hereby sign the CLA |
(silly CLA bot... you annoy me already) |
2152b80
to
3e6363f
Compare
Initial support for devtools inspector protocol for workerd. Adds an additional option to `workerd serve` to enable a local inspector port: ```bash $ ./workerd serve -i 127.0.0.1:9229 config.capnp ``` When enabled, the inspector protocol wil be available on the given address and will be discoverable in devtools. Very rudimentary for now.
3e6363f
to
f982470
Compare
A work-in-progress prototype enabling devtools inspector protocol support for workerd.
Adds an additional option to
workerd serve
to enable a local inspector port:(The inspector socket can also be passed as an fd instead)
When enabled, the inspector protocol wil be available on the given address and will be discoverable in devtools.
Each worker in a configuration will be listed separately in the devtools discovery view. The name of the worker itself will be displayed in the discovered list to make it possible to distinguish.
Very rudimentary for now.
This PR also adds support for using devtools to capture heap snapshots.