node:inspector
#Import
import inspector from "nstdlib/node/inspector";Note
The API is available, but not everything works. No inspector protocol, so open(), Session and the protocol calls throw. isEnabled() is false and url() is undefined, which is what Node answers on any run without --inspect.
#Support
- nstd: 0/8 of Node's own eligible tests pass under nstd.
- Browser: Loads with a minimal
processobject. 9 of Node's 9 exports are available. No behavior check covers it yet.
#Exports (9)
Every name Node.js exports from this module, and what you get when you read it, as a named import or as a property of the default import:
- ✅ A value, both ways. An export that throws an error naming the missing feature also counts.
- ⚠️ A value one way,
undefinedthe other. - ❔
undefinedboth ways. - ❌ Not exported at all.
- – Not measured.
| Export | Node.js | Browser |
|---|---|---|
DOMStorage | ✅ | ✅ |
Network | ✅ | ✅ |
NetworkResources | ✅ | ✅ |
Session | ✅ | ✅ |
close | ✅ | ✅ |
console | ✅ | ✅ |
open | ✅ | ✅ |
url | ✅ | ✅ |
waitForDebugger | ✅ | ✅ |
#Diagnostics
nstdlib running inside Node.js. This isn't an environment it's meant for, so it isn't shown above, but it tells a library problem from an environment one:
coverage: 9/9 of the host's export names answer inside host node. API only. No inspector protocol, soopen(),Sessionand the protocol calls throw.isEnabled()isfalseandurl()isundefined, which is what Node answers on any run without--inspect.smoke: Imports in a clean child process.node-suite: 17/68 of Node's own eligible tests pass with ./dist inside host node. A failure there and in the page is the library's, one only in the page is the engine's.