Usage in Deno
import * as mod from "node:inspector";
The node:inspector
module provides an API for interacting with the V8
inspector.
It can be accessed using:
import * as inspector from 'node:inspector/promises';
or
import * as inspector from 'node:inspector';
The inspector.Session
is used for dispatching messages to the V8 inspector
back-end and receiving message responses and notifications.
Deactivate the inspector. Blocks until there are no active connections.
Activate inspector on host and port. Equivalent tonode --inspect=[[host:]port]
, but can be done programmatically after node has
started.
Return the URL of the active inspector, or undefined
if there is none.
Blocks until a client (existing or connected later) has sentRuntime.runIfWaitingForDebugger
command.
Console message.
JavaScript call frame. Array of call frames form the call stack.
Location in the source code.
Scope description.
Location in the source code.
Search match for resource.
Profile.
Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
Coverage data for a source range.
Coverage data for a JavaScript function.
Specifies a number of samples attributed to a certain source position.
Profile.
Profile node. Holds callsite information, execution statistics and child nodes.
Coverage data for a JavaScript script.
Type profile data collected during runtime for a JavaScript script.
Describes a type collected during runtime.
Source offset and types for a parameter or return value.
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.
Description of an isolated world.
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.
Description of the protocol domain.
Breakpoint identifier.
Call frame identifier.
Heap snapshot object id.
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.