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

fix(ext/node): better inspector support #26471

Merged
merged 8 commits into from
Nov 6, 2024
Merged

fix(ext/node): better inspector support #26471

merged 8 commits into from
Nov 6, 2024

Conversation

devsnek
Copy link
Member

@devsnek devsnek commented Oct 22, 2024

implement local inspector

future changes:

  • wire up InspectorServer to enable open/close/url
  • wire up connectToMainThread

Fixes #25004

@devsnek devsnek added the ci-draft Run the CI on draft PRs. label Oct 22, 2024
@lucacasonato
Copy link
Member

What should the permissions be to access inspector?

@bartlomieju
Copy link
Member

What should the permissions be to access inspector?

That's a good question that I was wondering when I first started working on this. Do we need to add permissions at all?

devsnek added a commit to denoland/deno_core that referenced this pull request Oct 23, 2024
changes for denoland/deno#26471

- allows passing a function which is called directly from the inspector
to send messages, rather than going through a channel.
- new modes for inspector sessions to support all the various ways a
session interacts with the event loop
@devsnek devsnek marked this pull request as ready for review October 23, 2024 12:00
@bartlomieju
Copy link
Member

@lucacasonato I spoke with @devsnek offline and we are thinking that we could piggy-back off of --allow-sys=inspector so that we don't have to add another --allow-* flag.

@lucacasonato
Copy link
Member

How confident are we that inspector does not imply --allow-run?

@devsnek
Copy link
Member Author

devsnek commented Nov 4, 2024

@lucacasonato I spoke to someone on the devtools team and they said it was ok.

@devsnek devsnek changed the title feat: new inspector fix: new inspector Nov 6, 2024
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Maybe fix(ext/node): better inspector support?

@devsnek devsnek changed the title fix: new inspector fix(ext/node): better inspector support Nov 6, 2024
@devsnek devsnek enabled auto-merge (squash) November 6, 2024 14:02
@devsnek devsnek merged commit 700f54a into main Nov 6, 2024
17 checks passed
@devsnek devsnek deleted the new-inspector branch November 6, 2024 14:08
littledivy pushed a commit that referenced this pull request Nov 10, 2024
implement local inspector

future changes:
- wire up InspectorServer to enable open/close/url
- wire up connectToMainThread

Fixes #25004
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-draft Run the CI on draft PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: vitest run --coverage throws Not implemented: inspector.Session.prototype.connect
3 participants