Usage in Deno
import * as mod from "node:inspector/promises";
The node:inspector/promises
module provides an API for interacting with the V8
inspector.
The inspector.Session
is used for dispatching messages to the V8 inspectorback-end and receiving message responses and notifications.
Deactivate the inspector. Blocks until there are no active connections.
This feature is only available with the --experimental-network-inspection
flag enabled.
This feature is only available with the --experimental-network-inspection
flag enabled.
This feature is only available with the --experimental-network-inspection
flag enabled.
This feature is only available with the --experimental-network-inspection
flag enabled.
Activate inspector on host and port. Equivalent to node --inspect=[[host:]port]
, but can be done programmatically after node hasstarted.
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.
JavaScript call frame. Array of call frames form the call stack.
Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
Request / response headers as keys / values of JSON object.
Coverage data for a JavaScript function.
Specifies a number of samples attributed to a certain source position.
Profile node. Holds callsite information, execution statistics and child nodes.
Represents function call argument. Either remote object id objectId
, primitive value
, unserializable primitive value or neither of (for undefined) them should be specified.
Stack entry for runtime errors and assertions.
Detailed information about exception (or error) that was thrown during script compilation or execution.
Object internal property descriptor. This property isn't normally visible in JavaScript code.
Object containing abbreviated remote object value.
Object property descriptor.
Mirror object referencing original JavaScript object.
Call frames for assertions or error messages.
If debuggerId
is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See Runtime.StackTrace
and Debugger.paused
for usages.
Breakpoint identifier.
Call frame identifier.
Heap snapshot object id.
Monotonically increasing time in seconds since an arbitrary point in the past.
Unique request identifier.
Resource type as it was perceived by the rendering engine.
UTC time in seconds, counted from January 1, 1970.
Unique identifier of attached debugging session.
Id of an execution context.
Unique object identifier.
Unique script identifier.
Number of milliseconds since epoch.
Unique identifier of current debugger.
Primitive value which cannot be JSON-stringified.
An object to send messages to the remote inspector console.