inspector
console is supported. Other APIs are non-functional stubs.
The node:inspector module provides an API for interacting with the V8
inspector.
Usage in Deno
import * as mod from "node:inspector";
Classes
The inspector.Session is used for dispatching messages to the V8 inspector
back-end and receiving message responses and notifications.
Functions
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 has
started.
Blocks until a client (existing or connected later) has sent Runtime.runIfWaitingForDebugger command.
Interfaces
JavaScript call frame. Array of call frames form the call stack.
Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
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.
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.
Namespaces
Type Aliases
Variables
class Session
Usage in Deno
import { Session } from "node:inspector";
The inspector.Session is used for dispatching messages to the V8 inspector
back-end and receiving message responses and notifications.
Constructors #
#Session() Create a new instance of the inspector.Session class.
The inspector session needs to be connected through session.connect() before the messages can be dispatched to the inspector backend.
Methods #
#addListener(event: string,listener: (...args: any[]) => void,): this #addListener(event: "inspectorNotification",listener: (message: InspectorNotification<object>) => void,): this Emitted when any notification from the V8 Inspector is received.
#addListener(event: "Runtime.executionContextCreated",listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void,): this Issued when new execution context is created.
#addListener(event: "Runtime.executionContextDestroyed",listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void,): this Issued when execution context is destroyed.
#addListener(event: "Runtime.executionContextsCleared",listener: () => void,): this Issued when all executionContexts were cleared in browser
#addListener(event: "Runtime.exceptionThrown",listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void,): this Issued when exception was thrown and unhandled.
#addListener(event: "Runtime.exceptionRevoked",listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void,): this Issued when unhandled exception was revoked.
#addListener(event: "Runtime.consoleAPICalled",listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void,): this Issued when console API was called.
#addListener(event: "Runtime.inspectRequested",listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void,): this Issued when object should be inspected (for example, as a result of inspect() command line API call).
#addListener(event: "Debugger.scriptParsed",listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void,): this Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
#addListener(event: "Debugger.scriptFailedToParse",listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void,): this Fired when virtual machine fails to parse the script.
#addListener(event: "Debugger.breakpointResolved",listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void,): this Fired when breakpoint is resolved to an actual script and location.
#addListener(event: "Debugger.paused",listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void,): this Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
#addListener(event: "Debugger.resumed",listener: () => void,): this Fired when the virtual machine resumed execution.
#addListener(event: "Console.messageAdded",listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void,): this Issued when new console message is added.
#addListener(event: "Profiler.consoleProfileStarted",listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void,): this Sent when new profile recording is started using console.profile() call.
#addListener(event: "Profiler.consoleProfileFinished",listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void,): this #addListener(event: "HeapProfiler.addHeapSnapshotChunk",listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void,): this #addListener(event: "HeapProfiler.resetProfiles",listener: () => void,): this #addListener(event: "HeapProfiler.reportHeapSnapshotProgress",listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void,): this #addListener(event: "HeapProfiler.lastSeenObjectId",listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void,): this If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
#addListener(event: "HeapProfiler.heapStatsUpdate",listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void,): this If heap objects tracking has been started then backend may send update for one or more fragments
#addListener(event: "NodeTracing.dataCollected",listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void,): this Contains an bucket of collected trace events.
#addListener(event: "NodeTracing.tracingComplete",listener: () => void,): this Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.
#addListener(event: "NodeWorker.attachedToWorker",listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void,): this Issued when attached to a worker.
#addListener(event: "NodeWorker.detachedFromWorker",listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void,): this Issued when detached from the worker.
#addListener(event: "NodeWorker.receivedMessageFromWorker",listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void,): this Notifies about a new protocol message received from the session (session ID is provided in attachedToWorker notification).
#addListener(event: "Network.requestWillBeSent",listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void,): this Fired when page is about to send HTTP request.
#addListener(event: "Network.responseReceived",listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void,): this Fired when HTTP response is available.
#addListener(event: "Network.loadingFailed",listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void,): this #addListener(event: "Network.loadingFinished",listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void,): this #addListener(event: "NodeRuntime.waitingForDisconnect",listener: () => void,): this This event is fired instead of Runtime.executionContextDestroyed when
enabled.
It is fired when the Node process finished all code execution and is
waiting for all frontends to disconnect.
#addListener(event: "NodeRuntime.waitingForDebugger",listener: () => void,): this This event is fired when the runtime is waiting for the debugger. For example, when inspector.waitingForDebugger is called
#connectToMainThread(): void Connects a session to the inspector back-end. An exception will be thrown if this API was not called on a Worker thread.
#disconnect(): void Immediately close the session. All pending message callbacks will be called with an error.
session.connect() will need to be called to be able to send messages again.
Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints.
#emit(event: "inspectorNotification",message: InspectorNotification<object>,): boolean #on(event: "inspectorNotification",listener: (message: InspectorNotification<object>) => void,): this Emitted when any notification from the V8 Inspector is received.
#on(event: "Runtime.executionContextCreated",listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void,): this Issued when new execution context is created.
#on(event: "Runtime.executionContextDestroyed",listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void,): this Issued when execution context is destroyed.
Issued when all executionContexts were cleared in browser
#on(event: "Runtime.exceptionThrown",listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void,): this Issued when exception was thrown and unhandled.
#on(event: "Runtime.exceptionRevoked",listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void,): this Issued when unhandled exception was revoked.
#on(event: "Runtime.consoleAPICalled",listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void,): this Issued when console API was called.
#on(event: "Runtime.inspectRequested",listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void,): this Issued when object should be inspected (for example, as a result of inspect() command line API call).
#on(event: "Debugger.scriptParsed",listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void,): this Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
#on(event: "Debugger.scriptFailedToParse",listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void,): this Fired when virtual machine fails to parse the script.
#on(event: "Debugger.breakpointResolved",listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void,): this Fired when breakpoint is resolved to an actual script and location.
#on(event: "Debugger.paused",listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void,): this Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
Fired when the virtual machine resumed execution.
#on(event: "Console.messageAdded",listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void,): this Issued when new console message is added.
#on(event: "Profiler.consoleProfileStarted",listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void,): this Sent when new profile recording is started using console.profile() call.
#on(event: "Profiler.consoleProfileFinished",listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void,): this #on(event: "HeapProfiler.addHeapSnapshotChunk",listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void,): this #on(event: "HeapProfiler.reportHeapSnapshotProgress",listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void,): this #on(event: "HeapProfiler.lastSeenObjectId",listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void,): this If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
#on(event: "HeapProfiler.heapStatsUpdate",listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void,): this If heap objects tracking has been started then backend may send update for one or more fragments
#on(event: "NodeTracing.dataCollected",listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void,): this Contains an bucket of collected trace events.
Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.
#on(event: "NodeWorker.attachedToWorker",listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void,): this Issued when attached to a worker.
#on(event: "NodeWorker.detachedFromWorker",listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void,): this Issued when detached from the worker.
#on(event: "NodeWorker.receivedMessageFromWorker",listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void,): this Notifies about a new protocol message received from the session (session ID is provided in attachedToWorker notification).
#on(event: "Network.requestWillBeSent",listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void,): this Fired when page is about to send HTTP request.
#on(event: "Network.responseReceived",listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void,): this Fired when HTTP response is available.
#on(event: "Network.loadingFailed",listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void,): this #on(event: "Network.loadingFinished",listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void,): this This event is fired instead of Runtime.executionContextDestroyed when
enabled.
It is fired when the Node process finished all code execution and is
waiting for all frontends to disconnect.
This event is fired when the runtime is waiting for the debugger. For example, when inspector.waitingForDebugger is called
#once(event: "inspectorNotification",listener: (message: InspectorNotification<object>) => void,): this Emitted when any notification from the V8 Inspector is received.
#once(event: "Runtime.executionContextCreated",listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void,): this Issued when new execution context is created.
#once(event: "Runtime.executionContextDestroyed",listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void,): this Issued when execution context is destroyed.
Issued when all executionContexts were cleared in browser
#once(event: "Runtime.exceptionThrown",listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void,): this Issued when exception was thrown and unhandled.
#once(event: "Runtime.exceptionRevoked",listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void,): this Issued when unhandled exception was revoked.
#once(event: "Runtime.consoleAPICalled",listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void,): this Issued when console API was called.
#once(event: "Runtime.inspectRequested",listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void,): this Issued when object should be inspected (for example, as a result of inspect() command line API call).
#once(event: "Debugger.scriptParsed",listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void,): this Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
#once(event: "Debugger.scriptFailedToParse",listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void,): this Fired when virtual machine fails to parse the script.
#once(event: "Debugger.breakpointResolved",listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void,): this Fired when breakpoint is resolved to an actual script and location.
#once(event: "Debugger.paused",listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void,): this Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
Fired when the virtual machine resumed execution.
#once(event: "Console.messageAdded",listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void,): this Issued when new console message is added.
#once(event: "Profiler.consoleProfileStarted",listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void,): this Sent when new profile recording is started using console.profile() call.
#once(event: "Profiler.consoleProfileFinished",listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void,): this #once(event: "HeapProfiler.addHeapSnapshotChunk",listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void,): this #once(event: "HeapProfiler.reportHeapSnapshotProgress",listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void,): this #once(event: "HeapProfiler.lastSeenObjectId",listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void,): this If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
#once(event: "HeapProfiler.heapStatsUpdate",listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void,): this If heap objects tracking has been started then backend may send update for one or more fragments
#once(event: "NodeTracing.dataCollected",listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void,): this Contains an bucket of collected trace events.
Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.
#once(event: "NodeWorker.attachedToWorker",listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void,): this Issued when attached to a worker.
#once(event: "NodeWorker.detachedFromWorker",listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void,): this Issued when detached from the worker.
#once(event: "NodeWorker.receivedMessageFromWorker",listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void,): this Notifies about a new protocol message received from the session (session ID is provided in attachedToWorker notification).
#once(event: "Network.requestWillBeSent",listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void,): this Fired when page is about to send HTTP request.
#once(event: "Network.responseReceived",listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void,): this Fired when HTTP response is available.
#once(event: "Network.loadingFailed",listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void,): this #once(event: "Network.loadingFinished",listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void,): this This event is fired instead of Runtime.executionContextDestroyed when
enabled.
It is fired when the Node process finished all code execution and is
waiting for all frontends to disconnect.
This event is fired when the runtime is waiting for the debugger. For example, when inspector.waitingForDebugger is called
Posts a message to the inspector back-end. callback will be notified when
a response is received. callback is a function that accepts two optional
arguments: error and message-specific result.
session.post('Runtime.evaluate', { expression: '2 + 2' },
(error, { result }) => console.log(result));
// Output: { type: 'number', value: 4, description: '4' }
The latest version of the V8 inspector protocol is published on the Chrome DevTools Protocol Viewer.
Node.js inspector supports all the Chrome DevTools Protocol domains declared by V8. Chrome DevTools Protocol domain provides an interface for interacting with one of the runtime agents used to inspect the application state and listen to the run-time events.
#post(method: "Schema.getDomains",callback?: (err: Error | null,params: Schema.GetDomainsReturnType,) => void,): void Returns supported domains.
#post(method: "Runtime.evaluate",params?: Runtime.EvaluateParameterType,callback?: (err: Error | null,params: Runtime.EvaluateReturnType,) => void,): void Evaluates expression on global object.
#post(method: "Runtime.evaluate",callback?: (err: Error | null,params: Runtime.EvaluateReturnType,) => void,): void #post(method: "Runtime.awaitPromise",params?: Runtime.AwaitPromiseParameterType,callback?: (err: Error | null,params: Runtime.AwaitPromiseReturnType,) => void,): void Add handler to promise with given promise object id.
#post(method: "Runtime.awaitPromise",callback?: (err: Error | null,params: Runtime.AwaitPromiseReturnType,) => void,): void #post(method: "Runtime.callFunctionOn",params?: Runtime.CallFunctionOnParameterType,callback?: (err: Error | null,params: Runtime.CallFunctionOnReturnType,) => void,): void Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
#post(method: "Runtime.callFunctionOn",callback?: (err: Error | null,params: Runtime.CallFunctionOnReturnType,) => void,): void #post(method: "Runtime.getProperties",params?: Runtime.GetPropertiesParameterType,callback?: (err: Error | null,params: Runtime.GetPropertiesReturnType,) => void,): void Returns properties of a given object. Object group of the result is inherited from the target object.
#post(method: "Runtime.getProperties",callback?: (err: Error | null,params: Runtime.GetPropertiesReturnType,) => void,): void #post(method: "Runtime.releaseObject",params?: Runtime.ReleaseObjectParameterType,callback?: (err: Error | null) => void,): void Releases remote object with given id.
#post(method: "Runtime.releaseObjectGroup",params?: Runtime.ReleaseObjectGroupParameterType,callback?: (err: Error | null) => void,): void Releases all remote objects that belong to a given group.
Tells inspected instance to run if it was waiting for debugger to attach.
Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context.
Disables reporting of execution contexts creation.
Discards collected exceptions and console API calls.
#post(method: "Runtime.compileScript",params?: Runtime.CompileScriptParameterType,callback?: (err: Error | null,params: Runtime.CompileScriptReturnType,) => void,): void Compiles expression.
#post(method: "Runtime.compileScript",callback?: (err: Error | null,params: Runtime.CompileScriptReturnType,) => void,): void #post(method: "Runtime.runScript",params?: Runtime.RunScriptParameterType,callback?: (err: Error | null,params: Runtime.RunScriptReturnType,) => void,): void Runs script with given id in a given context.
#post(method: "Runtime.runScript",callback?: (err: Error | null,params: Runtime.RunScriptReturnType,) => void,): void #post(method: "Runtime.queryObjects",params?: Runtime.QueryObjectsParameterType,callback?: (err: Error | null,params: Runtime.QueryObjectsReturnType,) => void,): void #post(method: "Runtime.queryObjects",callback?: (err: Error | null,params: Runtime.QueryObjectsReturnType,) => void,): void Returns all let, const and class variables from global scope.
#post(method: "Debugger.enable",callback?: (err: Error | null,params: Debugger.EnableReturnType,) => void,): void Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
Disables debugger for given page.
Activates / deactivates all breakpoints on the page.
#post(method: "Debugger.setSkipAllPauses",params?: Debugger.SetSkipAllPausesParameterType,callback?: (err: Error | null) => void,): void Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
#post(method: "Debugger.setBreakpointByUrl",params?: Debugger.SetBreakpointByUrlParameterType,callback?: (err: Error | null,) => void,): void Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads.
#post(method: "Debugger.setBreakpoint",params?: Debugger.SetBreakpointParameterType,callback?: (err: Error | null,params: Debugger.SetBreakpointReturnType,) => void,): void Sets JavaScript breakpoint at a given location.
#post(method: "Debugger.setBreakpoint",callback?: (err: Error | null,params: Debugger.SetBreakpointReturnType,) => void,): void #post(method: "Debugger.removeBreakpoint",params?: Debugger.RemoveBreakpointParameterType,callback?: (err: Error | null) => void,): void Removes JavaScript breakpoint.
Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
#post(method: "Debugger.continueToLocation",params?: Debugger.ContinueToLocationParameterType,callback?: (err: Error | null) => void,): void Continues execution until specific location is reached.
#post(method: "Debugger.pauseOnAsyncCall",params?: Debugger.PauseOnAsyncCallParameterType,callback?: (err: Error | null) => void,): void Steps over the statement.
#post(method: "Debugger.stepInto",params?: Debugger.StepIntoParameterType,callback?: (err: Error | null) => void,): void Steps into the function call.
Steps out of the function call.
Stops on the next JavaScript statement.
This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called.
Resumes JavaScript execution.
#post(method: "Debugger.getStackTrace",params?: Debugger.GetStackTraceParameterType,callback?: (err: Error | null,params: Debugger.GetStackTraceReturnType,) => void,): void Returns stack trace with given stackTraceId.
#post(method: "Debugger.getStackTrace",callback?: (err: Error | null,params: Debugger.GetStackTraceReturnType,) => void,): void #post(method: "Debugger.searchInContent",params?: Debugger.SearchInContentParameterType,callback?: (err: Error | null,params: Debugger.SearchInContentReturnType,) => void,): void Searches for given string in script content.
#post(method: "Debugger.searchInContent",callback?: (err: Error | null,params: Debugger.SearchInContentReturnType,) => void,): void #post(method: "Debugger.setScriptSource",params?: Debugger.SetScriptSourceParameterType,callback?: (err: Error | null,params: Debugger.SetScriptSourceReturnType,) => void,): void Edits JavaScript source live.
#post(method: "Debugger.setScriptSource",callback?: (err: Error | null,params: Debugger.SetScriptSourceReturnType,) => void,): void #post(method: "Debugger.restartFrame",params?: Debugger.RestartFrameParameterType,callback?: (err: Error | null,params: Debugger.RestartFrameReturnType,) => void,): void Restarts particular call frame from the beginning.
#post(method: "Debugger.restartFrame",callback?: (err: Error | null,params: Debugger.RestartFrameReturnType,) => void,): void #post(method: "Debugger.getScriptSource",params?: Debugger.GetScriptSourceParameterType,callback?: (err: Error | null,params: Debugger.GetScriptSourceReturnType,) => void,): void Returns source for the script with given id.
#post(method: "Debugger.getScriptSource",callback?: (err: Error | null,params: Debugger.GetScriptSourceReturnType,) => void,): void Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is none.
Evaluates expression on a given call frame.
#post(method: "Debugger.setVariableValue",params?: Debugger.SetVariableValueParameterType,callback?: (err: Error | null) => void,): void Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
#post(method: "Debugger.setReturnValue",params?: Debugger.SetReturnValueParameterType,callback?: (err: Error | null) => void,): void Changes return value in top frame. Available only at return break position.
Enables or disables async call stacks tracking.
Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted.
Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification.
Disables console domain, prevents further console messages from being reported to the client.
Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
#post(method: "Profiler.stop",callback?: (err: Error | null,params: Profiler.StopReturnType,) => void,): void Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.
Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
#post(method: "HeapProfiler.startSampling",params?: HeapProfiler.StartSamplingParameterType,callback?: (err: Error | null) => void,): void #post(method: "HeapProfiler.stopSampling",callback?: (err: Error | null,params: HeapProfiler.StopSamplingReturnType,) => void,): void #post(method: "NodeTracing.getCategories",callback?: (err: Error | null,params: NodeTracing.GetCategoriesReturnType,) => void,): void Gets supported tracing categories.
#post(method: "NodeTracing.start",params?: NodeTracing.StartParameterType,callback?: (err: Error | null) => void,): void Start trace events collection.
Stop trace events collection. Remaining collected events will be sent as a sequence of dataCollected events followed by tracingComplete event.
Sends protocol message over session with given id.
#post(method: "NodeWorker.enable",params?: NodeWorker.EnableParameterType,callback?: (err: Error | null) => void,): void Instructs the inspector to attach to running workers. Will also attach to new workers as they start
Detaches from all running workers and disables attaching to new workers as they are started.
#post(method: "NodeWorker.detach",params?: NodeWorker.DetachParameterType,callback?: (err: Error | null) => void,): void Detached from the worker with given sessionId.
Disables network tracking, prevents network events from being sent to the client.
Enables network tracking, network events will now be delivered to the client.
Enable the NodeRuntime events except by NodeRuntime.waitingForDisconnect.
Disable NodeRuntime events
#post(method: "NodeRuntime.notifyWhenWaitingForDisconnect",callback?: (err: Error | null) => void,): void Enable the NodeRuntime.waitingForDisconnect.
#prependListener(event: string,listener: (...args: any[]) => void,): this #prependListener(event: "inspectorNotification",listener: (message: InspectorNotification<object>) => void,): this Emitted when any notification from the V8 Inspector is received.
#prependListener(event: "Runtime.executionContextCreated",listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void,): this Issued when new execution context is created.
#prependListener(event: "Runtime.executionContextDestroyed",listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void,): this Issued when execution context is destroyed.
#prependListener(event: "Runtime.executionContextsCleared",listener: () => void,): this Issued when all executionContexts were cleared in browser
#prependListener(event: "Runtime.exceptionThrown",listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void,): this Issued when exception was thrown and unhandled.
#prependListener(event: "Runtime.exceptionRevoked",listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void,): this Issued when unhandled exception was revoked.
#prependListener(event: "Runtime.consoleAPICalled",listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void,): this Issued when console API was called.
#prependListener(event: "Runtime.inspectRequested",listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void,): this Issued when object should be inspected (for example, as a result of inspect() command line API call).
#prependListener(event: "Debugger.scriptParsed",listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void,): this Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
#prependListener(event: "Debugger.scriptFailedToParse",listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void,): this Fired when virtual machine fails to parse the script.
#prependListener(event: "Debugger.breakpointResolved",listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void,): this Fired when breakpoint is resolved to an actual script and location.
#prependListener(event: "Debugger.paused",listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void,): this Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
#prependListener(event: "Debugger.resumed",listener: () => void,): this Fired when the virtual machine resumed execution.
#prependListener(event: "Console.messageAdded",listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void,): this Issued when new console message is added.
#prependListener(event: "Profiler.consoleProfileStarted",listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void,): this Sent when new profile recording is started using console.profile() call.
#prependListener(event: "Profiler.consoleProfileFinished",listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void,): this #prependListener(event: "HeapProfiler.addHeapSnapshotChunk",listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void,): this #prependListener(event: "HeapProfiler.resetProfiles",listener: () => void,): this #prependListener(event: "HeapProfiler.reportHeapSnapshotProgress",listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void,): this #prependListener(event: "HeapProfiler.lastSeenObjectId",listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void,): this If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
#prependListener(event: "HeapProfiler.heapStatsUpdate",listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void,): this If heap objects tracking has been started then backend may send update for one or more fragments
#prependListener(event: "NodeTracing.dataCollected",listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void,): this Contains an bucket of collected trace events.
#prependListener(event: "NodeTracing.tracingComplete",listener: () => void,): this Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.
#prependListener(event: "NodeWorker.attachedToWorker",listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void,): this Issued when attached to a worker.
#prependListener(event: "NodeWorker.detachedFromWorker",listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void,): this Issued when detached from the worker.
#prependListener(event: "NodeWorker.receivedMessageFromWorker",listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void,): this Notifies about a new protocol message received from the session (session ID is provided in attachedToWorker notification).
#prependListener(event: "Network.requestWillBeSent",listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void,): this Fired when page is about to send HTTP request.
#prependListener(event: "Network.responseReceived",listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void,): this Fired when HTTP response is available.
#prependListener(event: "Network.loadingFailed",listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void,): this #prependListener(event: "Network.loadingFinished",listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void,): this #prependListener(event: "NodeRuntime.waitingForDisconnect",listener: () => void,): this This event is fired instead of Runtime.executionContextDestroyed when
enabled.
It is fired when the Node process finished all code execution and is
waiting for all frontends to disconnect.
#prependListener(event: "NodeRuntime.waitingForDebugger",listener: () => void,): this This event is fired when the runtime is waiting for the debugger. For example, when inspector.waitingForDebugger is called
#prependOnceListener(event: string,listener: (...args: any[]) => void,): this #prependOnceListener(event: "inspectorNotification",listener: (message: InspectorNotification<object>) => void,): this Emitted when any notification from the V8 Inspector is received.
#prependOnceListener(event: "Runtime.executionContextCreated",listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void,): this Issued when new execution context is created.
#prependOnceListener(event: "Runtime.executionContextDestroyed",listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void,): this Issued when execution context is destroyed.
#prependOnceListener(event: "Runtime.executionContextsCleared",listener: () => void,): this Issued when all executionContexts were cleared in browser
#prependOnceListener(event: "Runtime.exceptionThrown",listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void,): this Issued when exception was thrown and unhandled.
#prependOnceListener(event: "Runtime.exceptionRevoked",listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void,): this Issued when unhandled exception was revoked.
#prependOnceListener(event: "Runtime.consoleAPICalled",listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void,): this Issued when console API was called.
#prependOnceListener(event: "Runtime.inspectRequested",listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void,): this Issued when object should be inspected (for example, as a result of inspect() command line API call).
#prependOnceListener(event: "Debugger.scriptParsed",listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void,): this Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
#prependOnceListener(event: "Debugger.scriptFailedToParse",listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void,): this Fired when virtual machine fails to parse the script.
#prependOnceListener(event: "Debugger.breakpointResolved",listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void,): this Fired when breakpoint is resolved to an actual script and location.
#prependOnceListener(event: "Debugger.paused",listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void,): this Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
#prependOnceListener(event: "Debugger.resumed",listener: () => void,): this Fired when the virtual machine resumed execution.
#prependOnceListener(event: "Console.messageAdded",listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void,): this Issued when new console message is added.
#prependOnceListener(event: "Profiler.consoleProfileStarted",listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void,): this Sent when new profile recording is started using console.profile() call.
#prependOnceListener(event: "Profiler.consoleProfileFinished",listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void,): this #prependOnceListener(event: "HeapProfiler.addHeapSnapshotChunk",listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void,): this #prependOnceListener(event: "HeapProfiler.resetProfiles",listener: () => void,): this #prependOnceListener(event: "HeapProfiler.reportHeapSnapshotProgress",listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void,): this #prependOnceListener(event: "HeapProfiler.lastSeenObjectId",listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void,): this If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
#prependOnceListener(event: "HeapProfiler.heapStatsUpdate",listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void,): this If heap objects tracking has been started then backend may send update for one or more fragments
#prependOnceListener(event: "NodeTracing.dataCollected",listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void,): this Contains an bucket of collected trace events.
#prependOnceListener(event: "NodeTracing.tracingComplete",listener: () => void,): this Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.
#prependOnceListener(event: "NodeWorker.attachedToWorker",listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void,): this Issued when attached to a worker.
#prependOnceListener(event: "NodeWorker.detachedFromWorker",listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void,): this Issued when detached from the worker.
#prependOnceListener(event: "NodeWorker.receivedMessageFromWorker",listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void,): this Notifies about a new protocol message received from the session (session ID is provided in attachedToWorker notification).
#prependOnceListener(event: "Network.requestWillBeSent",listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void,): this Fired when page is about to send HTTP request.
#prependOnceListener(event: "Network.responseReceived",listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void,): this Fired when HTTP response is available.
#prependOnceListener(event: "Network.loadingFailed",listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void,): this #prependOnceListener(event: "Network.loadingFinished",listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void,): this #prependOnceListener(event: "NodeRuntime.waitingForDisconnect",listener: () => void,): this This event is fired instead of Runtime.executionContextDestroyed when
enabled.
It is fired when the Node process finished all code execution and is
waiting for all frontends to disconnect.
#prependOnceListener(event: "NodeRuntime.waitingForDebugger",listener: () => void,): this This event is fired when the runtime is waiting for the debugger. For example, when inspector.waitingForDebugger is called
function Network.loadingFailed
Usage in Deno
import { Network } from "node:inspector";
#loadingFailed(params: LoadingFailedEventDataType): voidThis feature is only available with the --experimental-network-inspection flag enabled.
Broadcasts the Network.loadingFailed event to connected frontends. This event indicates that
HTTP request has failed to load.
Parameters #
#params: LoadingFailedEventDataType Return Type #
void function Network.loadingFinished
Usage in Deno
import { Network } from "node:inspector";
#loadingFinished(params: LoadingFinishedEventDataType): voidThis feature is only available with the --experimental-network-inspection flag enabled.
Broadcasts the Network.loadingFinished event to connected frontends. This event indicates that
HTTP request has finished loading.
Parameters #
#params: LoadingFinishedEventDataType Return Type #
void function Network.requestWillBeSent
Usage in Deno
import { Network } from "node:inspector";
#requestWillBeSent(params: RequestWillBeSentEventDataType): voidThis feature is only available with the --experimental-network-inspection flag enabled.
Broadcasts the Network.requestWillBeSent event to connected frontends. This event indicates that
the application is about to send an HTTP request.
Parameters #
#params: RequestWillBeSentEventDataType Return Type #
void function Network.responseReceived
Usage in Deno
import { Network } from "node:inspector";
#responseReceived(params: ResponseReceivedEventDataType): voidThis feature is only available with the --experimental-network-inspection flag enabled.
Broadcasts the Network.responseReceived event to connected frontends. This event indicates that
HTTP response is available.
Parameters #
#params: ResponseReceivedEventDataType Return Type #
void function open
Usage in Deno
import { open } from "node:inspector";
#open(port?: number,host?: string,wait?: boolean,): DisposableActivate inspector on host and port. Equivalent to node --inspect=[[host:]port], but can be done programmatically 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.
See the security warning
regarding the host parameter usage.
Parameters #
#port: number Port to listen on for inspector connections. Defaults to what was specified on the CLI.
#host: string Host to listen on for inspector connections. Defaults to what was specified on the CLI.
#wait: boolean Block until a client has connected. Defaults to what was specified on the CLI.
Return Type #
Disposable Disposable that calls inspector.close().
function url
Usage in Deno
import { url } from "node:inspector";
#url(): string | undefinedReturn the URL of the active inspector, or undefined if there is none.
$ node --inspect -p 'inspector.url()'
Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
For help, see: https://nodejs.org/en/docs/inspector
ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
$ node --inspect=localhost:3000 -p 'inspector.url()'
Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
For help, see: https://nodejs.org/en/docs/inspector
ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
$ node -p 'inspector.url()'
undefined
Return Type #
string | undefined function waitForDebugger
Usage in Deno
import { waitForDebugger } from "node:inspector";
interface Console.ConsoleMessage
Usage in Deno
import { Console } from "node:inspector";
Console message.
Properties #
Line number in the resource that generated this message (1-based).
interface Console.MessageAddedEventDataType
Usage in Deno
import { Console } from "node:inspector";
Properties #
Console message that has been added.
interface Debugger.BreakLocation
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
Script identifier as reported in the Debugger.scriptParsed.
#lineNumber: number Line number in the script (0-based).
#columnNumber: number | undefined Column number in the script (0-based).
interface Debugger.BreakpointResolvedEventDataType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
Breakpoint unique identifier.
interface Debugger.CallFrame
Usage in Deno
import { Debugger } from "node:inspector";
JavaScript call frame. Array of call frames form the call stack.
Properties #
Call frame identifier. This identifier is only valid while the virtual machine is paused.
#functionName: string Name of the JavaScript function called on this call frame.
#functionLocation: Location | undefined Location in the source code.
#scopeChain: Scope[] Scope chain for this call frame.
this object for this call frame.
#returnValue: Runtime.RemoteObject | undefined The value being returned, if the function is at return point.
interface Debugger.ContinueToLocationParameterType
Usage in Deno
import { Debugger } from "node:inspector";
interface Debugger.EnableReturnType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
Unique identifier of the debugger.
interface Debugger.EvaluateOnCallFrameParameterType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
Call frame identifier to evaluate on.
#expression: string Expression to evaluate.
#objectGroup: string | undefined String object group name to put result into (allows rapid releasing resulting object handles using releaseObjectGroup).
#includeCommandLineAPI: boolean | undefined Specifies whether command line API should be available to the evaluated expression, defaults to false.
In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.
#returnByValue: boolean | undefined Whether the result is expected to be a JSON object that should be sent by value.
#generatePreview: boolean | undefined Whether preview should be generated for the result.
#throwOnSideEffect: boolean | undefined Whether to throw an exception if side effect cannot be ruled out during evaluation.
interface Debugger.EvaluateOnCallFrameReturnType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
Object wrapper for the evaluation result.
#exceptionDetails: Runtime.ExceptionDetails | undefined Exception details.
interface Debugger.GetPossibleBreakpointsParameterType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range.
#restrictToFunction: boolean | undefined Only consider locations which are in the same (non-nested) function as start.
interface Debugger.GetPossibleBreakpointsReturnType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
List of the possible breakpoint locations.
interface Debugger.GetScriptSourceParameterType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
Id of the script to get source for.
interface Debugger.GetScriptSourceReturnType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
#scriptSource: string Script source.
interface Debugger.GetStackTraceParameterType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
interface Debugger.GetStackTraceReturnType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
interface Debugger.Location
Usage in Deno
import { Debugger } from "node:inspector";
Location in the source code.
Properties #
Script identifier as reported in the Debugger.scriptParsed.
#lineNumber: number Line number in the script (0-based).
#columnNumber: number | undefined Column number in the script (0-based).
interface Debugger.PausedEventDataType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
Call stack the virtual machine stopped on.
#hitBreakpoints: string[] | undefined Hit breakpoints IDs
#asyncStackTrace: Runtime.StackTrace | undefined Async stack trace, if any.
#asyncStackTraceId: Runtime.StackTraceId | undefined Async stack trace, if any.
#asyncCallStackTraceId: Runtime.StackTraceId | undefined Just scheduled async call will have this stack trace as parent stack during async execution. This field is available only after Debugger.stepInto call with breakOnAsynCall flag.
interface Debugger.PauseOnAsyncCallParameterType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
Debugger will pause when async call with given stack trace is started.
interface Debugger.RemoveBreakpointParameterType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
interface Debugger.RestartFrameParameterType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
Call frame identifier to evaluate on.
interface Debugger.RestartFrameReturnType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
New stack trace.
#asyncStackTrace: Runtime.StackTrace | undefined Async stack trace, if any.
#asyncStackTraceId: Runtime.StackTraceId | undefined Async stack trace, if any.
interface Debugger.Scope
Usage in Deno
import { Debugger } from "node:inspector";
Scope description.
Properties #
Object representing the scope. For global and with scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.
#startLocation: Location | undefined Location in the source code where scope starts
#endLocation: Location | undefined Location in the source code where scope ends
interface Debugger.ScriptFailedToParseEventDataType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
Identifier of the script parsed.
#startColumn: number Column offset of the script within the resource with given URL.
Specifies script creation context.
#executionContextAuxData: { } | undefined Embedder-specific auxiliary data.
#sourceMapURL: string | undefined URL of source map associated with script (if any).
#hasSourceURL: boolean | undefined True, if this script has sourceURL.
#stackTrace: Runtime.StackTrace | undefined JavaScript top stack frame of where the script parsed event was triggered if available.
interface Debugger.ScriptParsedEventDataType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
Identifier of the script parsed.
#startColumn: number Column offset of the script within the resource with given URL.
Specifies script creation context.
#executionContextAuxData: { } | undefined Embedder-specific auxiliary data.
#isLiveEdit: boolean | undefined True, if this script is generated as a result of the live edit operation.
#sourceMapURL: string | undefined URL of source map associated with script (if any).
#hasSourceURL: boolean | undefined True, if this script has sourceURL.
#stackTrace: Runtime.StackTrace | undefined JavaScript top stack frame of where the script parsed event was triggered if available.
interface Debugger.ScriptPosition
Usage in Deno
import { Debugger } from "node:inspector";
Location in the source code.
Properties #
#lineNumber: number #columnNumber: number interface Debugger.SearchInContentParameterType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
Id of the script to search in.
#caseSensitive: boolean | undefined If true, search is case sensitive.
interface Debugger.SearchInContentReturnType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
List of search matches.
interface Debugger.SearchMatch
Usage in Deno
import { Debugger } from "node:inspector";
Search match for resource.
Properties #
#lineNumber: number Line number in resource content.
#lineContent: string Line with match content.
interface Debugger.SetAsyncCallStackDepthParameterType
Usage in Deno
import { Debugger } from "node:inspector";
interface Debugger.SetBlackboxedRangesParameterType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
Id of the script.
interface Debugger.SetBlackboxPatternsParameterType
Usage in Deno
import { Debugger } from "node:inspector";
interface Debugger.SetBreakpointByUrlParameterType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
#lineNumber: number Line number to set breakpoint at.
Regex pattern for the URLs of the resources to set breakpoints on. Either url or urlRegex must be specified.
#scriptHash: string | undefined Script hash of the resources to set breakpoint on.
#columnNumber: number | undefined Offset in the line to set breakpoint at.
interface Debugger.SetBreakpointByUrlReturnType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
Id of the created breakpoint for further reference.
interface Debugger.SetBreakpointParameterType
Usage in Deno
import { Debugger } from "node:inspector";
interface Debugger.SetBreakpointReturnType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
Id of the created breakpoint for further reference.
Location this breakpoint resolved into.
interface Debugger.SetBreakpointsActiveParameterType
Usage in Deno
import { Debugger } from "node:inspector";
interface Debugger.SetPauseOnExceptionsParameterType
Usage in Deno
import { Debugger } from "node:inspector";
interface Debugger.SetReturnValueParameterType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
New return value.
interface Debugger.SetScriptSourceParameterType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
Id of the script to edit.
#scriptSource: string New content of the script.
interface Debugger.SetScriptSourceReturnType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
#callFrames: CallFrame[] | undefined New stack trace in case editing has happened while VM was stopped.
#stackChanged: boolean | undefined Whether current call stack was modified after applying the changes.
#asyncStackTrace: Runtime.StackTrace | undefined Async stack trace, if any.
#asyncStackTraceId: Runtime.StackTraceId | undefined Async stack trace, if any.
#exceptionDetails: Runtime.ExceptionDetails | undefined Exception details if any.
interface Debugger.SetSkipAllPausesParameterType
Usage in Deno
import { Debugger } from "node:inspector";
interface Debugger.SetVariableValueParameterType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
#scopeNumber: number 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually.
#variableName: string Variable name.
New variable value.
Id of callframe that holds variable.
interface Debugger.StepIntoParameterType
Usage in Deno
import { Debugger } from "node:inspector";
Properties #
#breakOnAsyncCall: boolean | undefined Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause.
interface HeapProfiler.AddHeapSnapshotChunkEventDataType
Usage in Deno
import { HeapProfiler } from "node:inspector";
interface HeapProfiler.AddInspectedHeapObjectParameterType
Usage in Deno
import { HeapProfiler } from "node:inspector";
Properties #
Heap snapshot object id to be accessible by means of $x command line API.
interface HeapProfiler.GetHeapObjectIdParameterType
Usage in Deno
import { HeapProfiler } from "node:inspector";
Properties #
Identifier of the object to get heap object id for.
interface HeapProfiler.GetHeapObjectIdReturnType
Usage in Deno
import { HeapProfiler } from "node:inspector";
Properties #
Id of the heap snapshot object corresponding to the passed remote object id.
interface HeapProfiler.GetObjectByHeapObjectIdParameterType
Usage in Deno
import { HeapProfiler } from "node:inspector";
Properties #
#objectGroup: string | undefined Symbolic group name that can be used to release multiple objects.
interface HeapProfiler.GetObjectByHeapObjectIdReturnType
Usage in Deno
import { HeapProfiler } from "node:inspector";
Properties #
Evaluation result.
interface HeapProfiler.GetSamplingProfileReturnType
Usage in Deno
import { HeapProfiler } from "node:inspector";
Properties #
Return the sampling profile being collected.
interface HeapProfiler.HeapStatsUpdateEventDataType
Usage in Deno
import { HeapProfiler } from "node:inspector";
Properties #
#statsUpdate: number[] An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment.
interface HeapProfiler.LastSeenObjectIdEventDataType
Usage in Deno
import { HeapProfiler } from "node:inspector";
Properties #
#lastSeenObjectId: number interface HeapProfiler.SamplingHeapProfile
Usage in Deno
import { HeapProfiler } from "node:inspector";
Profile.
Properties #
interface HeapProfiler.SamplingHeapProfileNode
Usage in Deno
import { HeapProfiler } from "node:inspector";
Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
Properties #
Function location.
Child nodes.
interface HeapProfiler.StartSamplingParameterType
Usage in Deno
import { HeapProfiler } from "node:inspector";
Properties #
#samplingInterval: number | undefined Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes.
interface HeapProfiler.StartTrackingHeapObjectsParameterType
Usage in Deno
import { HeapProfiler } from "node:inspector";
Properties #
#trackAllocations: boolean | undefined interface HeapProfiler.StopSamplingReturnType
Usage in Deno
import { HeapProfiler } from "node:inspector";
Properties #
Recorded sampling heap profile.
interface HeapProfiler.StopTrackingHeapObjectsParameterType
Usage in Deno
import { HeapProfiler } from "node:inspector";
Properties #
#reportProgress: boolean | undefined If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped.
interface HeapProfiler.TakeHeapSnapshotParameterType
Usage in Deno
import { HeapProfiler } from "node:inspector";
Properties #
#reportProgress: boolean | undefined If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
interface InspectorConsole
Usage in Deno
import { type InspectorConsole } from "node:inspector";
Methods #
interface Network.Headers
Usage in Deno
import { Network } from "node:inspector";
Request / response headers as keys / values of JSON object.
interface Network.LoadingFailedEventDataType
Usage in Deno
import { Network } from "node:inspector";
interface Network.LoadingFinishedEventDataType
Usage in Deno
import { Network } from "node:inspector";
interface Network.RequestWillBeSentEventDataType
Usage in Deno
import { Network } from "node:inspector";
interface Network.ResponseReceivedEventDataType
Usage in Deno
import { Network } from "node:inspector";
interface NodeRuntime.NotifyWhenWaitingForDisconnectParameterType
Usage in Deno
import { NodeRuntime } from "node:inspector";
interface NodeTracing.DataCollectedEventDataType
Usage in Deno
import { NodeTracing } from "node:inspector";
interface NodeTracing.GetCategoriesReturnType
Usage in Deno
import { NodeTracing } from "node:inspector";
Properties #
#categories: string[] A list of supported tracing categories.
interface NodeTracing.StartParameterType
Usage in Deno
import { NodeTracing } from "node:inspector";
Properties #
interface NodeTracing.TraceConfig
Usage in Deno
import { NodeTracing } from "node:inspector";
Properties #
#recordMode: string | undefined Controls how the trace buffer stores data.
#includedCategories: string[] Included category filters.
interface NodeWorker.AttachedToWorkerEventDataType
Usage in Deno
import { NodeWorker } from "node:inspector";
Properties #
#waitingForDebugger: boolean interface NodeWorker.DetachedFromWorkerEventDataType
Usage in Deno
import { NodeWorker } from "node:inspector";
interface NodeWorker.DetachParameterType
Usage in Deno
import { NodeWorker } from "node:inspector";
interface NodeWorker.EnableParameterType
Usage in Deno
import { NodeWorker } from "node:inspector";
Properties #
#waitForDebuggerOnStart: boolean Whether to new workers should be paused until the frontend sends Runtime.runIfWaitingForDebugger
message to run them.
interface Profiler.ConsoleProfileFinishedEventDataType
Usage in Deno
import { Profiler } from "node:inspector";
interface Profiler.ConsoleProfileStartedEventDataType
Usage in Deno
import { Profiler } from "node:inspector";
interface Profiler.CoverageRange
Usage in Deno
import { Profiler } from "node:inspector";
interface Profiler.FunctionCoverage
Usage in Deno
import { Profiler } from "node:inspector";
Coverage data for a JavaScript function.
Properties #
#functionName: string JavaScript function name.
Source ranges inside the function with coverage data.
#isBlockCoverage: boolean Whether coverage data for this function has block granularity.
interface Profiler.GetBestEffortCoverageReturnType
Usage in Deno
import { Profiler } from "node:inspector";
Properties #
Coverage data for the current isolate.
interface Profiler.Profile
Usage in Deno
import { Profiler } from "node:inspector";
Profile.
Properties #
The list of profile nodes. First item is the root node.
#timeDeltas: number[] | undefined Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime.
interface Profiler.ProfileNode
Usage in Deno
import { Profiler } from "node:inspector";
Profile node. Holds callsite information, execution statistics and child nodes.
Properties #
Function location.
Number of samples where this node was on top of the call stack.
#deoptReason: string | undefined The reason of being not optimized. The function may be deoptimized or marked as don't optimize.
#positionTicks: PositionTickInfo[] | undefined An array of source position ticks.
interface Profiler.ScriptCoverage
Usage in Deno
import { Profiler } from "node:inspector";
Coverage data for a JavaScript script.
Properties #
JavaScript script id.
Functions contained in the script that has coverage data.
interface Profiler.SetSamplingIntervalParameterType
Usage in Deno
import { Profiler } from "node:inspector";
interface Profiler.StopReturnType
Usage in Deno
import { Profiler } from "node:inspector";
interface Profiler.TakePreciseCoverageReturnType
Usage in Deno
import { Profiler } from "node:inspector";
Properties #
Coverage data for the current isolate.
interface Runtime.AwaitPromiseParameterType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
Identifier of the promise.
#returnByValue: boolean | undefined Whether the result is expected to be a JSON object that should be sent by value.
#generatePreview: boolean | undefined Whether preview should be generated for the result.
interface Runtime.AwaitPromiseReturnType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
Promise result. Will contain rejected value if promise was rejected.
#exceptionDetails: ExceptionDetails | undefined Exception details if stack strace is available.
interface Runtime.CallArgument
Usage in Deno
import { Runtime } from "node:inspector";
Represents function call argument. Either remote object id objectId, primitive value, unserializable primitive value or neither of (for undefined) them should be specified.
Properties #
#unserializableValue: UnserializableValue | undefined Primitive value which can not be JSON-stringified.
#objectId: RemoteObjectId | undefined Remote object handle.
interface Runtime.CallFrame
Usage in Deno
import { Runtime } from "node:inspector";
Stack entry for runtime errors and assertions.
Properties #
#functionName: string JavaScript function name.
#lineNumber: number JavaScript script line number (0-based).
#columnNumber: number JavaScript script column number (0-based).
interface Runtime.CallFunctionOnParameterType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
#functionDeclaration: string Declaration of the function to call.
#objectId: RemoteObjectId | undefined Identifier of the object to call function on. Either objectId or executionContextId should be specified.
#arguments: CallArgument[] | undefined Call arguments. All call arguments must belong to the same JavaScript world as the target object.
In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.
#returnByValue: boolean | undefined Whether the result is expected to be a JSON object which should be sent by value.
#generatePreview: boolean | undefined Whether preview should be generated for the result.
#userGesture: boolean | undefined Whether execution should be treated as initiated by user in the UI.
#awaitPromise: boolean | undefined Whether execution should await for resulting value and return once awaited promise is resolved.
#executionContextId: ExecutionContextId | undefined Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.
#objectGroup: string | undefined Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object.
interface Runtime.CallFunctionOnReturnType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
Call result.
#exceptionDetails: ExceptionDetails | undefined Exception details.
interface Runtime.CompileScriptParameterType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
#expression: string Expression to compile.
#persistScript: boolean Specifies whether the compiled script should be persisted.
#executionContextId: ExecutionContextId | undefined Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
interface Runtime.CompileScriptReturnType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
#exceptionDetails: ExceptionDetails | undefined Exception details.
interface Runtime.ConsoleAPICalledEventDataType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
Call arguments.
Identifier of the context where the call was made.
#stackTrace: StackTrace | undefined Stack trace captured when the call was made.
interface Runtime.CustomPreview
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
#configObjectId: RemoteObjectId | undefined interface Runtime.EntryPreview
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
#key: ObjectPreview | undefined Preview of the key. Specified for map-like collection entries.
Preview of the value.
interface Runtime.EvaluateParameterType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
#expression: string Expression to evaluate.
#objectGroup: string | undefined Symbolic group name that can be used to release multiple objects.
#includeCommandLineAPI: boolean | undefined Determines whether Command Line API should be available during the evaluation.
In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.
#contextId: ExecutionContextId | undefined Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
#returnByValue: boolean | undefined Whether the result is expected to be a JSON object that should be sent by value.
#generatePreview: boolean | undefined Whether preview should be generated for the result.
#userGesture: boolean | undefined Whether execution should be treated as initiated by user in the UI.
#awaitPromise: boolean | undefined Whether execution should await for resulting value and return once awaited promise is resolved.
interface Runtime.EvaluateReturnType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
Evaluation result.
#exceptionDetails: ExceptionDetails | undefined Exception details.
interface Runtime.ExceptionDetails
Usage in Deno
import { Runtime } from "node:inspector";
Detailed information about exception (or error) that was thrown during script compilation or execution.
Properties #
#exceptionId: number Exception id.
#lineNumber: number Line number of the exception location (0-based).
#columnNumber: number Column number of the exception location (0-based).
URL of the exception location, to be used when the script was not reported.
#stackTrace: StackTrace | undefined JavaScript stack trace if available.
#exception: RemoteObject | undefined Exception object if available.
#executionContextId: ExecutionContextId | undefined Identifier of the context where exception happened.
interface Runtime.ExceptionRevokedEventDataType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
#exceptionId: number The id of revoked exception, as reported in exceptionThrown.
interface Runtime.ExceptionThrownEventDataType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
interface Runtime.ExecutionContextCreatedEventDataType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
A newly created execution context.
interface Runtime.ExecutionContextDescription
Usage in Deno
import { Runtime } from "node:inspector";
Description of an isolated world.
Properties #
Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed.
interface Runtime.ExecutionContextDestroyedEventDataType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
Id of the destroyed context
interface Runtime.GetPropertiesParameterType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
Identifier of the object to return properties for.
#ownProperties: boolean | undefined If true, returns properties belonging only to the element itself, not to its prototype chain.
#accessorPropertiesOnly: boolean | undefined If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.
#generatePreview: boolean | undefined Whether preview should be generated for the results.
interface Runtime.GetPropertiesReturnType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
Object properties.
#internalProperties: InternalPropertyDescriptor[] | undefined Internal object properties (only of the element itself).
#exceptionDetails: ExceptionDetails | undefined Exception details.
interface Runtime.GlobalLexicalScopeNamesParameterType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
#executionContextId: ExecutionContextId | undefined Specifies in which execution context to lookup global scope variables.
interface Runtime.GlobalLexicalScopeNamesReturnType
Usage in Deno
import { Runtime } from "node:inspector";
interface Runtime.InspectRequestedEventDataType
Usage in Deno
import { Runtime } from "node:inspector";
interface Runtime.InternalPropertyDescriptor
Usage in Deno
import { Runtime } from "node:inspector";
interface Runtime.ObjectPreview
Usage in Deno
import { Runtime } from "node:inspector";
Object containing abbreviated remote object value.
Properties #
#description: string | undefined String representation of the object.
List of the properties.
#entries: EntryPreview[] | undefined List of the entries. Specified for map and set subtype values only.
interface Runtime.PropertyDescriptor
Usage in Deno
import { Runtime } from "node:inspector";
Object property descriptor.
Properties #
#value: RemoteObject | undefined The value associated with the property.
True if the value associated with the property may be changed (data descriptors only).
#get: RemoteObject | undefined A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only).
#set: RemoteObject | undefined A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only).
#configurable: boolean True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
#enumerable: boolean True if this property shows up during enumeration of the properties on the corresponding object.
#symbol: RemoteObject | undefined Property symbol object, if the property is of the symbol type.
interface Runtime.PropertyPreview
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
#valuePreview: ObjectPreview | undefined Nested value preview.
interface Runtime.QueryObjectsParameterType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
Identifier of the prototype to return objects for.
interface Runtime.QueryObjectsReturnType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
Array with objects.
interface Runtime.ReleaseObjectGroupParameterType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
#objectGroup: string Symbolic object group name.
interface Runtime.ReleaseObjectParameterType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
Identifier of the object to release.
interface Runtime.RemoteObject
Usage in Deno
import { Runtime } from "node:inspector";
Mirror object referencing original JavaScript object.
Properties #
Object class (constructor) name. Specified for object type values only.
Remote object value in case of primitive values or JSON values (if it was requested).
#unserializableValue: UnserializableValue | undefined Primitive value which can not be JSON-stringified does not have value, but gets this property.
#description: string | undefined String representation of the object.
#objectId: RemoteObjectId | undefined Unique object identifier (for non-primitive values).
#preview: ObjectPreview | undefined Preview containing abbreviated property values. Specified for object type values only.
#customPreview: CustomPreview | undefined interface Runtime.RunScriptParameterType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
#executionContextId: ExecutionContextId | undefined Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
#objectGroup: string | undefined Symbolic group name that can be used to release multiple objects.
In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.
#includeCommandLineAPI: boolean | undefined Determines whether Command Line API should be available during the evaluation.
#returnByValue: boolean | undefined Whether the result is expected to be a JSON object which should be sent by value.
#generatePreview: boolean | undefined Whether preview should be generated for the result.
#awaitPromise: boolean | undefined Whether execution should await for resulting value and return once awaited promise is resolved.
interface Runtime.RunScriptReturnType
Usage in Deno
import { Runtime } from "node:inspector";
Properties #
Run result.
#exceptionDetails: ExceptionDetails | undefined Exception details.
interface Runtime.SetCustomObjectFormatterEnabledParameterType
Usage in Deno
import { Runtime } from "node:inspector";
interface Runtime.StackTrace
Usage in Deno
import { Runtime } from "node:inspector";
Call frames for assertions or error messages.
Properties #
#description: string | undefined String label of this stack trace. For async traces this may be a name of the function that initiated the async call.
JavaScript function name.
#parent: StackTrace | undefined Asynchronous JavaScript stack trace that preceded this stack, if available.
#parentId: StackTraceId | undefined Asynchronous JavaScript stack trace that preceded this stack, if available.
interface Runtime.StackTraceId
Usage in Deno
import { Runtime } from "node:inspector";
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.
Properties #
#debuggerId: UniqueDebuggerId | undefined interface Schema.GetDomainsReturnType
Usage in Deno
import { Schema } from "node:inspector";
namespace Debugger
Usage in Deno
import { Debugger } from "node:inspector";
Interfaces #
JavaScript call frame. Array of call frames form the call stack.
Type Aliases #
namespace HeapProfiler
Usage in Deno
import { HeapProfiler } from "node:inspector";
Interfaces #
Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
Type Aliases #
namespace Network
Usage in Deno
import { Network } from "node:inspector";
Functions #
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.
Interfaces #
Type Aliases #
namespace NodeWorker
Usage in Deno
import { NodeWorker } from "node:inspector";
Interfaces #
Type Aliases #
namespace Profiler
Usage in Deno
import { Profiler } from "node:inspector";
Interfaces #
Specifies a number of samples attributed to a certain source position.
Profile node. Holds callsite information, execution statistics and child nodes.
namespace Runtime
Usage in Deno
import { Runtime } from "node:inspector";
Interfaces #
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.
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.
Type Aliases #
type alias Debugger.BreakpointId
Usage in Deno
import { Debugger } from "node:inspector";
Breakpoint identifier.
Definition #
string type alias Debugger.CallFrameId
Usage in Deno
import { Debugger } from "node:inspector";
Call frame identifier.
Definition #
string type alias HeapProfiler.HeapSnapshotObjectId
Usage in Deno
import { HeapProfiler } from "node:inspector";
Heap snapshot object id.
Definition #
string type alias Network.MonotonicTime
Usage in Deno
import { Network } from "node:inspector";
Monotonically increasing time in seconds since an arbitrary point in the past.
Definition #
number type alias Network.RequestId
Usage in Deno
import { Network } from "node:inspector";
Unique request identifier.
Definition #
string type alias Network.ResourceType
Usage in Deno
import { Network } from "node:inspector";
Resource type as it was perceived by the rendering engine.
Definition #
string type alias Network.TimeSinceEpoch
Usage in Deno
import { Network } from "node:inspector";
UTC time in seconds, counted from January 1, 1970.
Definition #
number type alias NodeWorker.SessionID
Usage in Deno
import { NodeWorker } from "node:inspector";
Unique identifier of attached debugging session.
Definition #
string type alias NodeWorker.WorkerID
Usage in Deno
import { NodeWorker } from "node:inspector";
Definition #
string type alias Runtime.ExecutionContextId
Usage in Deno
import { Runtime } from "node:inspector";
Id of an execution context.
Definition #
number type alias Runtime.RemoteObjectId
Usage in Deno
import { Runtime } from "node:inspector";
Unique object identifier.
Definition #
string type alias Runtime.ScriptId
Usage in Deno
import { Runtime } from "node:inspector";
Unique script identifier.
Definition #
string type alias Runtime.Timestamp
Usage in Deno
import { Runtime } from "node:inspector";
Number of milliseconds since epoch.
Definition #
number type alias Runtime.UniqueDebuggerId
Usage in Deno
import { Runtime } from "node:inspector";
Unique identifier of current debugger.
Definition #
string type alias Runtime.UnserializableValue
Usage in Deno
import { Runtime } from "node:inspector";
Primitive value which cannot be JSON-stringified.
Definition #
string