Skip to content

Conversation

@bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Jan 20, 2026

This commit adds proper support for node:inspector APIs:

  • inspector.open()
  • inspector.close()

Also process.features.inspector value was changed to true.

As a result a bunch of Node compat tests related to inspector started failing -
turns out that these tests never really worked - they passed because they
exited early because of lack of inspector support (due to process.features.inspector
value). These tests were disabled for now.

.borrow_mut::<PermissionsContainer>()
.check_net(&(host_ip.to_string(), Some(port)), "inspector.open")?;

let server = create_inspector_server(addr, "deno")?;
Copy link
Member Author

Choose a reason for hiding this comment

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

The name here doesn't really match the name when --inspect flag or what Node.js displays. This is tested by parallel/test-inspector-contexts.js Node compat test.

@bartlomieju bartlomieju enabled auto-merge (squash) January 22, 2026 10:31
@bartlomieju bartlomieju merged commit 2a91db0 into denoland:main Jan 22, 2026
19 checks passed
@bartlomieju bartlomieju deleted the node_inspector_open branch January 22, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants