Deactivate the inspector. Blocks until there are no active connections.
Activate inspector on host and port. Equivalent to node --inspect=[[host:]port], but can be done programatically after node has started. If wait is true, will block until a client has connected to the inspect port and flow control has been passed to the debugger client.
Port to listen on for inspector connections. Optional, defaults to what was specified on the CLI.
Host to listen on for inspector connections. Optional, defaults to what was specified on the CLI.
Block until a client has connected. Optional, defaults to false.
Return the URL of the active inspector, or undefined
if there is none.
Blocks until a client (existing or connected later) has sent
Runtime.runIfWaitingForDebugger
command.
An exception will be thrown if there is no active inspector.
Generated using TypeDoc
The inspector module provides an API for interacting with the V8 inspector.