Jump to headingSession.prototype.on(event: string,listener: (...args: any[]) => void,): this
Parameters Jump to heading
Jump to headingevent: string
Jump to headinglistener: (...args: any[]) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "inspectorNotification",listener: (message: InspectorNotification<object>) => void,): this
Emitted when any notification from the V8 Inspector is received.
Parameters Jump to heading
Jump to headingevent: "inspectorNotification"
Jump to headinglistener: (message: InspectorNotification<object>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "Runtime.executionContextCreated",listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void,): this
Issued when new execution context is created.
Parameters Jump to heading
Jump to headingevent: "Runtime.executionContextCreated"
Jump to headinglistener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "Runtime.executionContextDestroyed",listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void,): this
Issued when execution context is destroyed.
Parameters Jump to heading
Jump to headingevent: "Runtime.executionContextDestroyed"
Jump to headinglistener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "Runtime.executionContextsCleared",listener: () => void,): this
Issued when all executionContexts were cleared in browser
Parameters Jump to heading
Jump to headingevent: "Runtime.executionContextsCleared"
Jump to headinglistener: () => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "Runtime.exceptionThrown",listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void,): this
Issued when exception was thrown and unhandled.
Parameters Jump to heading
Jump to headingevent: "Runtime.exceptionThrown"
Jump to headinglistener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "Runtime.exceptionRevoked",listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void,): this
Issued when unhandled exception was revoked.
Parameters Jump to heading
Jump to headingevent: "Runtime.exceptionRevoked"
Jump to headinglistener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "Runtime.consoleAPICalled",listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void,): this
Issued when console API was called.
Parameters Jump to heading
Jump to headingevent: "Runtime.consoleAPICalled"
Jump to headinglistener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.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).
Parameters Jump to heading
Jump to headingevent: "Runtime.inspectRequested"
Jump to headinglistener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.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.
Parameters Jump to heading
Jump to headingevent: "Debugger.scriptParsed"
Jump to headinglistener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "Debugger.scriptFailedToParse",listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void,): this
Fired when virtual machine fails to parse the script.
Parameters Jump to heading
Jump to headingevent: "Debugger.scriptFailedToParse"
Jump to headinglistener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "Debugger.breakpointResolved",listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void,): this
Fired when breakpoint is resolved to an actual script and location.
Parameters Jump to heading
Jump to headingevent: "Debugger.breakpointResolved"
Jump to headinglistener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.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.
Parameters Jump to heading
Jump to headingevent: "Debugger.paused"
Jump to headinglistener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "Debugger.resumed",listener: () => void,): this
Fired when the virtual machine resumed execution.
Parameters Jump to heading
Jump to headingevent: "Debugger.resumed"
Jump to headinglistener: () => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "Console.messageAdded",listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void,): this
Issued when new console message is added.
Parameters Jump to heading
Jump to headingevent: "Console.messageAdded"
Jump to headinglistener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "Profiler.consoleProfileStarted",listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void,): this
Sent when new profile recording is started using console.profile() call.
Parameters Jump to heading
Jump to headingevent: "Profiler.consoleProfileStarted"
Jump to headinglistener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "Profiler.consoleProfileFinished",listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void,): this
Parameters Jump to heading
Jump to headingevent: "Profiler.consoleProfileFinished"
Jump to headinglistener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "HeapProfiler.addHeapSnapshotChunk",listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void,): this
Parameters Jump to heading
Jump to headingevent: "HeapProfiler.addHeapSnapshotChunk"
Jump to headinglistener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "HeapProfiler.resetProfiles",listener: () => void,): this
Parameters Jump to heading
Jump to headingevent: "HeapProfiler.resetProfiles"
Jump to headinglistener: () => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "HeapProfiler.reportHeapSnapshotProgress",listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void,): this
Parameters Jump to heading
Jump to headingevent: "HeapProfiler.reportHeapSnapshotProgress"
Jump to headinglistener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.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.
Parameters Jump to heading
Jump to headingevent: "HeapProfiler.lastSeenObjectId"
Jump to headinglistener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.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
Parameters Jump to heading
Jump to headingevent: "HeapProfiler.heapStatsUpdate"
Jump to headinglistener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "NodeTracing.dataCollected",listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void,): this
Contains an bucket of collected trace events.
Parameters Jump to heading
Jump to headingevent: "NodeTracing.dataCollected"
Jump to headinglistener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(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.
Parameters Jump to heading
Jump to headingevent: "NodeTracing.tracingComplete"
Jump to headinglistener: () => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "NodeWorker.attachedToWorker",listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void,): this
Issued when attached to a worker.
Parameters Jump to heading
Jump to headingevent: "NodeWorker.attachedToWorker"
Jump to headinglistener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "NodeWorker.detachedFromWorker",listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void,): this
Issued when detached from the worker.
Parameters Jump to heading
Jump to headingevent: "NodeWorker.detachedFromWorker"
Jump to headinglistener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.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).
Parameters Jump to heading
Jump to headingevent: "NodeWorker.receivedMessageFromWorker"
Jump to headinglistener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "Network.requestWillBeSent",listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void,): this
Fired when page is about to send HTTP request.
Parameters Jump to heading
Jump to headingevent: "Network.requestWillBeSent"
Jump to headinglistener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "Network.responseReceived",listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void,): this
Fired when HTTP response is available.
Parameters Jump to heading
Jump to headingevent: "Network.responseReceived"
Jump to headinglistener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "Network.loadingFailed",listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void,): this
Parameters Jump to heading
Jump to headingevent: "Network.loadingFailed"
Jump to headinglistener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(event: "Network.loadingFinished",listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void,): this
Parameters Jump to heading
Jump to headingevent: "Network.loadingFinished"
Jump to headinglistener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(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.
Parameters Jump to heading
Jump to headingevent: "NodeRuntime.waitingForDisconnect"
Jump to headinglistener: () => void
Return Type Jump to heading
this
Jump to headingSession.prototype.on(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
Parameters Jump to heading
Jump to headingevent: "NodeRuntime.waitingForDebugger"
Jump to headinglistener: () => void
Return Type Jump to heading
this