The inspector.Session is used for dispatching messages to the V8 inspector
back-end and receiving message responses and notifications.
addListener(event: string,listener: (...args: any[]) => void,): thisaddListener(event: "inspectorNotification",listener: (message: InspectorNotification<object>) => void,): thisEmitted when any notification from the V8 Inspector is received.
addListener(event: "Runtime.executionContextCreated",listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void,): thisIssued when new execution context is created.
addListener(event: "Runtime.executionContextDestroyed",listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void,): thisIssued when execution context is destroyed.
addListener(event: "Runtime.executionContextsCleared",listener: () => void,): thisIssued when all executionContexts were cleared in browser
addListener(event: "Runtime.exceptionThrown",listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void,): thisIssued when exception was thrown and unhandled.
addListener(event: "Runtime.exceptionRevoked",listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void,): thisIssued when unhandled exception was revoked.
addListener(event: "Runtime.consoleAPICalled",listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void,): thisIssued when console API was called.
addListener(event: "Runtime.inspectRequested",listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void,): thisIssued 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,): thisFired 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,): thisFired when virtual machine fails to parse the script.
addListener(event: "Debugger.breakpointResolved",listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void,): thisFired when breakpoint is resolved to an actual script and location.
addListener(event: "Debugger.paused",listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void,): thisFired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
addListener(event: "Debugger.resumed",listener: () => void,): thisFired when the virtual machine resumed execution.
addListener(event: "Console.messageAdded",listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void,): thisIssued when new console message is added.
addListener(event: "Profiler.consoleProfileStarted",listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void,): thisSent when new profile recording is started using console.profile() call.
addListener(event: "Profiler.consoleProfileFinished",listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void,): thisaddListener(event: "HeapProfiler.addHeapSnapshotChunk",listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void,): thisaddListener(event: "HeapProfiler.resetProfiles",listener: () => void,): thisaddListener(event: "HeapProfiler.reportHeapSnapshotProgress",listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void,): thisaddListener(event: "HeapProfiler.lastSeenObjectId",listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void,): thisIf 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,): thisIf 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,): thisContains an bucket of collected trace events.
addListener(event: "NodeTracing.tracingComplete",listener: () => void,): thisSignals 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,): thisIssued when attached to a worker.
addListener(event: "NodeWorker.detachedFromWorker",listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void,): thisIssued when detached from the worker.
addListener(event: "NodeWorker.receivedMessageFromWorker",listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void,): thisNotifies 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,): thisFired when page is about to send HTTP request.
addListener(event: "Network.responseReceived",listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void,): thisFired when HTTP response is available.
addListener(event: "Network.loadingFailed",listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void,): thisaddListener(event: "Network.loadingFinished",listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void,): thisaddListener(event: "NodeRuntime.waitingForDisconnect",listener: () => void,): thisThis 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,): thisThis event is fired when the runtime is waiting for the debugger. For example, when inspector.waitingForDebugger is called
connect(): voidConnects a session to the inspector back-end.
connectToMainThread(): voidConnects a session to the inspector back-end. An exception will be thrown if this API was not called on a Worker thread.
disconnect(): voidImmediately 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: string | symbol,...args: any[],): booleanemit(event: "inspectorNotification",message: InspectorNotification<object>,): booleanemit(event: "Runtime.executionContextCreated",): booleanemit(event: "Runtime.executionContextDestroyed",): booleanemit(event: "Runtime.executionContextsCleared"): booleanemit(event: "Runtime.exceptionThrown",): booleanemit(event: "Runtime.exceptionRevoked",): booleanemit(event: "Runtime.consoleAPICalled",): booleanemit(event: "Runtime.inspectRequested",): booleanemit(event: "Debugger.scriptParsed",): booleanemit(event: "Debugger.scriptFailedToParse",): booleanemit(event: "Debugger.breakpointResolved",): booleanemit(event: "Debugger.paused",): booleanemit(event: "Debugger.resumed"): booleanemit(event: "Console.messageAdded",): booleanemit(event: "Profiler.consoleProfileStarted",): booleanemit(event: "Profiler.consoleProfileFinished",): booleanemit(event: "HeapProfiler.addHeapSnapshotChunk",): booleanemit(event: "HeapProfiler.resetProfiles"): booleanemit(event: "HeapProfiler.reportHeapSnapshotProgress",): booleanemit(event: "HeapProfiler.lastSeenObjectId",): booleanemit(event: "HeapProfiler.heapStatsUpdate",): booleanemit(event: "NodeTracing.dataCollected",): booleanemit(event: "NodeTracing.tracingComplete"): booleanemit(event: "NodeWorker.attachedToWorker",): booleanemit(event: "NodeWorker.detachedFromWorker",): booleanemit(event: "NodeWorker.receivedMessageFromWorker",): booleanemit(event: "Network.requestWillBeSent",): booleanemit(event: "Network.responseReceived",): booleanemit(event: "Network.loadingFailed",): booleanemit(event: "Network.loadingFinished",): booleanemit(event: "NodeRuntime.waitingForDisconnect"): booleanemit(event: "NodeRuntime.waitingForDebugger"): booleanon(event: string,listener: (...args: any[]) => void,): thison(event: "inspectorNotification",listener: (message: InspectorNotification<object>) => void,): thisEmitted when any notification from the V8 Inspector is received.
on(event: "Runtime.executionContextCreated",listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void,): thisIssued when new execution context is created.
on(event: "Runtime.executionContextDestroyed",listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void,): thisIssued when execution context is destroyed.
on(event: "Runtime.executionContextsCleared",listener: () => void,): thisIssued when all executionContexts were cleared in browser
on(event: "Runtime.exceptionThrown",listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void,): thisIssued when exception was thrown and unhandled.
on(event: "Runtime.exceptionRevoked",listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void,): thisIssued when unhandled exception was revoked.
on(event: "Runtime.consoleAPICalled",listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void,): thisIssued when console API was called.
on(event: "Runtime.inspectRequested",listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void,): thisIssued 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,): thisFired 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,): thisFired when virtual machine fails to parse the script.
on(event: "Debugger.breakpointResolved",listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void,): thisFired when breakpoint is resolved to an actual script and location.
on(event: "Debugger.paused",listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void,): thisFired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
on(event: "Debugger.resumed",listener: () => void,): thisFired when the virtual machine resumed execution.
on(event: "Console.messageAdded",listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void,): thisIssued when new console message is added.
on(event: "Profiler.consoleProfileStarted",listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void,): thisSent when new profile recording is started using console.profile() call.
on(event: "Profiler.consoleProfileFinished",listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void,): thison(event: "HeapProfiler.addHeapSnapshotChunk",listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void,): thison(event: "HeapProfiler.resetProfiles",listener: () => void,): thison(event: "HeapProfiler.reportHeapSnapshotProgress",listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void,): thison(event: "HeapProfiler.lastSeenObjectId",listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void,): thisIf 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,): thisIf 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,): thisContains an bucket of collected trace events.
on(event: "NodeTracing.tracingComplete",listener: () => void,): thisSignals 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,): thisIssued when attached to a worker.
on(event: "NodeWorker.detachedFromWorker",listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void,): thisIssued when detached from the worker.
on(event: "NodeWorker.receivedMessageFromWorker",listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void,): thisNotifies 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,): thisFired when page is about to send HTTP request.
on(event: "Network.responseReceived",listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void,): thisFired when HTTP response is available.
on(event: "Network.loadingFailed",listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void,): thison(event: "Network.loadingFinished",listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void,): thison(event: "NodeRuntime.waitingForDisconnect",listener: () => void,): thisThis 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.
on(event: "NodeRuntime.waitingForDebugger",listener: () => void,): thisThis event is fired when the runtime is waiting for the debugger. For example, when inspector.waitingForDebugger is called
once(event: string,listener: (...args: any[]) => void,): thisonce(event: "inspectorNotification",listener: (message: InspectorNotification<object>) => void,): thisEmitted when any notification from the V8 Inspector is received.
once(event: "Runtime.executionContextCreated",listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void,): thisIssued when new execution context is created.
once(event: "Runtime.executionContextDestroyed",listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void,): thisIssued when execution context is destroyed.
once(event: "Runtime.executionContextsCleared",listener: () => void,): thisIssued when all executionContexts were cleared in browser
once(event: "Runtime.exceptionThrown",listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void,): thisIssued when exception was thrown and unhandled.
once(event: "Runtime.exceptionRevoked",listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void,): thisIssued when unhandled exception was revoked.
once(event: "Runtime.consoleAPICalled",listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void,): thisIssued when console API was called.
once(event: "Runtime.inspectRequested",listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void,): thisIssued 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,): thisFired 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,): thisFired when virtual machine fails to parse the script.
once(event: "Debugger.breakpointResolved",listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void,): thisFired when breakpoint is resolved to an actual script and location.
once(event: "Debugger.paused",listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void,): thisFired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
once(event: "Debugger.resumed",listener: () => void,): thisFired when the virtual machine resumed execution.
once(event: "Console.messageAdded",listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void,): thisIssued when new console message is added.
once(event: "Profiler.consoleProfileStarted",listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void,): thisSent when new profile recording is started using console.profile() call.
once(event: "Profiler.consoleProfileFinished",listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void,): thisonce(event: "HeapProfiler.addHeapSnapshotChunk",listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void,): thisonce(event: "HeapProfiler.resetProfiles",listener: () => void,): thisonce(event: "HeapProfiler.reportHeapSnapshotProgress",listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void,): thisonce(event: "HeapProfiler.lastSeenObjectId",listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void,): thisIf 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,): thisIf 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,): thisContains an bucket of collected trace events.
once(event: "NodeTracing.tracingComplete",listener: () => void,): thisSignals 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,): thisIssued when attached to a worker.
once(event: "NodeWorker.detachedFromWorker",listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void,): thisIssued when detached from the worker.
once(event: "NodeWorker.receivedMessageFromWorker",listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void,): thisNotifies 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,): thisFired when page is about to send HTTP request.
once(event: "Network.responseReceived",listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void,): thisFired when HTTP response is available.
once(event: "Network.loadingFailed",listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void,): thisonce(event: "Network.loadingFinished",listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void,): thisonce(event: "NodeRuntime.waitingForDisconnect",listener: () => void,): thisThis 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.
once(event: "NodeRuntime.waitingForDebugger",listener: () => void,): thisThis event is fired when the runtime is waiting for the debugger. For example, when inspector.waitingForDebugger is called
post(method: string,callback?: (err: Error | null,params?: object,) => void,): voidPosts 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: string,params?: object,callback?: (err: Error | null,params?: object,) => void,): voidpost(method: "Schema.getDomains",callback?: (err: Error | null,params: Schema.GetDomainsReturnType,) => void,): voidReturns supported domains.
post(method: "Runtime.evaluate",params?: Runtime.EvaluateParameterType,callback?: (err: Error | null,params: Runtime.EvaluateReturnType,) => void,): voidEvaluates expression on global object.
post(method: "Runtime.evaluate",callback?: (err: Error | null,params: Runtime.EvaluateReturnType,) => void,): voidpost(method: "Runtime.awaitPromise",params?: Runtime.AwaitPromiseParameterType,callback?: (err: Error | null,params: Runtime.AwaitPromiseReturnType,) => void,): voidAdd handler to promise with given promise object id.
post(method: "Runtime.awaitPromise",callback?: (err: Error | null,params: Runtime.AwaitPromiseReturnType,) => void,): voidpost(method: "Runtime.callFunctionOn",params?: Runtime.CallFunctionOnParameterType,callback?: (err: Error | null,params: Runtime.CallFunctionOnReturnType,) => void,): voidCalls 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,): voidpost(method: "Runtime.getProperties",params?: Runtime.GetPropertiesParameterType,callback?: (err: Error | null,params: Runtime.GetPropertiesReturnType,) => void,): voidReturns 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,): voidpost(method: "Runtime.releaseObject",params?: Runtime.ReleaseObjectParameterType,callback?: (err: Error | null) => void,): voidReleases remote object with given id.
post(method: "Runtime.releaseObject",callback?: (err: Error | null) => void,): voidpost(method: "Runtime.releaseObjectGroup",params?: Runtime.ReleaseObjectGroupParameterType,callback?: (err: Error | null) => void,): voidReleases all remote objects that belong to a given group.
post(method: "Runtime.releaseObjectGroup",callback?: (err: Error | null) => void,): voidpost(method: "Runtime.runIfWaitingForDebugger",callback?: (err: Error | null) => void,): voidTells inspected instance to run if it was waiting for debugger to attach.
post(method: "Runtime.enable",callback?: (err: Error | null) => void,): voidEnables 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.
post(method: "Runtime.disable",callback?: (err: Error | null) => void,): voidDisables reporting of execution contexts creation.
post(method: "Runtime.discardConsoleEntries",callback?: (err: Error | null) => void,): voidDiscards collected exceptions and console API calls.
post(method: "Runtime.setCustomObjectFormatterEnabled",callback?: (err: Error | null) => void,): voidpost(method: "Runtime.setCustomObjectFormatterEnabled",callback?: (err: Error | null) => void,): voidpost(method: "Runtime.compileScript",params?: Runtime.CompileScriptParameterType,callback?: (err: Error | null,params: Runtime.CompileScriptReturnType,) => void,): voidCompiles expression.
post(method: "Runtime.compileScript",callback?: (err: Error | null,params: Runtime.CompileScriptReturnType,) => void,): voidpost(method: "Runtime.runScript",params?: Runtime.RunScriptParameterType,callback?: (err: Error | null,params: Runtime.RunScriptReturnType,) => void,): voidRuns script with given id in a given context.
post(method: "Runtime.runScript",callback?: (err: Error | null,params: Runtime.RunScriptReturnType,) => void,): voidpost(method: "Runtime.queryObjects",params?: Runtime.QueryObjectsParameterType,callback?: (err: Error | null,params: Runtime.QueryObjectsReturnType,) => void,): voidpost(method: "Runtime.queryObjects",callback?: (err: Error | null,params: Runtime.QueryObjectsReturnType,) => void,): voidpost(method: "Runtime.globalLexicalScopeNames",callback?: (err: Error | null,) => void,): voidReturns all let, const and class variables from global scope.
post(method: "Runtime.globalLexicalScopeNames",callback?: (err: Error | null,) => void,): voidpost(method: "Debugger.enable",callback?: (err: Error | null,params: Debugger.EnableReturnType,) => void,): voidEnables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
post(method: "Debugger.disable",callback?: (err: Error | null) => void,): voidDisables debugger for given page.
post(method: "Debugger.setBreakpointsActive",callback?: (err: Error | null) => void,): voidActivates / deactivates all breakpoints on the page.
post(method: "Debugger.setBreakpointsActive",callback?: (err: Error | null) => void,): voidpost(method: "Debugger.setSkipAllPauses",params?: Debugger.SetSkipAllPausesParameterType,callback?: (err: Error | null) => void,): voidMakes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
post(method: "Debugger.setSkipAllPauses",callback?: (err: Error | null) => void,): voidpost(method: "Debugger.setBreakpointByUrl",params?: Debugger.SetBreakpointByUrlParameterType,callback?: (err: Error | null,) => void,): voidSets 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.setBreakpointByUrl",callback?: (err: Error | null,) => void,): voidpost(method: "Debugger.setBreakpoint",params?: Debugger.SetBreakpointParameterType,callback?: (err: Error | null,params: Debugger.SetBreakpointReturnType,) => void,): voidSets JavaScript breakpoint at a given location.
post(method: "Debugger.setBreakpoint",callback?: (err: Error | null,params: Debugger.SetBreakpointReturnType,) => void,): voidpost(method: "Debugger.removeBreakpoint",params?: Debugger.RemoveBreakpointParameterType,callback?: (err: Error | null) => void,): voidRemoves JavaScript breakpoint.
post(method: "Debugger.removeBreakpoint",callback?: (err: Error | null) => void,): voidpost(method: "Debugger.getPossibleBreakpoints",callback?: (err: Error | null,) => void,): voidReturns possible locations for breakpoint. scriptId in start and end range locations should be the same.
post(method: "Debugger.getPossibleBreakpoints",callback?: (err: Error | null,) => void,): voidpost(method: "Debugger.continueToLocation",params?: Debugger.ContinueToLocationParameterType,callback?: (err: Error | null) => void,): voidContinues execution until specific location is reached.
post(method: "Debugger.continueToLocation",callback?: (err: Error | null) => void,): voidpost(method: "Debugger.pauseOnAsyncCall",params?: Debugger.PauseOnAsyncCallParameterType,callback?: (err: Error | null) => void,): voidpost(method: "Debugger.pauseOnAsyncCall",callback?: (err: Error | null) => void,): voidpost(method: "Debugger.stepOver",callback?: (err: Error | null) => void,): voidSteps over the statement.
post(method: "Debugger.stepInto",params?: Debugger.StepIntoParameterType,callback?: (err: Error | null) => void,): voidSteps into the function call.
post(method: "Debugger.stepInto",callback?: (err: Error | null) => void,): voidpost(method: "Debugger.stepOut",callback?: (err: Error | null) => void,): voidSteps out of the function call.
post(method: "Debugger.pause",callback?: (err: Error | null) => void,): voidStops on the next JavaScript statement.
post(method: "Debugger.scheduleStepIntoAsync",callback?: (err: Error | null) => void,): voidThis 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.
post(method: "Debugger.resume",callback?: (err: Error | null) => void,): voidResumes JavaScript execution.
post(method: "Debugger.getStackTrace",params?: Debugger.GetStackTraceParameterType,callback?: (err: Error | null,params: Debugger.GetStackTraceReturnType,) => void,): voidReturns stack trace with given stackTraceId.
post(method: "Debugger.getStackTrace",callback?: (err: Error | null,params: Debugger.GetStackTraceReturnType,) => void,): voidpost(method: "Debugger.searchInContent",params?: Debugger.SearchInContentParameterType,callback?: (err: Error | null,params: Debugger.SearchInContentReturnType,) => void,): voidSearches for given string in script content.
post(method: "Debugger.searchInContent",callback?: (err: Error | null,params: Debugger.SearchInContentReturnType,) => void,): voidpost(method: "Debugger.setScriptSource",params?: Debugger.SetScriptSourceParameterType,callback?: (err: Error | null,params: Debugger.SetScriptSourceReturnType,) => void,): voidEdits JavaScript source live.
post(method: "Debugger.setScriptSource",callback?: (err: Error | null,params: Debugger.SetScriptSourceReturnType,) => void,): voidpost(method: "Debugger.restartFrame",params?: Debugger.RestartFrameParameterType,callback?: (err: Error | null,params: Debugger.RestartFrameReturnType,) => void,): voidRestarts particular call frame from the beginning.
post(method: "Debugger.restartFrame",callback?: (err: Error | null,params: Debugger.RestartFrameReturnType,) => void,): voidpost(method: "Debugger.getScriptSource",params?: Debugger.GetScriptSourceParameterType,callback?: (err: Error | null,params: Debugger.GetScriptSourceReturnType,) => void,): voidReturns source for the script with given id.
post(method: "Debugger.getScriptSource",callback?: (err: Error | null,params: Debugger.GetScriptSourceReturnType,) => void,): voidpost(method: "Debugger.setPauseOnExceptions",callback?: (err: Error | null) => void,): voidDefines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is none.
post(method: "Debugger.setPauseOnExceptions",callback?: (err: Error | null) => void,): voidpost(method: "Debugger.evaluateOnCallFrame",callback?: (err: Error | null,) => void,): voidEvaluates expression on a given call frame.
post(method: "Debugger.evaluateOnCallFrame",callback?: (err: Error | null,) => void,): voidpost(method: "Debugger.setVariableValue",params?: Debugger.SetVariableValueParameterType,callback?: (err: Error | null) => void,): voidChanges value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
post(method: "Debugger.setVariableValue",callback?: (err: Error | null) => void,): voidpost(method: "Debugger.setReturnValue",params?: Debugger.SetReturnValueParameterType,callback?: (err: Error | null) => void,): voidChanges return value in top frame. Available only at return break position.
post(method: "Debugger.setReturnValue",callback?: (err: Error | null) => void,): voidpost(method: "Debugger.setAsyncCallStackDepth",callback?: (err: Error | null) => void,): voidEnables or disables async call stacks tracking.
post(method: "Debugger.setAsyncCallStackDepth",callback?: (err: Error | null) => void,): voidpost(method: "Debugger.setBlackboxPatterns",callback?: (err: Error | null) => void,): voidReplace 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.
post(method: "Debugger.setBlackboxPatterns",callback?: (err: Error | null) => void,): voidpost(method: "Debugger.setBlackboxedRanges",callback?: (err: Error | null) => void,): voidMakes 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.
post(method: "Debugger.setBlackboxedRanges",callback?: (err: Error | null) => void,): voidpost(method: "Console.enable",callback?: (err: Error | null) => void,): voidEnables console domain, sends the messages collected so far to the client by means of the messageAdded notification.
post(method: "Console.disable",callback?: (err: Error | null) => void,): voidDisables console domain, prevents further console messages from being reported to the client.
post(method: "Console.clearMessages",callback?: (err: Error | null) => void,): voidDoes nothing.
post(method: "Profiler.enable",callback?: (err: Error | null) => void,): voidpost(method: "Profiler.disable",callback?: (err: Error | null) => void,): voidpost(method: "Profiler.setSamplingInterval",callback?: (err: Error | null) => void,): voidChanges CPU profiler sampling interval. Must be called before CPU profiles recording started.
post(method: "Profiler.setSamplingInterval",callback?: (err: Error | null) => void,): voidpost(method: "Profiler.start",callback?: (err: Error | null) => void,): voidpost(method: "Profiler.stop",callback?: (err: Error | null,params: Profiler.StopReturnType,) => void,): voidpost(method: "Profiler.startPreciseCoverage",callback?: (err: Error | null) => void,): voidEnable 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.
post(method: "Profiler.startPreciseCoverage",callback?: (err: Error | null) => void,): voidpost(method: "Profiler.stopPreciseCoverage",callback?: (err: Error | null) => void,): voidDisable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
post(method: "Profiler.takePreciseCoverage",callback?: (err: Error | null,) => void,): voidCollect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
post(method: "Profiler.getBestEffortCoverage",callback?: (err: Error | null,) => void,): voidCollect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
post(method: "HeapProfiler.enable",callback?: (err: Error | null) => void,): voidpost(method: "HeapProfiler.disable",callback?: (err: Error | null) => void,): voidpost(method: "HeapProfiler.startTrackingHeapObjects",callback?: (err: Error | null) => void,): voidpost(method: "HeapProfiler.startTrackingHeapObjects",callback?: (err: Error | null) => void,): voidpost(method: "HeapProfiler.stopTrackingHeapObjects",callback?: (err: Error | null) => void,): voidpost(method: "HeapProfiler.stopTrackingHeapObjects",callback?: (err: Error | null) => void,): voidpost(method: "HeapProfiler.takeHeapSnapshot",callback?: (err: Error | null) => void,): voidpost(method: "HeapProfiler.takeHeapSnapshot",callback?: (err: Error | null) => void,): voidpost(method: "HeapProfiler.collectGarbage",callback?: (err: Error | null) => void,): voidpost(method: "HeapProfiler.getObjectByHeapObjectId",callback?: (err: Error | null,) => void,): voidpost(method: "HeapProfiler.getObjectByHeapObjectId",callback?: (err: Error | null,) => void,): voidpost(method: "HeapProfiler.addInspectedHeapObject",callback?: (err: Error | null) => void,): voidEnables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
post(method: "HeapProfiler.addInspectedHeapObject",callback?: (err: Error | null) => void,): voidpost(method: "HeapProfiler.getHeapObjectId",callback?: (err: Error | null,) => void,): voidpost(method: "HeapProfiler.getHeapObjectId",callback?: (err: Error | null,) => void,): voidpost(method: "HeapProfiler.startSampling",params?: HeapProfiler.StartSamplingParameterType,callback?: (err: Error | null) => void,): voidpost(method: "HeapProfiler.startSampling",callback?: (err: Error | null) => void,): voidpost(method: "HeapProfiler.stopSampling",callback?: (err: Error | null,params: HeapProfiler.StopSamplingReturnType,) => void,): voidpost(method: "HeapProfiler.getSamplingProfile",callback?: (err: Error | null,) => void,): voidpost(method: "NodeTracing.getCategories",callback?: (err: Error | null,params: NodeTracing.GetCategoriesReturnType,) => void,): voidGets supported tracing categories.
post(method: "NodeTracing.start",params?: NodeTracing.StartParameterType,callback?: (err: Error | null) => void,): voidStart trace events collection.
post(method: "NodeTracing.start",callback?: (err: Error | null) => void,): voidpost(method: "NodeTracing.stop",callback?: (err: Error | null) => void,): voidStop trace events collection. Remaining collected events will be sent as a sequence of dataCollected events followed by tracingComplete event.
post(method: "NodeWorker.sendMessageToWorker",callback?: (err: Error | null) => void,): voidSends protocol message over session with given id.
post(method: "NodeWorker.sendMessageToWorker",callback?: (err: Error | null) => void,): voidpost(method: "NodeWorker.enable",params?: NodeWorker.EnableParameterType,callback?: (err: Error | null) => void,): voidInstructs the inspector to attach to running workers. Will also attach to new workers as they start
post(method: "NodeWorker.enable",callback?: (err: Error | null) => void,): voidpost(method: "NodeWorker.disable",callback?: (err: Error | null) => void,): voidDetaches 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,): voidDetached from the worker with given sessionId.
post(method: "NodeWorker.detach",callback?: (err: Error | null) => void,): voidpost(method: "Network.disable",callback?: (err: Error | null) => void,): voidDisables network tracking, prevents network events from being sent to the client.
post(method: "Network.enable",callback?: (err: Error | null) => void,): voidEnables network tracking, network events will now be delivered to the client.
post(method: "NodeRuntime.enable",callback?: (err: Error | null) => void,): voidEnable the NodeRuntime events except by NodeRuntime.waitingForDisconnect.
post(method: "NodeRuntime.disable",callback?: (err: Error | null) => void,): voidDisable NodeRuntime events
post(method: "NodeRuntime.notifyWhenWaitingForDisconnect",callback?: (err: Error | null) => void,): voidEnable the NodeRuntime.waitingForDisconnect.
post(method: "NodeRuntime.notifyWhenWaitingForDisconnect",callback?: (err: Error | null) => void,): voidprependListener(event: string,listener: (...args: any[]) => void,): thisprependListener(event: "inspectorNotification",listener: (message: InspectorNotification<object>) => void,): thisEmitted when any notification from the V8 Inspector is received.
prependListener(event: "Runtime.executionContextCreated",listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void,): thisIssued when new execution context is created.
prependListener(event: "Runtime.executionContextDestroyed",listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void,): thisIssued when execution context is destroyed.
prependListener(event: "Runtime.executionContextsCleared",listener: () => void,): thisIssued when all executionContexts were cleared in browser
prependListener(event: "Runtime.exceptionThrown",listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void,): thisIssued when exception was thrown and unhandled.
prependListener(event: "Runtime.exceptionRevoked",listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void,): thisIssued when unhandled exception was revoked.
prependListener(event: "Runtime.consoleAPICalled",listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void,): thisIssued when console API was called.
prependListener(event: "Runtime.inspectRequested",listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void,): thisIssued 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,): thisFired 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,): thisFired when virtual machine fails to parse the script.
prependListener(event: "Debugger.breakpointResolved",listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void,): thisFired when breakpoint is resolved to an actual script and location.
prependListener(event: "Debugger.paused",listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void,): thisFired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
prependListener(event: "Debugger.resumed",listener: () => void,): thisFired when the virtual machine resumed execution.
prependListener(event: "Console.messageAdded",listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void,): thisIssued when new console message is added.
prependListener(event: "Profiler.consoleProfileStarted",listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void,): thisSent when new profile recording is started using console.profile() call.
prependListener(event: "Profiler.consoleProfileFinished",listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void,): thisprependListener(event: "HeapProfiler.addHeapSnapshotChunk",listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void,): thisprependListener(event: "HeapProfiler.resetProfiles",listener: () => void,): thisprependListener(event: "HeapProfiler.reportHeapSnapshotProgress",listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void,): thisprependListener(event: "HeapProfiler.lastSeenObjectId",listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void,): thisIf 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,): thisIf 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,): thisContains an bucket of collected trace events.
prependListener(event: "NodeTracing.tracingComplete",listener: () => void,): thisSignals 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,): thisIssued when attached to a worker.
prependListener(event: "NodeWorker.detachedFromWorker",listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void,): thisIssued when detached from the worker.
prependListener(event: "NodeWorker.receivedMessageFromWorker",listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void,): thisNotifies 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,): thisFired when page is about to send HTTP request.
prependListener(event: "Network.responseReceived",listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void,): thisFired when HTTP response is available.
prependListener(event: "Network.loadingFailed",listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void,): thisprependListener(event: "Network.loadingFinished",listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void,): thisprependListener(event: "NodeRuntime.waitingForDisconnect",listener: () => void,): thisThis 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,): thisThis 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,): thisprependOnceListener(event: "inspectorNotification",listener: (message: InspectorNotification<object>) => void,): thisEmitted when any notification from the V8 Inspector is received.
prependOnceListener(event: "Runtime.executionContextCreated",listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void,): thisIssued when new execution context is created.
prependOnceListener(event: "Runtime.executionContextDestroyed",listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void,): thisIssued when execution context is destroyed.
prependOnceListener(event: "Runtime.executionContextsCleared",listener: () => void,): thisIssued when all executionContexts were cleared in browser
prependOnceListener(event: "Runtime.exceptionThrown",listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void,): thisIssued when exception was thrown and unhandled.
prependOnceListener(event: "Runtime.exceptionRevoked",listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void,): thisIssued when unhandled exception was revoked.
prependOnceListener(event: "Runtime.consoleAPICalled",listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void,): thisIssued when console API was called.
prependOnceListener(event: "Runtime.inspectRequested",listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void,): thisIssued 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,): thisFired 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,): thisFired when virtual machine fails to parse the script.
prependOnceListener(event: "Debugger.breakpointResolved",listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void,): thisFired when breakpoint is resolved to an actual script and location.
prependOnceListener(event: "Debugger.paused",listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void,): thisFired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
prependOnceListener(event: "Debugger.resumed",listener: () => void,): thisFired when the virtual machine resumed execution.
prependOnceListener(event: "Console.messageAdded",listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void,): thisIssued when new console message is added.
prependOnceListener(event: "Profiler.consoleProfileStarted",listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void,): thisSent when new profile recording is started using console.profile() call.
prependOnceListener(event: "Profiler.consoleProfileFinished",listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void,): thisprependOnceListener(event: "HeapProfiler.addHeapSnapshotChunk",listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void,): thisprependOnceListener(event: "HeapProfiler.resetProfiles",listener: () => void,): thisprependOnceListener(event: "HeapProfiler.reportHeapSnapshotProgress",listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void,): thisprependOnceListener(event: "HeapProfiler.lastSeenObjectId",listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void,): thisIf 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,): thisIf 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,): thisContains an bucket of collected trace events.
prependOnceListener(event: "NodeTracing.tracingComplete",listener: () => void,): thisSignals 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,): thisIssued when attached to a worker.
prependOnceListener(event: "NodeWorker.detachedFromWorker",listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void,): thisIssued when detached from the worker.
prependOnceListener(event: "NodeWorker.receivedMessageFromWorker",listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void,): thisNotifies 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,): thisFired when page is about to send HTTP request.
prependOnceListener(event: "Network.responseReceived",listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void,): thisFired when HTTP response is available.
prependOnceListener(event: "Network.loadingFailed",listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void,): thisprependOnceListener(event: "Network.loadingFinished",listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void,): thisprependOnceListener(event: "NodeRuntime.waitingForDisconnect",listener: () => void,): thisThis 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,): thisThis event is fired when the runtime is waiting for the debugger. For example, when inspector.waitingForDebugger is called