Usage in Deno
import { Session } from "node:inspector";
Session.prototype.prependListener(event: "inspectorNotification",listener: (message: InspectorNotification<object>) => void,): this
Emitted when any notification from the V8 Inspector is received.
listener: (message: InspectorNotification<object>) => void
this
Session.prototype.prependListener(event: "Runtime.executionContextCreated",listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void,): this
Issued when new execution context is created.
listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void
this
Session.prototype.prependListener(event: "Runtime.executionContextDestroyed",listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void,): this
Issued when execution context is destroyed.
listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void
this
Session.prototype.prependListener(event: "Runtime.executionContextsCleared",listener: () => void,): this
Session.prototype.prependListener(event: "Runtime.exceptionThrown",listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void,): this
Issued when exception was thrown and unhandled.
listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void
this
Session.prototype.prependListener(event: "Runtime.exceptionRevoked",listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void,): this
Issued when unhandled exception was revoked.
listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void
this
Session.prototype.prependListener(event: "Runtime.consoleAPICalled",listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void,): this
Issued when console API was called.
listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void
this
Session.prototype.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).
listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void
this
Session.prototype.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.
listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void
this
Session.prototype.prependListener(event: "Debugger.scriptFailedToParse",listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void,): this
Fired when virtual machine fails to parse the script.
listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void
this
Session.prototype.prependListener(event: "Debugger.breakpointResolved",listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void,): this
Fired when breakpoint is resolved to an actual script and location.
listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void
this
Session.prototype.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.
listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void
this
Session.prototype.prependListener(event: "Console.messageAdded",listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void,): this
Issued when new console message is added.
listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void
this
Session.prototype.prependListener(event: "Profiler.consoleProfileStarted",listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void,): this
Sent when new profile recording is started using console.profile() call.
listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void
this
Session.prototype.prependListener(event: "Profiler.consoleProfileFinished",listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void,): this
listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void
this
Session.prototype.prependListener(event: "HeapProfiler.addHeapSnapshotChunk",listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void,): this
listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void
this
Session.prototype.prependListener(event: "HeapProfiler.reportHeapSnapshotProgress",listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void,): this
listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void
this
Session.prototype.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.
listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void
this
Session.prototype.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
listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void
this
Session.prototype.prependListener(event: "NodeTracing.dataCollected",listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void,): this
Contains an bucket of collected trace events.
listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void
this
Session.prototype.prependListener(event: "NodeWorker.attachedToWorker",listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void,): this
Issued when attached to a worker.
listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void
this
Session.prototype.prependListener(event: "NodeWorker.detachedFromWorker",listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void,): this
Issued when detached from the worker.
listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void
this
Session.prototype.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).
listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void
this
Session.prototype.prependListener(event: "Network.requestWillBeSent",listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void,): this
Fired when page is about to send HTTP request.
listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void
this
Session.prototype.prependListener(event: "Network.responseReceived",listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void,): this
Fired when HTTP response is available.
listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void
this
Session.prototype.prependListener(event: "Network.loadingFailed",listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void,): this
listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void
this
Session.prototype.prependListener(event: "Network.loadingFinished",listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void,): this
listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void
this
Session.prototype.prependListener(event: "NodeRuntime.waitingForDisconnect",listener: () => void,): this