prependListener

fun prependListener(event: String, listener: Function<Unit>)(source)


Emitted when any notification from the V8 Inspector is received.


Issued when new execution context is created.


Issued when execution context is destroyed.


Issued when all executionContexts were cleared in browser


Issued when exception was thrown and unhandled.


Issued when unhandled exception was revoked.


Issued when console API was called.


Issued when object should be inspected (for example, as a result of inspect() command line API call).


Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.


Fired when virtual machine fails to parse the script.


Fired when breakpoint is resolved to an actual script and location.


Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.


Fired when the virtual machine resumed execution.


Issued when new console message is added.


Sent when new profile recording is started using console.profile() call.


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.


If heap objects tracking has been started then backend may send update for one or more fragments


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.


Issued when attached to a worker.


Issued when detached from the worker.


Notifies about a new protocol message received from the session (session ID is provided in attachedToWorker notification).


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