rustyscript icon indicating copy to clipboard operation
rustyscript copied to clipboard

Attaching inspectors?

Open yuhr opened this issue 9 months ago • 4 comments

Is your feature request related to a problem? Please describe.

I was planning to use this crate as it looked promising, but it seems to be lacking support for attaching inspector sessions to a worker instance, which I definitely need for my use case, e.g. to get notified of CDP RPCs and to post messages to the session.

Describe the solution you'd like

Open some API surface for communicating with workers by inspector sessions.


If this feature is on the rustyscript's goal, I'd like to give it a try and file a PR.

yuhr avatar Mar 20 '25 08:03 yuhr

It is definitely on our roadmap and I'd be thrilled for a pr on it!

rscarson avatar Mar 20 '25 13:03 rscarson

If support for this were added would it work for all runtimes or would it be only specifically workers as originally mentioned? I've been investigating the feasibility of a cross platform rust project supporting scripting with typescript and I think based on the amount of typescript I'm picturing I'd probably need debugger capabilities, which presumably this would allow?

ChiriVulpes avatar Nov 12 '25 08:11 ChiriVulpes

If added it would be for all runtimes

rscarson avatar Nov 12 '25 16:11 rscarson

Sorry, I'm now losing the development resource for this. Please feel free to try to implement this.

yuhr avatar Nov 13 '25 08:11 yuhr