Inspector

Node.js inspector module — V8 inspector protocol bindings.

Module: node:inspector Support: Experimental Since: 1.1.0 Docs: Node.js Docs See also: https://nodejs.org/api/inspector.html

Static Methods

🟢 open(port, host, wait)
Activate the inspector. Equivalent to `node --inspect`.
🟢 close()
Deactivate the inspector. Blocks until there are no active connections.
🟢 url()
Return the URL of the active inspector, or undefined if there is none.
🟢 waitForDebugger()
Blocks until a client (existing or connected later) has sent

Properties

🟢 console
An object to send messages to the remote inspector console.