@chainlink/external-adapter-framework 2.7.2 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/adapter/basic.js +21 -4
- package/adapter/basic.js.map +1 -1
- package/adapter/endpoint.js +13 -0
- package/adapter/endpoint.js.map +1 -1
- package/adapter/por.js +6 -6
- package/adapter/por.js.map +1 -1
- package/adapter/price.js +1 -0
- package/adapter/price.js.map +1 -1
- package/cache/local.js +5 -1
- package/cache/local.js.map +1 -1
- package/cache/redis.js +3 -1
- package/cache/redis.js.map +1 -1
- package/cache/response.js +5 -0
- package/cache/response.js.map +1 -1
- package/config/index.js +9 -6
- package/config/index.js.map +1 -1
- package/generator-adapter/node_modules/.yarn-integrity +4 -4
- package/generator-adapter/node_modules/@types/node/README.md +3 -3
- package/generator-adapter/node_modules/@types/node/assert/strict.d.ts +105 -2
- package/generator-adapter/node_modules/@types/node/assert.d.ts +162 -101
- package/generator-adapter/node_modules/@types/node/async_hooks.d.ts +25 -5
- package/generator-adapter/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/generator-adapter/node_modules/@types/node/buffer.d.ts +9 -5
- package/generator-adapter/node_modules/@types/node/child_process.d.ts +67 -44
- package/generator-adapter/node_modules/@types/node/cluster.d.ts +19 -20
- package/generator-adapter/node_modules/@types/node/compatibility/iterators.d.ts +1 -0
- package/generator-adapter/node_modules/@types/node/console.d.ts +19 -18
- package/generator-adapter/node_modules/@types/node/crypto.d.ts +1247 -355
- package/generator-adapter/node_modules/@types/node/dgram.d.ts +10 -9
- package/generator-adapter/node_modules/@types/node/diagnostics_channel.d.ts +1 -3
- package/generator-adapter/node_modules/@types/node/dns/promises.d.ts +1 -1
- package/generator-adapter/node_modules/@types/node/dns.d.ts +23 -18
- package/generator-adapter/node_modules/@types/node/domain.d.ts +1 -1
- package/generator-adapter/node_modules/@types/node/events.d.ts +81 -35
- package/generator-adapter/node_modules/@types/node/fs/promises.d.ts +62 -22
- package/generator-adapter/node_modules/@types/node/fs.d.ts +364 -98
- package/generator-adapter/node_modules/@types/node/globals.d.ts +4 -4
- package/generator-adapter/node_modules/@types/node/globals.typedarray.d.ts +20 -0
- package/generator-adapter/node_modules/@types/node/http.d.ts +120 -32
- package/generator-adapter/node_modules/@types/node/http2.d.ts +185 -65
- package/generator-adapter/node_modules/@types/node/https.d.ts +92 -63
- package/generator-adapter/node_modules/@types/node/index.d.ts +10 -5
- package/generator-adapter/node_modules/@types/node/inspector.d.ts +277 -0
- package/generator-adapter/node_modules/@types/node/inspector.generated.d.ts +908 -886
- package/generator-adapter/node_modules/@types/node/module.d.ts +21 -18
- package/generator-adapter/node_modules/@types/node/net.d.ts +35 -16
- package/generator-adapter/node_modules/@types/node/os.d.ts +22 -10
- package/generator-adapter/node_modules/@types/node/package.json +13 -3
- package/generator-adapter/node_modules/@types/node/path.d.ts +1 -1
- package/generator-adapter/node_modules/@types/node/perf_hooks.d.ts +28 -16
- package/generator-adapter/node_modules/@types/node/process.d.ts +30 -30
- package/generator-adapter/node_modules/@types/node/punycode.d.ts +1 -1
- package/generator-adapter/node_modules/@types/node/querystring.d.ts +1 -1
- package/generator-adapter/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/generator-adapter/node_modules/@types/node/readline.d.ts +13 -13
- package/generator-adapter/node_modules/@types/node/repl.d.ts +23 -13
- package/generator-adapter/node_modules/@types/node/sea.d.ts +10 -1
- package/generator-adapter/node_modules/@types/node/sqlite.d.ts +245 -23
- package/generator-adapter/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/generator-adapter/node_modules/@types/node/stream/web.d.ts +6 -55
- package/generator-adapter/node_modules/@types/node/stream.d.ts +63 -37
- package/generator-adapter/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/generator-adapter/node_modules/@types/node/test.d.ts +196 -40
- package/generator-adapter/node_modules/@types/node/timers/promises.d.ts +1 -1
- package/generator-adapter/node_modules/@types/node/timers.d.ts +1 -3
- package/generator-adapter/node_modules/@types/node/tls.d.ts +124 -114
- package/generator-adapter/node_modules/@types/node/trace_events.d.ts +6 -6
- package/generator-adapter/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/generator-adapter/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/generator-adapter/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +17 -0
- package/generator-adapter/node_modules/@types/node/ts5.6/index.d.ts +12 -5
- package/generator-adapter/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/generator-adapter/node_modules/@types/node/ts5.7/index.d.ts +103 -0
- package/generator-adapter/node_modules/@types/node/tty.d.ts +1 -1
- package/generator-adapter/node_modules/@types/node/url.d.ts +109 -33
- package/generator-adapter/node_modules/@types/node/util.d.ts +31 -305
- package/generator-adapter/node_modules/@types/node/v8.d.ts +41 -8
- package/generator-adapter/node_modules/@types/node/vm.d.ts +258 -107
- package/generator-adapter/node_modules/@types/node/wasi.d.ts +23 -2
- package/generator-adapter/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
- package/generator-adapter/node_modules/@types/node/web-globals/events.d.ts +3 -0
- package/generator-adapter/node_modules/@types/node/web-globals/fetch.d.ts +4 -0
- package/generator-adapter/node_modules/@types/node/web-globals/navigator.d.ts +3 -0
- package/generator-adapter/node_modules/@types/node/web-globals/streams.d.ts +22 -0
- package/generator-adapter/node_modules/@types/node/worker_threads.d.ts +142 -51
- package/generator-adapter/node_modules/@types/node/zlib.d.ts +36 -31
- package/generator-adapter/node_modules/undici-types/agent.d.ts +12 -11
- package/generator-adapter/node_modules/undici-types/api.d.ts +24 -24
- package/generator-adapter/node_modules/undici-types/balanced-pool.d.ts +11 -11
- package/generator-adapter/node_modules/undici-types/cache-interceptor.d.ts +172 -0
- package/generator-adapter/node_modules/undici-types/client-stats.d.ts +15 -0
- package/generator-adapter/node_modules/undici-types/client.d.ts +18 -18
- package/generator-adapter/node_modules/undici-types/cookies.d.ts +2 -0
- package/generator-adapter/node_modules/undici-types/diagnostics-channel.d.ts +18 -10
- package/generator-adapter/node_modules/undici-types/dispatcher.d.ts +119 -99
- package/generator-adapter/node_modules/undici-types/env-http-proxy-agent.d.ts +4 -3
- package/generator-adapter/node_modules/undici-types/errors.d.ts +66 -54
- package/generator-adapter/node_modules/undici-types/eventsource.d.ts +9 -4
- package/generator-adapter/node_modules/undici-types/fetch.d.ts +18 -16
- package/generator-adapter/node_modules/undici-types/formdata.d.ts +7 -7
- package/generator-adapter/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/generator-adapter/node_modules/undici-types/global-origin.d.ts +5 -5
- package/generator-adapter/node_modules/undici-types/h2c-client.d.ts +73 -0
- package/generator-adapter/node_modules/undici-types/handlers.d.ts +8 -8
- package/generator-adapter/node_modules/undici-types/header.d.ts +157 -1
- package/generator-adapter/node_modules/undici-types/index.d.ts +56 -47
- package/generator-adapter/node_modules/undici-types/interceptors.d.ts +30 -8
- package/generator-adapter/node_modules/undici-types/mock-agent.d.ts +36 -18
- package/generator-adapter/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/generator-adapter/node_modules/undici-types/mock-client.d.ts +6 -4
- package/generator-adapter/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/generator-adapter/node_modules/undici-types/mock-interceptor.d.ts +21 -20
- package/generator-adapter/node_modules/undici-types/mock-pool.d.ts +6 -4
- package/generator-adapter/node_modules/undici-types/package.json +1 -1
- package/generator-adapter/node_modules/undici-types/patch.d.ts +0 -4
- package/generator-adapter/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/generator-adapter/node_modules/undici-types/pool.d.ts +14 -12
- package/generator-adapter/node_modules/undici-types/proxy-agent.d.ts +5 -4
- package/generator-adapter/node_modules/undici-types/readable.d.ts +18 -15
- package/generator-adapter/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/generator-adapter/node_modules/undici-types/retry-handler.d.ts +19 -10
- package/generator-adapter/node_modules/undici-types/snapshot-agent.d.ts +109 -0
- package/generator-adapter/node_modules/undici-types/util.d.ts +3 -3
- package/generator-adapter/node_modules/undici-types/utility.d.ts +7 -0
- package/generator-adapter/node_modules/undici-types/webidl.d.ts +142 -29
- package/generator-adapter/node_modules/undici-types/websocket.d.ts +38 -2
- package/generator-adapter/package.json +1 -1
- package/metrics/index.js +3 -0
- package/metrics/index.js.map +1 -1
- package/package.json +9 -9
- package/rate-limiting/burst.js +6 -6
- package/rate-limiting/burst.js.map +1 -1
- package/rate-limiting/fixed-interval.js +2 -3
- package/rate-limiting/fixed-interval.js.map +1 -1
- package/transports/abstract/streaming.js +7 -10
- package/transports/abstract/streaming.js.map +1 -1
- package/transports/abstract/subscription.js +4 -0
- package/transports/abstract/subscription.js.map +1 -1
- package/transports/http.js +5 -3
- package/transports/http.js.map +1 -1
- package/transports/index.js +1 -3
- package/transports/index.js.map +1 -1
- package/transports/sse.js +6 -2
- package/transports/sse.js.map +1 -1
- package/transports/websocket.d.ts +9 -1
- package/transports/websocket.js +41 -65
- package/transports/websocket.js.map +1 -1
- package/util/censor/censor-list.js +1 -1
- package/util/censor/censor-list.js.map +1 -1
- package/util/group-runner.js +3 -2
- package/util/group-runner.js.map +1 -1
- package/util/index.js +8 -1
- package/util/index.js.map +1 -1
- package/util/logger.js +8 -1
- package/util/logger.js.map +1 -1
- package/util/requester.js +11 -3
- package/util/requester.js.map +1 -1
- package/util/subscription-set/expiring-sorted-set.js +3 -0
- package/util/subscription-set/expiring-sorted-set.js.map +1 -1
- package/util/subscription-set/redis-sorted-set.js +3 -0
- package/util/subscription-set/redis-sorted-set.js.map +1 -1
- package/util/subscription-set/subscription-set.js +5 -0
- package/util/subscription-set/subscription-set.js.map +1 -1
- package/util/testing-utils.js +13 -6
- package/util/testing-utils.js.map +1 -1
- package/validation/error.js +13 -0
- package/validation/error.js.map +1 -1
- package/validation/input-params.js +14 -0
- package/validation/input-params.js.map +1 -1
- package/generator-adapter/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
- package/generator-adapter/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/generator-adapter/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/generator-adapter/node_modules/undici-types/file.d.ts +0 -39
- package/generator-adapter/node_modules/undici-types/filereader.d.ts +0 -54
|
@@ -3,14 +3,7 @@
|
|
|
3
3
|
// See scripts/generate-inspector/README.md for information on how to update the protocol definitions.
|
|
4
4
|
// Changes to the module itself should be added to the generator template (scripts/generate-inspector/inspector.d.ts.template).
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
* The `node:inspector` module provides an API for interacting with the V8
|
|
8
|
-
* inspector.
|
|
9
|
-
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/inspector.js)
|
|
10
|
-
*/
|
|
11
|
-
declare module 'inspector' {
|
|
12
|
-
import EventEmitter = require('node:events');
|
|
13
|
-
|
|
6
|
+
declare module "inspector" {
|
|
14
7
|
interface InspectorNotification<T> {
|
|
15
8
|
method: string;
|
|
16
9
|
params: T;
|
|
@@ -1777,6 +1770,27 @@ declare module 'inspector' {
|
|
|
1777
1770
|
*/
|
|
1778
1771
|
interface Headers {
|
|
1779
1772
|
}
|
|
1773
|
+
interface LoadNetworkResourcePageResult {
|
|
1774
|
+
success: boolean;
|
|
1775
|
+
stream?: IO.StreamHandle | undefined;
|
|
1776
|
+
}
|
|
1777
|
+
/**
|
|
1778
|
+
* WebSocket response data.
|
|
1779
|
+
*/
|
|
1780
|
+
interface WebSocketResponse {
|
|
1781
|
+
/**
|
|
1782
|
+
* HTTP response status code.
|
|
1783
|
+
*/
|
|
1784
|
+
status: number;
|
|
1785
|
+
/**
|
|
1786
|
+
* HTTP response status text.
|
|
1787
|
+
*/
|
|
1788
|
+
statusText: string;
|
|
1789
|
+
/**
|
|
1790
|
+
* HTTP response headers.
|
|
1791
|
+
*/
|
|
1792
|
+
headers: Headers;
|
|
1793
|
+
}
|
|
1780
1794
|
interface GetRequestPostDataParameterType {
|
|
1781
1795
|
/**
|
|
1782
1796
|
* Identifier of the network request to get content for.
|
|
@@ -1795,6 +1809,12 @@ declare module 'inspector' {
|
|
|
1795
1809
|
*/
|
|
1796
1810
|
requestId: RequestId;
|
|
1797
1811
|
}
|
|
1812
|
+
interface LoadNetworkResourceParameterType {
|
|
1813
|
+
/**
|
|
1814
|
+
* URL of the resource to get content for.
|
|
1815
|
+
*/
|
|
1816
|
+
url: string;
|
|
1817
|
+
}
|
|
1798
1818
|
interface GetRequestPostDataReturnType {
|
|
1799
1819
|
/**
|
|
1800
1820
|
* Request body string, omitting files from multipart requests
|
|
@@ -1817,6 +1837,9 @@ declare module 'inspector' {
|
|
|
1817
1837
|
*/
|
|
1818
1838
|
bufferedData: string;
|
|
1819
1839
|
}
|
|
1840
|
+
interface LoadNetworkResourceReturnType {
|
|
1841
|
+
resource: LoadNetworkResourcePageResult;
|
|
1842
|
+
}
|
|
1820
1843
|
interface RequestWillBeSentEventDataType {
|
|
1821
1844
|
/**
|
|
1822
1845
|
* Request identifier.
|
|
@@ -1908,6 +1931,44 @@ declare module 'inspector' {
|
|
|
1908
1931
|
*/
|
|
1909
1932
|
data?: string | undefined;
|
|
1910
1933
|
}
|
|
1934
|
+
interface WebSocketCreatedEventDataType {
|
|
1935
|
+
/**
|
|
1936
|
+
* Request identifier.
|
|
1937
|
+
*/
|
|
1938
|
+
requestId: RequestId;
|
|
1939
|
+
/**
|
|
1940
|
+
* WebSocket request URL.
|
|
1941
|
+
*/
|
|
1942
|
+
url: string;
|
|
1943
|
+
/**
|
|
1944
|
+
* Request initiator.
|
|
1945
|
+
*/
|
|
1946
|
+
initiator: Initiator;
|
|
1947
|
+
}
|
|
1948
|
+
interface WebSocketClosedEventDataType {
|
|
1949
|
+
/**
|
|
1950
|
+
* Request identifier.
|
|
1951
|
+
*/
|
|
1952
|
+
requestId: RequestId;
|
|
1953
|
+
/**
|
|
1954
|
+
* Timestamp.
|
|
1955
|
+
*/
|
|
1956
|
+
timestamp: MonotonicTime;
|
|
1957
|
+
}
|
|
1958
|
+
interface WebSocketHandshakeResponseReceivedEventDataType {
|
|
1959
|
+
/**
|
|
1960
|
+
* Request identifier.
|
|
1961
|
+
*/
|
|
1962
|
+
requestId: RequestId;
|
|
1963
|
+
/**
|
|
1964
|
+
* Timestamp.
|
|
1965
|
+
*/
|
|
1966
|
+
timestamp: MonotonicTime;
|
|
1967
|
+
/**
|
|
1968
|
+
* WebSocket response data.
|
|
1969
|
+
*/
|
|
1970
|
+
response: WebSocketResponse;
|
|
1971
|
+
}
|
|
1911
1972
|
}
|
|
1912
1973
|
namespace NodeRuntime {
|
|
1913
1974
|
interface NotifyWhenWaitingForDisconnectParameterType {
|
|
@@ -1938,37 +1999,42 @@ declare module 'inspector' {
|
|
|
1938
1999
|
waitingForDebugger: boolean;
|
|
1939
2000
|
}
|
|
1940
2001
|
}
|
|
2002
|
+
namespace IO {
|
|
2003
|
+
type StreamHandle = string;
|
|
2004
|
+
interface ReadParameterType {
|
|
2005
|
+
/**
|
|
2006
|
+
* Handle of the stream to read.
|
|
2007
|
+
*/
|
|
2008
|
+
handle: StreamHandle;
|
|
2009
|
+
/**
|
|
2010
|
+
* Seek to the specified offset before reading (if not specified, proceed with offset
|
|
2011
|
+
* following the last read). Some types of streams may only support sequential reads.
|
|
2012
|
+
*/
|
|
2013
|
+
offset?: number | undefined;
|
|
2014
|
+
/**
|
|
2015
|
+
* Maximum number of bytes to read (left upon the agent discretion if not specified).
|
|
2016
|
+
*/
|
|
2017
|
+
size?: number | undefined;
|
|
2018
|
+
}
|
|
2019
|
+
interface CloseParameterType {
|
|
2020
|
+
/**
|
|
2021
|
+
* Handle of the stream to close.
|
|
2022
|
+
*/
|
|
2023
|
+
handle: StreamHandle;
|
|
2024
|
+
}
|
|
2025
|
+
interface ReadReturnType {
|
|
2026
|
+
/**
|
|
2027
|
+
* Data that were read.
|
|
2028
|
+
*/
|
|
2029
|
+
data: string;
|
|
2030
|
+
/**
|
|
2031
|
+
* Set if the end-of-file condition occurred while reading.
|
|
2032
|
+
*/
|
|
2033
|
+
eof: boolean;
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
1941
2036
|
|
|
1942
|
-
|
|
1943
|
-
* The `inspector.Session` is used for dispatching messages to the V8 inspector
|
|
1944
|
-
* back-end and receiving message responses and notifications.
|
|
1945
|
-
*/
|
|
1946
|
-
class Session extends EventEmitter {
|
|
1947
|
-
/**
|
|
1948
|
-
* Create a new instance of the inspector.Session class.
|
|
1949
|
-
* The inspector session needs to be connected through `session.connect()` before the messages can be dispatched to the inspector backend.
|
|
1950
|
-
*/
|
|
1951
|
-
constructor();
|
|
1952
|
-
|
|
1953
|
-
/**
|
|
1954
|
-
* Connects a session to the inspector back-end.
|
|
1955
|
-
*/
|
|
1956
|
-
connect(): void;
|
|
1957
|
-
|
|
1958
|
-
/**
|
|
1959
|
-
* Connects a session to the inspector back-end.
|
|
1960
|
-
* An exception will be thrown if this API was not called on a Worker thread.
|
|
1961
|
-
* @since v12.11.0
|
|
1962
|
-
*/
|
|
1963
|
-
connectToMainThread(): void;
|
|
1964
|
-
|
|
1965
|
-
/**
|
|
1966
|
-
* Immediately close the session. All pending message callbacks will be called with an error.
|
|
1967
|
-
* `session.connect()` will need to be called to be able to send messages again.
|
|
1968
|
-
* Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints.
|
|
1969
|
-
*/
|
|
1970
|
-
disconnect(): void;
|
|
1971
|
-
|
|
2037
|
+
interface Session {
|
|
1972
2038
|
/**
|
|
1973
2039
|
* Posts a message to the inspector back-end. `callback` will be notified when
|
|
1974
2040
|
* a response is received. `callback` is a function that accepts two optional
|
|
@@ -1993,1175 +2059,1112 @@ declare module 'inspector' {
|
|
|
1993
2059
|
/**
|
|
1994
2060
|
* Returns supported domains.
|
|
1995
2061
|
*/
|
|
1996
|
-
post(method:
|
|
2062
|
+
post(method: "Schema.getDomains", callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void;
|
|
1997
2063
|
/**
|
|
1998
2064
|
* Evaluates expression on global object.
|
|
1999
2065
|
*/
|
|
2000
|
-
post(method:
|
|
2001
|
-
post(method:
|
|
2066
|
+
post(method: "Runtime.evaluate", params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
|
|
2067
|
+
post(method: "Runtime.evaluate", callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
|
|
2002
2068
|
/**
|
|
2003
2069
|
* Add handler to promise with given promise object id.
|
|
2004
2070
|
*/
|
|
2005
|
-
post(method:
|
|
2006
|
-
post(method:
|
|
2071
|
+
post(method: "Runtime.awaitPromise", params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
|
|
2072
|
+
post(method: "Runtime.awaitPromise", callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
|
|
2007
2073
|
/**
|
|
2008
2074
|
* Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
|
|
2009
2075
|
*/
|
|
2010
|
-
post(method:
|
|
2011
|
-
post(method:
|
|
2076
|
+
post(method: "Runtime.callFunctionOn", params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
|
|
2077
|
+
post(method: "Runtime.callFunctionOn", callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
|
|
2012
2078
|
/**
|
|
2013
2079
|
* Returns properties of a given object. Object group of the result is inherited from the target object.
|
|
2014
2080
|
*/
|
|
2015
|
-
post(method:
|
|
2016
|
-
post(method:
|
|
2081
|
+
post(method: "Runtime.getProperties", params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
|
|
2082
|
+
post(method: "Runtime.getProperties", callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
|
|
2017
2083
|
/**
|
|
2018
2084
|
* Releases remote object with given id.
|
|
2019
2085
|
*/
|
|
2020
|
-
post(method:
|
|
2021
|
-
post(method:
|
|
2086
|
+
post(method: "Runtime.releaseObject", params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void;
|
|
2087
|
+
post(method: "Runtime.releaseObject", callback?: (err: Error | null) => void): void;
|
|
2022
2088
|
/**
|
|
2023
2089
|
* Releases all remote objects that belong to a given group.
|
|
2024
2090
|
*/
|
|
2025
|
-
post(method:
|
|
2026
|
-
post(method:
|
|
2091
|
+
post(method: "Runtime.releaseObjectGroup", params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void;
|
|
2092
|
+
post(method: "Runtime.releaseObjectGroup", callback?: (err: Error | null) => void): void;
|
|
2027
2093
|
/**
|
|
2028
2094
|
* Tells inspected instance to run if it was waiting for debugger to attach.
|
|
2029
2095
|
*/
|
|
2030
|
-
post(method:
|
|
2096
|
+
post(method: "Runtime.runIfWaitingForDebugger", callback?: (err: Error | null) => void): void;
|
|
2031
2097
|
/**
|
|
2032
2098
|
* Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context.
|
|
2033
2099
|
*/
|
|
2034
|
-
post(method:
|
|
2100
|
+
post(method: "Runtime.enable", callback?: (err: Error | null) => void): void;
|
|
2035
2101
|
/**
|
|
2036
2102
|
* Disables reporting of execution contexts creation.
|
|
2037
2103
|
*/
|
|
2038
|
-
post(method:
|
|
2104
|
+
post(method: "Runtime.disable", callback?: (err: Error | null) => void): void;
|
|
2039
2105
|
/**
|
|
2040
2106
|
* Discards collected exceptions and console API calls.
|
|
2041
2107
|
*/
|
|
2042
|
-
post(method:
|
|
2108
|
+
post(method: "Runtime.discardConsoleEntries", callback?: (err: Error | null) => void): void;
|
|
2043
2109
|
/**
|
|
2044
2110
|
* @experimental
|
|
2045
2111
|
*/
|
|
2046
|
-
post(method:
|
|
2047
|
-
post(method:
|
|
2112
|
+
post(method: "Runtime.setCustomObjectFormatterEnabled", params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void;
|
|
2113
|
+
post(method: "Runtime.setCustomObjectFormatterEnabled", callback?: (err: Error | null) => void): void;
|
|
2048
2114
|
/**
|
|
2049
2115
|
* Compiles expression.
|
|
2050
2116
|
*/
|
|
2051
|
-
post(method:
|
|
2052
|
-
post(method:
|
|
2117
|
+
post(method: "Runtime.compileScript", params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
|
|
2118
|
+
post(method: "Runtime.compileScript", callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
|
|
2053
2119
|
/**
|
|
2054
2120
|
* Runs script with given id in a given context.
|
|
2055
2121
|
*/
|
|
2056
|
-
post(method:
|
|
2057
|
-
post(method:
|
|
2058
|
-
post(method:
|
|
2059
|
-
post(method:
|
|
2122
|
+
post(method: "Runtime.runScript", params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
|
|
2123
|
+
post(method: "Runtime.runScript", callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
|
|
2124
|
+
post(method: "Runtime.queryObjects", params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
|
|
2125
|
+
post(method: "Runtime.queryObjects", callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
|
|
2060
2126
|
/**
|
|
2061
2127
|
* Returns all let, const and class variables from global scope.
|
|
2062
2128
|
*/
|
|
2063
2129
|
post(
|
|
2064
|
-
method:
|
|
2130
|
+
method: "Runtime.globalLexicalScopeNames",
|
|
2065
2131
|
params?: Runtime.GlobalLexicalScopeNamesParameterType,
|
|
2066
2132
|
callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void
|
|
2067
2133
|
): void;
|
|
2068
|
-
post(method:
|
|
2134
|
+
post(method: "Runtime.globalLexicalScopeNames", callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void;
|
|
2069
2135
|
/**
|
|
2070
2136
|
* Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
|
|
2071
2137
|
*/
|
|
2072
|
-
post(method:
|
|
2138
|
+
post(method: "Debugger.enable", callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void;
|
|
2073
2139
|
/**
|
|
2074
2140
|
* Disables debugger for given page.
|
|
2075
2141
|
*/
|
|
2076
|
-
post(method:
|
|
2142
|
+
post(method: "Debugger.disable", callback?: (err: Error | null) => void): void;
|
|
2077
2143
|
/**
|
|
2078
2144
|
* Activates / deactivates all breakpoints on the page.
|
|
2079
2145
|
*/
|
|
2080
|
-
post(method:
|
|
2081
|
-
post(method:
|
|
2146
|
+
post(method: "Debugger.setBreakpointsActive", params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void;
|
|
2147
|
+
post(method: "Debugger.setBreakpointsActive", callback?: (err: Error | null) => void): void;
|
|
2082
2148
|
/**
|
|
2083
2149
|
* Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
|
|
2084
2150
|
*/
|
|
2085
|
-
post(method:
|
|
2086
|
-
post(method:
|
|
2151
|
+
post(method: "Debugger.setSkipAllPauses", params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void;
|
|
2152
|
+
post(method: "Debugger.setSkipAllPauses", callback?: (err: Error | null) => void): void;
|
|
2087
2153
|
/**
|
|
2088
2154
|
* 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 <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads.
|
|
2089
2155
|
*/
|
|
2090
|
-
post(method:
|
|
2091
|
-
post(method:
|
|
2156
|
+
post(method: "Debugger.setBreakpointByUrl", params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
|
|
2157
|
+
post(method: "Debugger.setBreakpointByUrl", callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
|
|
2092
2158
|
/**
|
|
2093
2159
|
* Sets JavaScript breakpoint at a given location.
|
|
2094
2160
|
*/
|
|
2095
|
-
post(method:
|
|
2096
|
-
post(method:
|
|
2161
|
+
post(method: "Debugger.setBreakpoint", params?: Debugger.SetBreakpointParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
|
|
2162
|
+
post(method: "Debugger.setBreakpoint", callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
|
|
2097
2163
|
/**
|
|
2098
2164
|
* Removes JavaScript breakpoint.
|
|
2099
2165
|
*/
|
|
2100
|
-
post(method:
|
|
2101
|
-
post(method:
|
|
2166
|
+
post(method: "Debugger.removeBreakpoint", params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void;
|
|
2167
|
+
post(method: "Debugger.removeBreakpoint", callback?: (err: Error | null) => void): void;
|
|
2102
2168
|
/**
|
|
2103
2169
|
* Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
|
|
2104
2170
|
*/
|
|
2105
2171
|
post(
|
|
2106
|
-
method:
|
|
2172
|
+
method: "Debugger.getPossibleBreakpoints",
|
|
2107
2173
|
params?: Debugger.GetPossibleBreakpointsParameterType,
|
|
2108
2174
|
callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void
|
|
2109
2175
|
): void;
|
|
2110
|
-
post(method:
|
|
2176
|
+
post(method: "Debugger.getPossibleBreakpoints", callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void;
|
|
2111
2177
|
/**
|
|
2112
2178
|
* Continues execution until specific location is reached.
|
|
2113
2179
|
*/
|
|
2114
|
-
post(method:
|
|
2115
|
-
post(method:
|
|
2180
|
+
post(method: "Debugger.continueToLocation", params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void;
|
|
2181
|
+
post(method: "Debugger.continueToLocation", callback?: (err: Error | null) => void): void;
|
|
2116
2182
|
/**
|
|
2117
2183
|
* @experimental
|
|
2118
2184
|
*/
|
|
2119
|
-
post(method:
|
|
2120
|
-
post(method:
|
|
2185
|
+
post(method: "Debugger.pauseOnAsyncCall", params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void;
|
|
2186
|
+
post(method: "Debugger.pauseOnAsyncCall", callback?: (err: Error | null) => void): void;
|
|
2121
2187
|
/**
|
|
2122
2188
|
* Steps over the statement.
|
|
2123
2189
|
*/
|
|
2124
|
-
post(method:
|
|
2190
|
+
post(method: "Debugger.stepOver", callback?: (err: Error | null) => void): void;
|
|
2125
2191
|
/**
|
|
2126
2192
|
* Steps into the function call.
|
|
2127
2193
|
*/
|
|
2128
|
-
post(method:
|
|
2129
|
-
post(method:
|
|
2194
|
+
post(method: "Debugger.stepInto", params?: Debugger.StepIntoParameterType, callback?: (err: Error | null) => void): void;
|
|
2195
|
+
post(method: "Debugger.stepInto", callback?: (err: Error | null) => void): void;
|
|
2130
2196
|
/**
|
|
2131
2197
|
* Steps out of the function call.
|
|
2132
2198
|
*/
|
|
2133
|
-
post(method:
|
|
2199
|
+
post(method: "Debugger.stepOut", callback?: (err: Error | null) => void): void;
|
|
2134
2200
|
/**
|
|
2135
2201
|
* Stops on the next JavaScript statement.
|
|
2136
2202
|
*/
|
|
2137
|
-
post(method:
|
|
2203
|
+
post(method: "Debugger.pause", callback?: (err: Error | null) => void): void;
|
|
2138
2204
|
/**
|
|
2139
2205
|
* 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.
|
|
2140
2206
|
* @experimental
|
|
2141
2207
|
*/
|
|
2142
|
-
post(method:
|
|
2208
|
+
post(method: "Debugger.scheduleStepIntoAsync", callback?: (err: Error | null) => void): void;
|
|
2143
2209
|
/**
|
|
2144
2210
|
* Resumes JavaScript execution.
|
|
2145
2211
|
*/
|
|
2146
|
-
post(method:
|
|
2212
|
+
post(method: "Debugger.resume", callback?: (err: Error | null) => void): void;
|
|
2147
2213
|
/**
|
|
2148
2214
|
* Returns stack trace with given <code>stackTraceId</code>.
|
|
2149
2215
|
* @experimental
|
|
2150
2216
|
*/
|
|
2151
|
-
post(method:
|
|
2152
|
-
post(method:
|
|
2217
|
+
post(method: "Debugger.getStackTrace", params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
|
|
2218
|
+
post(method: "Debugger.getStackTrace", callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
|
|
2153
2219
|
/**
|
|
2154
2220
|
* Searches for given string in script content.
|
|
2155
2221
|
*/
|
|
2156
|
-
post(method:
|
|
2157
|
-
post(method:
|
|
2222
|
+
post(method: "Debugger.searchInContent", params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
|
|
2223
|
+
post(method: "Debugger.searchInContent", callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
|
|
2158
2224
|
/**
|
|
2159
2225
|
* Edits JavaScript source live.
|
|
2160
2226
|
*/
|
|
2161
|
-
post(method:
|
|
2162
|
-
post(method:
|
|
2227
|
+
post(method: "Debugger.setScriptSource", params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
|
|
2228
|
+
post(method: "Debugger.setScriptSource", callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
|
|
2163
2229
|
/**
|
|
2164
2230
|
* Restarts particular call frame from the beginning.
|
|
2165
2231
|
*/
|
|
2166
|
-
post(method:
|
|
2167
|
-
post(method:
|
|
2232
|
+
post(method: "Debugger.restartFrame", params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
|
|
2233
|
+
post(method: "Debugger.restartFrame", callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
|
|
2168
2234
|
/**
|
|
2169
2235
|
* Returns source for the script with given id.
|
|
2170
2236
|
*/
|
|
2171
|
-
post(method:
|
|
2172
|
-
post(method:
|
|
2237
|
+
post(method: "Debugger.getScriptSource", params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
|
|
2238
|
+
post(method: "Debugger.getScriptSource", callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
|
|
2173
2239
|
/**
|
|
2174
2240
|
* Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>.
|
|
2175
2241
|
*/
|
|
2176
|
-
post(method:
|
|
2177
|
-
post(method:
|
|
2242
|
+
post(method: "Debugger.setPauseOnExceptions", params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void;
|
|
2243
|
+
post(method: "Debugger.setPauseOnExceptions", callback?: (err: Error | null) => void): void;
|
|
2178
2244
|
/**
|
|
2179
2245
|
* Evaluates expression on a given call frame.
|
|
2180
2246
|
*/
|
|
2181
|
-
post(method:
|
|
2182
|
-
post(method:
|
|
2247
|
+
post(method: "Debugger.evaluateOnCallFrame", params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
|
|
2248
|
+
post(method: "Debugger.evaluateOnCallFrame", callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
|
|
2183
2249
|
/**
|
|
2184
2250
|
* Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
|
|
2185
2251
|
*/
|
|
2186
|
-
post(method:
|
|
2187
|
-
post(method:
|
|
2252
|
+
post(method: "Debugger.setVariableValue", params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void;
|
|
2253
|
+
post(method: "Debugger.setVariableValue", callback?: (err: Error | null) => void): void;
|
|
2188
2254
|
/**
|
|
2189
2255
|
* Changes return value in top frame. Available only at return break position.
|
|
2190
2256
|
* @experimental
|
|
2191
2257
|
*/
|
|
2192
|
-
post(method:
|
|
2193
|
-
post(method:
|
|
2258
|
+
post(method: "Debugger.setReturnValue", params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void;
|
|
2259
|
+
post(method: "Debugger.setReturnValue", callback?: (err: Error | null) => void): void;
|
|
2194
2260
|
/**
|
|
2195
2261
|
* Enables or disables async call stacks tracking.
|
|
2196
2262
|
*/
|
|
2197
|
-
post(method:
|
|
2198
|
-
post(method:
|
|
2263
|
+
post(method: "Debugger.setAsyncCallStackDepth", params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void;
|
|
2264
|
+
post(method: "Debugger.setAsyncCallStackDepth", callback?: (err: Error | null) => void): void;
|
|
2199
2265
|
/**
|
|
2200
2266
|
* 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.
|
|
2201
2267
|
* @experimental
|
|
2202
2268
|
*/
|
|
2203
|
-
post(method:
|
|
2204
|
-
post(method:
|
|
2269
|
+
post(method: "Debugger.setBlackboxPatterns", params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void;
|
|
2270
|
+
post(method: "Debugger.setBlackboxPatterns", callback?: (err: Error | null) => void): void;
|
|
2205
2271
|
/**
|
|
2206
2272
|
* 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.
|
|
2207
2273
|
* @experimental
|
|
2208
2274
|
*/
|
|
2209
|
-
post(method:
|
|
2210
|
-
post(method:
|
|
2275
|
+
post(method: "Debugger.setBlackboxedRanges", params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void;
|
|
2276
|
+
post(method: "Debugger.setBlackboxedRanges", callback?: (err: Error | null) => void): void;
|
|
2211
2277
|
/**
|
|
2212
2278
|
* Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification.
|
|
2213
2279
|
*/
|
|
2214
|
-
post(method:
|
|
2280
|
+
post(method: "Console.enable", callback?: (err: Error | null) => void): void;
|
|
2215
2281
|
/**
|
|
2216
2282
|
* Disables console domain, prevents further console messages from being reported to the client.
|
|
2217
2283
|
*/
|
|
2218
|
-
post(method:
|
|
2284
|
+
post(method: "Console.disable", callback?: (err: Error | null) => void): void;
|
|
2219
2285
|
/**
|
|
2220
2286
|
* Does nothing.
|
|
2221
2287
|
*/
|
|
2222
|
-
post(method:
|
|
2223
|
-
post(method:
|
|
2224
|
-
post(method:
|
|
2288
|
+
post(method: "Console.clearMessages", callback?: (err: Error | null) => void): void;
|
|
2289
|
+
post(method: "Profiler.enable", callback?: (err: Error | null) => void): void;
|
|
2290
|
+
post(method: "Profiler.disable", callback?: (err: Error | null) => void): void;
|
|
2225
2291
|
/**
|
|
2226
2292
|
* Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
|
|
2227
2293
|
*/
|
|
2228
|
-
post(method:
|
|
2229
|
-
post(method:
|
|
2230
|
-
post(method:
|
|
2231
|
-
post(method:
|
|
2294
|
+
post(method: "Profiler.setSamplingInterval", params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void;
|
|
2295
|
+
post(method: "Profiler.setSamplingInterval", callback?: (err: Error | null) => void): void;
|
|
2296
|
+
post(method: "Profiler.start", callback?: (err: Error | null) => void): void;
|
|
2297
|
+
post(method: "Profiler.stop", callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void;
|
|
2232
2298
|
/**
|
|
2233
2299
|
* 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.
|
|
2234
2300
|
*/
|
|
2235
|
-
post(method:
|
|
2236
|
-
post(method:
|
|
2301
|
+
post(method: "Profiler.startPreciseCoverage", params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void;
|
|
2302
|
+
post(method: "Profiler.startPreciseCoverage", callback?: (err: Error | null) => void): void;
|
|
2237
2303
|
/**
|
|
2238
2304
|
* Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
|
|
2239
2305
|
*/
|
|
2240
|
-
post(method:
|
|
2306
|
+
post(method: "Profiler.stopPreciseCoverage", callback?: (err: Error | null) => void): void;
|
|
2241
2307
|
/**
|
|
2242
2308
|
* Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
|
|
2243
2309
|
*/
|
|
2244
|
-
post(method:
|
|
2310
|
+
post(method: "Profiler.takePreciseCoverage", callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void;
|
|
2245
2311
|
/**
|
|
2246
2312
|
* Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
|
|
2247
2313
|
*/
|
|
2248
|
-
post(method:
|
|
2249
|
-
post(method:
|
|
2250
|
-
post(method:
|
|
2251
|
-
post(method:
|
|
2252
|
-
post(method:
|
|
2253
|
-
post(method:
|
|
2254
|
-
post(method:
|
|
2255
|
-
post(method:
|
|
2256
|
-
post(method:
|
|
2257
|
-
post(method:
|
|
2314
|
+
post(method: "Profiler.getBestEffortCoverage", callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void;
|
|
2315
|
+
post(method: "HeapProfiler.enable", callback?: (err: Error | null) => void): void;
|
|
2316
|
+
post(method: "HeapProfiler.disable", callback?: (err: Error | null) => void): void;
|
|
2317
|
+
post(method: "HeapProfiler.startTrackingHeapObjects", params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
|
|
2318
|
+
post(method: "HeapProfiler.startTrackingHeapObjects", callback?: (err: Error | null) => void): void;
|
|
2319
|
+
post(method: "HeapProfiler.stopTrackingHeapObjects", params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
|
|
2320
|
+
post(method: "HeapProfiler.stopTrackingHeapObjects", callback?: (err: Error | null) => void): void;
|
|
2321
|
+
post(method: "HeapProfiler.takeHeapSnapshot", params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void;
|
|
2322
|
+
post(method: "HeapProfiler.takeHeapSnapshot", callback?: (err: Error | null) => void): void;
|
|
2323
|
+
post(method: "HeapProfiler.collectGarbage", callback?: (err: Error | null) => void): void;
|
|
2258
2324
|
post(
|
|
2259
|
-
method:
|
|
2325
|
+
method: "HeapProfiler.getObjectByHeapObjectId",
|
|
2260
2326
|
params?: HeapProfiler.GetObjectByHeapObjectIdParameterType,
|
|
2261
2327
|
callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void
|
|
2262
2328
|
): void;
|
|
2263
|
-
post(method:
|
|
2329
|
+
post(method: "HeapProfiler.getObjectByHeapObjectId", callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void;
|
|
2264
2330
|
/**
|
|
2265
2331
|
* Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
|
|
2266
2332
|
*/
|
|
2267
|
-
post(method:
|
|
2268
|
-
post(method:
|
|
2269
|
-
post(method:
|
|
2270
|
-
post(method:
|
|
2271
|
-
post(method:
|
|
2272
|
-
post(method:
|
|
2273
|
-
post(method:
|
|
2274
|
-
post(method:
|
|
2333
|
+
post(method: "HeapProfiler.addInspectedHeapObject", params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void;
|
|
2334
|
+
post(method: "HeapProfiler.addInspectedHeapObject", callback?: (err: Error | null) => void): void;
|
|
2335
|
+
post(method: "HeapProfiler.getHeapObjectId", params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
|
|
2336
|
+
post(method: "HeapProfiler.getHeapObjectId", callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
|
|
2337
|
+
post(method: "HeapProfiler.startSampling", params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void;
|
|
2338
|
+
post(method: "HeapProfiler.startSampling", callback?: (err: Error | null) => void): void;
|
|
2339
|
+
post(method: "HeapProfiler.stopSampling", callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void;
|
|
2340
|
+
post(method: "HeapProfiler.getSamplingProfile", callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void;
|
|
2275
2341
|
/**
|
|
2276
2342
|
* Gets supported tracing categories.
|
|
2277
2343
|
*/
|
|
2278
|
-
post(method:
|
|
2344
|
+
post(method: "NodeTracing.getCategories", callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
|
|
2279
2345
|
/**
|
|
2280
2346
|
* Start trace events collection.
|
|
2281
2347
|
*/
|
|
2282
|
-
post(method:
|
|
2283
|
-
post(method:
|
|
2348
|
+
post(method: "NodeTracing.start", params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void;
|
|
2349
|
+
post(method: "NodeTracing.start", callback?: (err: Error | null) => void): void;
|
|
2284
2350
|
/**
|
|
2285
2351
|
* Stop trace events collection. Remaining collected events will be sent as a sequence of
|
|
2286
2352
|
* dataCollected events followed by tracingComplete event.
|
|
2287
2353
|
*/
|
|
2288
|
-
post(method:
|
|
2354
|
+
post(method: "NodeTracing.stop", callback?: (err: Error | null) => void): void;
|
|
2289
2355
|
/**
|
|
2290
2356
|
* Sends protocol message over session with given id.
|
|
2291
2357
|
*/
|
|
2292
|
-
post(method:
|
|
2293
|
-
post(method:
|
|
2358
|
+
post(method: "NodeWorker.sendMessageToWorker", params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void;
|
|
2359
|
+
post(method: "NodeWorker.sendMessageToWorker", callback?: (err: Error | null) => void): void;
|
|
2294
2360
|
/**
|
|
2295
2361
|
* Instructs the inspector to attach to running workers. Will also attach to new workers
|
|
2296
2362
|
* as they start
|
|
2297
2363
|
*/
|
|
2298
|
-
post(method:
|
|
2299
|
-
post(method:
|
|
2364
|
+
post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void;
|
|
2365
|
+
post(method: "NodeWorker.enable", callback?: (err: Error | null) => void): void;
|
|
2300
2366
|
/**
|
|
2301
2367
|
* Detaches from all running workers and disables attaching to new workers as they are started.
|
|
2302
2368
|
*/
|
|
2303
|
-
post(method:
|
|
2369
|
+
post(method: "NodeWorker.disable", callback?: (err: Error | null) => void): void;
|
|
2304
2370
|
/**
|
|
2305
2371
|
* Detached from the worker with given sessionId.
|
|
2306
2372
|
*/
|
|
2307
|
-
post(method:
|
|
2308
|
-
post(method:
|
|
2373
|
+
post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void;
|
|
2374
|
+
post(method: "NodeWorker.detach", callback?: (err: Error | null) => void): void;
|
|
2309
2375
|
/**
|
|
2310
2376
|
* Disables network tracking, prevents network events from being sent to the client.
|
|
2311
2377
|
*/
|
|
2312
|
-
post(method:
|
|
2378
|
+
post(method: "Network.disable", callback?: (err: Error | null) => void): void;
|
|
2313
2379
|
/**
|
|
2314
2380
|
* Enables network tracking, network events will now be delivered to the client.
|
|
2315
2381
|
*/
|
|
2316
|
-
post(method:
|
|
2382
|
+
post(method: "Network.enable", callback?: (err: Error | null) => void): void;
|
|
2317
2383
|
/**
|
|
2318
2384
|
* Returns post data sent with the request. Returns an error when no data was sent with the request.
|
|
2319
2385
|
*/
|
|
2320
|
-
post(method:
|
|
2321
|
-
post(method:
|
|
2386
|
+
post(method: "Network.getRequestPostData", params?: Network.GetRequestPostDataParameterType, callback?: (err: Error | null, params: Network.GetRequestPostDataReturnType) => void): void;
|
|
2387
|
+
post(method: "Network.getRequestPostData", callback?: (err: Error | null, params: Network.GetRequestPostDataReturnType) => void): void;
|
|
2322
2388
|
/**
|
|
2323
2389
|
* Returns content served for the given request.
|
|
2324
2390
|
*/
|
|
2325
|
-
post(method:
|
|
2326
|
-
post(method:
|
|
2391
|
+
post(method: "Network.getResponseBody", params?: Network.GetResponseBodyParameterType, callback?: (err: Error | null, params: Network.GetResponseBodyReturnType) => void): void;
|
|
2392
|
+
post(method: "Network.getResponseBody", callback?: (err: Error | null, params: Network.GetResponseBodyReturnType) => void): void;
|
|
2327
2393
|
/**
|
|
2328
2394
|
* Enables streaming of the response for the given requestId.
|
|
2329
2395
|
* If enabled, the dataReceived event contains the data that was received during streaming.
|
|
2330
2396
|
* @experimental
|
|
2331
2397
|
*/
|
|
2332
2398
|
post(
|
|
2333
|
-
method:
|
|
2399
|
+
method: "Network.streamResourceContent",
|
|
2334
2400
|
params?: Network.StreamResourceContentParameterType,
|
|
2335
2401
|
callback?: (err: Error | null, params: Network.StreamResourceContentReturnType) => void
|
|
2336
2402
|
): void;
|
|
2337
|
-
post(method:
|
|
2403
|
+
post(method: "Network.streamResourceContent", callback?: (err: Error | null, params: Network.StreamResourceContentReturnType) => void): void;
|
|
2404
|
+
/**
|
|
2405
|
+
* Fetches the resource and returns the content.
|
|
2406
|
+
*/
|
|
2407
|
+
post(method: "Network.loadNetworkResource", params?: Network.LoadNetworkResourceParameterType, callback?: (err: Error | null, params: Network.LoadNetworkResourceReturnType) => void): void;
|
|
2408
|
+
post(method: "Network.loadNetworkResource", callback?: (err: Error | null, params: Network.LoadNetworkResourceReturnType) => void): void;
|
|
2338
2409
|
/**
|
|
2339
2410
|
* Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`.
|
|
2340
2411
|
*/
|
|
2341
|
-
post(method:
|
|
2412
|
+
post(method: "NodeRuntime.enable", callback?: (err: Error | null) => void): void;
|
|
2342
2413
|
/**
|
|
2343
2414
|
* Disable NodeRuntime events
|
|
2344
2415
|
*/
|
|
2345
|
-
post(method:
|
|
2416
|
+
post(method: "NodeRuntime.disable", callback?: (err: Error | null) => void): void;
|
|
2346
2417
|
/**
|
|
2347
2418
|
* Enable the `NodeRuntime.waitingForDisconnect`.
|
|
2348
2419
|
*/
|
|
2349
|
-
post(method:
|
|
2350
|
-
post(method:
|
|
2351
|
-
post(method:
|
|
2352
|
-
post(method:
|
|
2420
|
+
post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void;
|
|
2421
|
+
post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", callback?: (err: Error | null) => void): void;
|
|
2422
|
+
post(method: "Target.setAutoAttach", params?: Target.SetAutoAttachParameterType, callback?: (err: Error | null) => void): void;
|
|
2423
|
+
post(method: "Target.setAutoAttach", callback?: (err: Error | null) => void): void;
|
|
2424
|
+
/**
|
|
2425
|
+
* Read a chunk of the stream
|
|
2426
|
+
*/
|
|
2427
|
+
post(method: "IO.read", params?: IO.ReadParameterType, callback?: (err: Error | null, params: IO.ReadReturnType) => void): void;
|
|
2428
|
+
post(method: "IO.read", callback?: (err: Error | null, params: IO.ReadReturnType) => void): void;
|
|
2429
|
+
post(method: "IO.close", params?: IO.CloseParameterType, callback?: (err: Error | null) => void): void;
|
|
2430
|
+
post(method: "IO.close", callback?: (err: Error | null) => void): void;
|
|
2353
2431
|
|
|
2354
2432
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
2355
2433
|
/**
|
|
2356
2434
|
* Emitted when any notification from the V8 Inspector is received.
|
|
2357
2435
|
*/
|
|
2358
|
-
addListener(event:
|
|
2436
|
+
addListener(event: "inspectorNotification", listener: (message: InspectorNotification<object>) => void): this;
|
|
2359
2437
|
/**
|
|
2360
2438
|
* Issued when new execution context is created.
|
|
2361
2439
|
*/
|
|
2362
|
-
addListener(event:
|
|
2440
|
+
addListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
2363
2441
|
/**
|
|
2364
2442
|
* Issued when execution context is destroyed.
|
|
2365
2443
|
*/
|
|
2366
|
-
addListener(event:
|
|
2444
|
+
addListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
2367
2445
|
/**
|
|
2368
2446
|
* Issued when all executionContexts were cleared in browser
|
|
2369
2447
|
*/
|
|
2370
|
-
addListener(event:
|
|
2448
|
+
addListener(event: "Runtime.executionContextsCleared", listener: () => void): this;
|
|
2371
2449
|
/**
|
|
2372
2450
|
* Issued when exception was thrown and unhandled.
|
|
2373
2451
|
*/
|
|
2374
|
-
addListener(event:
|
|
2452
|
+
addListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
2375
2453
|
/**
|
|
2376
2454
|
* Issued when unhandled exception was revoked.
|
|
2377
2455
|
*/
|
|
2378
|
-
addListener(event:
|
|
2456
|
+
addListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
2379
2457
|
/**
|
|
2380
2458
|
* Issued when console API was called.
|
|
2381
2459
|
*/
|
|
2382
|
-
addListener(event:
|
|
2460
|
+
addListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
2383
2461
|
/**
|
|
2384
2462
|
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
2385
2463
|
*/
|
|
2386
|
-
addListener(event:
|
|
2464
|
+
addListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
2387
2465
|
/**
|
|
2388
2466
|
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
2389
2467
|
*/
|
|
2390
|
-
addListener(event:
|
|
2468
|
+
addListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
2391
2469
|
/**
|
|
2392
2470
|
* Fired when virtual machine fails to parse the script.
|
|
2393
2471
|
*/
|
|
2394
|
-
addListener(event:
|
|
2472
|
+
addListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
2395
2473
|
/**
|
|
2396
2474
|
* Fired when breakpoint is resolved to an actual script and location.
|
|
2397
2475
|
*/
|
|
2398
|
-
addListener(event:
|
|
2476
|
+
addListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
2399
2477
|
/**
|
|
2400
2478
|
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
2401
2479
|
*/
|
|
2402
|
-
addListener(event:
|
|
2480
|
+
addListener(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
2403
2481
|
/**
|
|
2404
2482
|
* Fired when the virtual machine resumed execution.
|
|
2405
2483
|
*/
|
|
2406
|
-
addListener(event:
|
|
2484
|
+
addListener(event: "Debugger.resumed", listener: () => void): this;
|
|
2407
2485
|
/**
|
|
2408
2486
|
* Issued when new console message is added.
|
|
2409
2487
|
*/
|
|
2410
|
-
addListener(event:
|
|
2488
|
+
addListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
2411
2489
|
/**
|
|
2412
2490
|
* Sent when new profile recording is started using console.profile() call.
|
|
2413
2491
|
*/
|
|
2414
|
-
addListener(event:
|
|
2415
|
-
addListener(event:
|
|
2416
|
-
addListener(event:
|
|
2417
|
-
addListener(event:
|
|
2418
|
-
addListener(event:
|
|
2492
|
+
addListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
2493
|
+
addListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2494
|
+
addListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2495
|
+
addListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
2496
|
+
addListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2419
2497
|
/**
|
|
2420
2498
|
* 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.
|
|
2421
2499
|
*/
|
|
2422
|
-
addListener(event:
|
|
2500
|
+
addListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
2423
2501
|
/**
|
|
2424
2502
|
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
2425
2503
|
*/
|
|
2426
|
-
addListener(event:
|
|
2504
|
+
addListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
2427
2505
|
/**
|
|
2428
2506
|
* Contains an bucket of collected trace events.
|
|
2429
2507
|
*/
|
|
2430
|
-
addListener(event:
|
|
2508
|
+
addListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2431
2509
|
/**
|
|
2432
2510
|
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2433
2511
|
* delivered via dataCollected events.
|
|
2434
2512
|
*/
|
|
2435
|
-
addListener(event:
|
|
2513
|
+
addListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
2436
2514
|
/**
|
|
2437
2515
|
* Issued when attached to a worker.
|
|
2438
2516
|
*/
|
|
2439
|
-
addListener(event:
|
|
2517
|
+
addListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
2440
2518
|
/**
|
|
2441
2519
|
* Issued when detached from the worker.
|
|
2442
2520
|
*/
|
|
2443
|
-
addListener(event:
|
|
2521
|
+
addListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
2444
2522
|
/**
|
|
2445
2523
|
* Notifies about a new protocol message received from the session
|
|
2446
2524
|
* (session ID is provided in attachedToWorker notification).
|
|
2447
2525
|
*/
|
|
2448
|
-
addListener(event:
|
|
2526
|
+
addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2449
2527
|
/**
|
|
2450
2528
|
* Fired when page is about to send HTTP request.
|
|
2451
2529
|
*/
|
|
2452
|
-
addListener(event:
|
|
2530
|
+
addListener(event: "Network.requestWillBeSent", listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
|
|
2453
2531
|
/**
|
|
2454
2532
|
* Fired when HTTP response is available.
|
|
2455
2533
|
*/
|
|
2456
|
-
addListener(event:
|
|
2457
|
-
addListener(event:
|
|
2458
|
-
addListener(event:
|
|
2534
|
+
addListener(event: "Network.responseReceived", listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
2535
|
+
addListener(event: "Network.loadingFailed", listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
2536
|
+
addListener(event: "Network.loadingFinished", listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
2459
2537
|
/**
|
|
2460
2538
|
* Fired when data chunk was received over the network.
|
|
2461
2539
|
*/
|
|
2462
|
-
addListener(event:
|
|
2540
|
+
addListener(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
2541
|
+
/**
|
|
2542
|
+
* Fired upon WebSocket creation.
|
|
2543
|
+
*/
|
|
2544
|
+
addListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
2545
|
+
/**
|
|
2546
|
+
* Fired when WebSocket is closed.
|
|
2547
|
+
*/
|
|
2548
|
+
addListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
2549
|
+
/**
|
|
2550
|
+
* Fired when WebSocket handshake response becomes available.
|
|
2551
|
+
*/
|
|
2552
|
+
addListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
2463
2553
|
/**
|
|
2464
2554
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2465
2555
|
* enabled.
|
|
2466
2556
|
* It is fired when the Node process finished all code execution and is
|
|
2467
2557
|
* waiting for all frontends to disconnect.
|
|
2468
2558
|
*/
|
|
2469
|
-
addListener(event:
|
|
2559
|
+
addListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
2470
2560
|
/**
|
|
2471
2561
|
* This event is fired when the runtime is waiting for the debugger. For
|
|
2472
2562
|
* example, when inspector.waitingForDebugger is called
|
|
2473
2563
|
*/
|
|
2474
|
-
addListener(event:
|
|
2475
|
-
addListener(event:
|
|
2476
|
-
addListener(event:
|
|
2564
|
+
addListener(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
|
|
2565
|
+
addListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
2566
|
+
addListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
2477
2567
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
2478
|
-
emit(event:
|
|
2479
|
-
emit(event:
|
|
2480
|
-
emit(event:
|
|
2481
|
-
emit(event:
|
|
2482
|
-
emit(event:
|
|
2483
|
-
emit(event:
|
|
2484
|
-
emit(event:
|
|
2485
|
-
emit(event:
|
|
2486
|
-
emit(event:
|
|
2487
|
-
emit(event:
|
|
2488
|
-
emit(event:
|
|
2489
|
-
emit(event:
|
|
2490
|
-
emit(event:
|
|
2491
|
-
emit(event:
|
|
2492
|
-
emit(event:
|
|
2493
|
-
emit(event:
|
|
2494
|
-
emit(event:
|
|
2495
|
-
emit(event:
|
|
2496
|
-
emit(event:
|
|
2497
|
-
emit(event:
|
|
2498
|
-
emit(event:
|
|
2499
|
-
emit(event:
|
|
2500
|
-
emit(event:
|
|
2501
|
-
emit(event:
|
|
2502
|
-
emit(event:
|
|
2503
|
-
emit(event:
|
|
2504
|
-
emit(event:
|
|
2505
|
-
emit(event:
|
|
2506
|
-
emit(event:
|
|
2507
|
-
emit(event:
|
|
2508
|
-
emit(event:
|
|
2509
|
-
emit(event:
|
|
2510
|
-
emit(event:
|
|
2511
|
-
emit(event:
|
|
2512
|
-
emit(event:
|
|
2568
|
+
emit(event: "inspectorNotification", message: InspectorNotification<object>): boolean;
|
|
2569
|
+
emit(event: "Runtime.executionContextCreated", message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
|
|
2570
|
+
emit(event: "Runtime.executionContextDestroyed", message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>): boolean;
|
|
2571
|
+
emit(event: "Runtime.executionContextsCleared"): boolean;
|
|
2572
|
+
emit(event: "Runtime.exceptionThrown", message: InspectorNotification<Runtime.ExceptionThrownEventDataType>): boolean;
|
|
2573
|
+
emit(event: "Runtime.exceptionRevoked", message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>): boolean;
|
|
2574
|
+
emit(event: "Runtime.consoleAPICalled", message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>): boolean;
|
|
2575
|
+
emit(event: "Runtime.inspectRequested", message: InspectorNotification<Runtime.InspectRequestedEventDataType>): boolean;
|
|
2576
|
+
emit(event: "Debugger.scriptParsed", message: InspectorNotification<Debugger.ScriptParsedEventDataType>): boolean;
|
|
2577
|
+
emit(event: "Debugger.scriptFailedToParse", message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>): boolean;
|
|
2578
|
+
emit(event: "Debugger.breakpointResolved", message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>): boolean;
|
|
2579
|
+
emit(event: "Debugger.paused", message: InspectorNotification<Debugger.PausedEventDataType>): boolean;
|
|
2580
|
+
emit(event: "Debugger.resumed"): boolean;
|
|
2581
|
+
emit(event: "Console.messageAdded", message: InspectorNotification<Console.MessageAddedEventDataType>): boolean;
|
|
2582
|
+
emit(event: "Profiler.consoleProfileStarted", message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>): boolean;
|
|
2583
|
+
emit(event: "Profiler.consoleProfileFinished", message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>): boolean;
|
|
2584
|
+
emit(event: "HeapProfiler.addHeapSnapshotChunk", message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>): boolean;
|
|
2585
|
+
emit(event: "HeapProfiler.resetProfiles"): boolean;
|
|
2586
|
+
emit(event: "HeapProfiler.reportHeapSnapshotProgress", message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
|
|
2587
|
+
emit(event: "HeapProfiler.lastSeenObjectId", message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
|
|
2588
|
+
emit(event: "HeapProfiler.heapStatsUpdate", message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
|
|
2589
|
+
emit(event: "NodeTracing.dataCollected", message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
|
|
2590
|
+
emit(event: "NodeTracing.tracingComplete"): boolean;
|
|
2591
|
+
emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
|
|
2592
|
+
emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
|
|
2593
|
+
emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
|
|
2594
|
+
emit(event: "Network.requestWillBeSent", message: InspectorNotification<Network.RequestWillBeSentEventDataType>): boolean;
|
|
2595
|
+
emit(event: "Network.responseReceived", message: InspectorNotification<Network.ResponseReceivedEventDataType>): boolean;
|
|
2596
|
+
emit(event: "Network.loadingFailed", message: InspectorNotification<Network.LoadingFailedEventDataType>): boolean;
|
|
2597
|
+
emit(event: "Network.loadingFinished", message: InspectorNotification<Network.LoadingFinishedEventDataType>): boolean;
|
|
2598
|
+
emit(event: "Network.dataReceived", message: InspectorNotification<Network.DataReceivedEventDataType>): boolean;
|
|
2599
|
+
emit(event: "Network.webSocketCreated", message: InspectorNotification<Network.WebSocketCreatedEventDataType>): boolean;
|
|
2600
|
+
emit(event: "Network.webSocketClosed", message: InspectorNotification<Network.WebSocketClosedEventDataType>): boolean;
|
|
2601
|
+
emit(event: "Network.webSocketHandshakeResponseReceived", message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>): boolean;
|
|
2602
|
+
emit(event: "NodeRuntime.waitingForDisconnect"): boolean;
|
|
2603
|
+
emit(event: "NodeRuntime.waitingForDebugger"): boolean;
|
|
2604
|
+
emit(event: "Target.targetCreated", message: InspectorNotification<Target.TargetCreatedEventDataType>): boolean;
|
|
2605
|
+
emit(event: "Target.attachedToTarget", message: InspectorNotification<Target.AttachedToTargetEventDataType>): boolean;
|
|
2513
2606
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
2514
2607
|
/**
|
|
2515
2608
|
* Emitted when any notification from the V8 Inspector is received.
|
|
2516
2609
|
*/
|
|
2517
|
-
on(event:
|
|
2610
|
+
on(event: "inspectorNotification", listener: (message: InspectorNotification<object>) => void): this;
|
|
2518
2611
|
/**
|
|
2519
2612
|
* Issued when new execution context is created.
|
|
2520
2613
|
*/
|
|
2521
|
-
on(event:
|
|
2614
|
+
on(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
2522
2615
|
/**
|
|
2523
2616
|
* Issued when execution context is destroyed.
|
|
2524
2617
|
*/
|
|
2525
|
-
on(event:
|
|
2618
|
+
on(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
2526
2619
|
/**
|
|
2527
2620
|
* Issued when all executionContexts were cleared in browser
|
|
2528
2621
|
*/
|
|
2529
|
-
on(event:
|
|
2622
|
+
on(event: "Runtime.executionContextsCleared", listener: () => void): this;
|
|
2530
2623
|
/**
|
|
2531
2624
|
* Issued when exception was thrown and unhandled.
|
|
2532
2625
|
*/
|
|
2533
|
-
on(event:
|
|
2626
|
+
on(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
2534
2627
|
/**
|
|
2535
2628
|
* Issued when unhandled exception was revoked.
|
|
2536
2629
|
*/
|
|
2537
|
-
on(event:
|
|
2630
|
+
on(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
2538
2631
|
/**
|
|
2539
2632
|
* Issued when console API was called.
|
|
2540
2633
|
*/
|
|
2541
|
-
on(event:
|
|
2634
|
+
on(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
2542
2635
|
/**
|
|
2543
2636
|
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
2544
2637
|
*/
|
|
2545
|
-
on(event:
|
|
2638
|
+
on(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
2546
2639
|
/**
|
|
2547
2640
|
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
2548
2641
|
*/
|
|
2549
|
-
on(event:
|
|
2642
|
+
on(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
2550
2643
|
/**
|
|
2551
2644
|
* Fired when virtual machine fails to parse the script.
|
|
2552
2645
|
*/
|
|
2553
|
-
on(event:
|
|
2646
|
+
on(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
2554
2647
|
/**
|
|
2555
2648
|
* Fired when breakpoint is resolved to an actual script and location.
|
|
2556
2649
|
*/
|
|
2557
|
-
on(event:
|
|
2650
|
+
on(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
2558
2651
|
/**
|
|
2559
2652
|
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
2560
2653
|
*/
|
|
2561
|
-
on(event:
|
|
2654
|
+
on(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
2562
2655
|
/**
|
|
2563
2656
|
* Fired when the virtual machine resumed execution.
|
|
2564
2657
|
*/
|
|
2565
|
-
on(event:
|
|
2658
|
+
on(event: "Debugger.resumed", listener: () => void): this;
|
|
2566
2659
|
/**
|
|
2567
2660
|
* Issued when new console message is added.
|
|
2568
2661
|
*/
|
|
2569
|
-
on(event:
|
|
2662
|
+
on(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
2570
2663
|
/**
|
|
2571
2664
|
* Sent when new profile recording is started using console.profile() call.
|
|
2572
2665
|
*/
|
|
2573
|
-
on(event:
|
|
2574
|
-
on(event:
|
|
2575
|
-
on(event:
|
|
2576
|
-
on(event:
|
|
2577
|
-
on(event:
|
|
2666
|
+
on(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
2667
|
+
on(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2668
|
+
on(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2669
|
+
on(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
2670
|
+
on(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2578
2671
|
/**
|
|
2579
2672
|
* 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.
|
|
2580
2673
|
*/
|
|
2581
|
-
on(event:
|
|
2674
|
+
on(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
2582
2675
|
/**
|
|
2583
2676
|
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
2584
2677
|
*/
|
|
2585
|
-
on(event:
|
|
2678
|
+
on(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
2586
2679
|
/**
|
|
2587
2680
|
* Contains an bucket of collected trace events.
|
|
2588
2681
|
*/
|
|
2589
|
-
on(event:
|
|
2682
|
+
on(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2590
2683
|
/**
|
|
2591
2684
|
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2592
2685
|
* delivered via dataCollected events.
|
|
2593
2686
|
*/
|
|
2594
|
-
on(event:
|
|
2687
|
+
on(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
2595
2688
|
/**
|
|
2596
2689
|
* Issued when attached to a worker.
|
|
2597
2690
|
*/
|
|
2598
|
-
on(event:
|
|
2691
|
+
on(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
2599
2692
|
/**
|
|
2600
2693
|
* Issued when detached from the worker.
|
|
2601
2694
|
*/
|
|
2602
|
-
on(event:
|
|
2695
|
+
on(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
2603
2696
|
/**
|
|
2604
2697
|
* Notifies about a new protocol message received from the session
|
|
2605
2698
|
* (session ID is provided in attachedToWorker notification).
|
|
2606
2699
|
*/
|
|
2607
|
-
on(event:
|
|
2700
|
+
on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2608
2701
|
/**
|
|
2609
2702
|
* Fired when page is about to send HTTP request.
|
|
2610
2703
|
*/
|
|
2611
|
-
on(event:
|
|
2704
|
+
on(event: "Network.requestWillBeSent", listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
|
|
2612
2705
|
/**
|
|
2613
2706
|
* Fired when HTTP response is available.
|
|
2614
2707
|
*/
|
|
2615
|
-
on(event:
|
|
2616
|
-
on(event:
|
|
2617
|
-
on(event:
|
|
2708
|
+
on(event: "Network.responseReceived", listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
2709
|
+
on(event: "Network.loadingFailed", listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
2710
|
+
on(event: "Network.loadingFinished", listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
2618
2711
|
/**
|
|
2619
2712
|
* Fired when data chunk was received over the network.
|
|
2620
2713
|
*/
|
|
2621
|
-
on(event:
|
|
2714
|
+
on(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
2715
|
+
/**
|
|
2716
|
+
* Fired upon WebSocket creation.
|
|
2717
|
+
*/
|
|
2718
|
+
on(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
2719
|
+
/**
|
|
2720
|
+
* Fired when WebSocket is closed.
|
|
2721
|
+
*/
|
|
2722
|
+
on(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
2723
|
+
/**
|
|
2724
|
+
* Fired when WebSocket handshake response becomes available.
|
|
2725
|
+
*/
|
|
2726
|
+
on(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
2622
2727
|
/**
|
|
2623
2728
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2624
2729
|
* enabled.
|
|
2625
2730
|
* It is fired when the Node process finished all code execution and is
|
|
2626
2731
|
* waiting for all frontends to disconnect.
|
|
2627
2732
|
*/
|
|
2628
|
-
on(event:
|
|
2733
|
+
on(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
2629
2734
|
/**
|
|
2630
2735
|
* This event is fired when the runtime is waiting for the debugger. For
|
|
2631
2736
|
* example, when inspector.waitingForDebugger is called
|
|
2632
2737
|
*/
|
|
2633
|
-
on(event:
|
|
2634
|
-
on(event:
|
|
2635
|
-
on(event:
|
|
2738
|
+
on(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
|
|
2739
|
+
on(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
2740
|
+
on(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
2636
2741
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
2637
2742
|
/**
|
|
2638
2743
|
* Emitted when any notification from the V8 Inspector is received.
|
|
2639
2744
|
*/
|
|
2640
|
-
once(event:
|
|
2745
|
+
once(event: "inspectorNotification", listener: (message: InspectorNotification<object>) => void): this;
|
|
2641
2746
|
/**
|
|
2642
2747
|
* Issued when new execution context is created.
|
|
2643
2748
|
*/
|
|
2644
|
-
once(event:
|
|
2749
|
+
once(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
2645
2750
|
/**
|
|
2646
2751
|
* Issued when execution context is destroyed.
|
|
2647
2752
|
*/
|
|
2648
|
-
once(event:
|
|
2753
|
+
once(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
2649
2754
|
/**
|
|
2650
2755
|
* Issued when all executionContexts were cleared in browser
|
|
2651
2756
|
*/
|
|
2652
|
-
once(event:
|
|
2757
|
+
once(event: "Runtime.executionContextsCleared", listener: () => void): this;
|
|
2653
2758
|
/**
|
|
2654
2759
|
* Issued when exception was thrown and unhandled.
|
|
2655
2760
|
*/
|
|
2656
|
-
once(event:
|
|
2761
|
+
once(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
2657
2762
|
/**
|
|
2658
2763
|
* Issued when unhandled exception was revoked.
|
|
2659
2764
|
*/
|
|
2660
|
-
once(event:
|
|
2765
|
+
once(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
2661
2766
|
/**
|
|
2662
2767
|
* Issued when console API was called.
|
|
2663
2768
|
*/
|
|
2664
|
-
once(event:
|
|
2769
|
+
once(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
2665
2770
|
/**
|
|
2666
2771
|
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
2667
2772
|
*/
|
|
2668
|
-
once(event:
|
|
2773
|
+
once(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
2669
2774
|
/**
|
|
2670
2775
|
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
2671
2776
|
*/
|
|
2672
|
-
once(event:
|
|
2777
|
+
once(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
2673
2778
|
/**
|
|
2674
2779
|
* Fired when virtual machine fails to parse the script.
|
|
2675
2780
|
*/
|
|
2676
|
-
once(event:
|
|
2781
|
+
once(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
2677
2782
|
/**
|
|
2678
2783
|
* Fired when breakpoint is resolved to an actual script and location.
|
|
2679
2784
|
*/
|
|
2680
|
-
once(event:
|
|
2785
|
+
once(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
2681
2786
|
/**
|
|
2682
2787
|
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
2683
2788
|
*/
|
|
2684
|
-
once(event:
|
|
2789
|
+
once(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
2685
2790
|
/**
|
|
2686
2791
|
* Fired when the virtual machine resumed execution.
|
|
2687
2792
|
*/
|
|
2688
|
-
once(event:
|
|
2793
|
+
once(event: "Debugger.resumed", listener: () => void): this;
|
|
2689
2794
|
/**
|
|
2690
2795
|
* Issued when new console message is added.
|
|
2691
2796
|
*/
|
|
2692
|
-
once(event:
|
|
2797
|
+
once(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
2693
2798
|
/**
|
|
2694
2799
|
* Sent when new profile recording is started using console.profile() call.
|
|
2695
2800
|
*/
|
|
2696
|
-
once(event:
|
|
2697
|
-
once(event:
|
|
2698
|
-
once(event:
|
|
2699
|
-
once(event:
|
|
2700
|
-
once(event:
|
|
2801
|
+
once(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
2802
|
+
once(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2803
|
+
once(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2804
|
+
once(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
2805
|
+
once(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2701
2806
|
/**
|
|
2702
2807
|
* 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.
|
|
2703
2808
|
*/
|
|
2704
|
-
once(event:
|
|
2809
|
+
once(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
2705
2810
|
/**
|
|
2706
2811
|
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
2707
2812
|
*/
|
|
2708
|
-
once(event:
|
|
2813
|
+
once(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
2709
2814
|
/**
|
|
2710
2815
|
* Contains an bucket of collected trace events.
|
|
2711
2816
|
*/
|
|
2712
|
-
once(event:
|
|
2817
|
+
once(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2713
2818
|
/**
|
|
2714
2819
|
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2715
2820
|
* delivered via dataCollected events.
|
|
2716
2821
|
*/
|
|
2717
|
-
once(event:
|
|
2822
|
+
once(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
2718
2823
|
/**
|
|
2719
2824
|
* Issued when attached to a worker.
|
|
2720
2825
|
*/
|
|
2721
|
-
once(event:
|
|
2826
|
+
once(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
2722
2827
|
/**
|
|
2723
2828
|
* Issued when detached from the worker.
|
|
2724
2829
|
*/
|
|
2725
|
-
once(event:
|
|
2830
|
+
once(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
2726
2831
|
/**
|
|
2727
2832
|
* Notifies about a new protocol message received from the session
|
|
2728
2833
|
* (session ID is provided in attachedToWorker notification).
|
|
2729
2834
|
*/
|
|
2730
|
-
once(event:
|
|
2835
|
+
once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2731
2836
|
/**
|
|
2732
2837
|
* Fired when page is about to send HTTP request.
|
|
2733
2838
|
*/
|
|
2734
|
-
once(event:
|
|
2839
|
+
once(event: "Network.requestWillBeSent", listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
|
|
2735
2840
|
/**
|
|
2736
2841
|
* Fired when HTTP response is available.
|
|
2737
2842
|
*/
|
|
2738
|
-
once(event:
|
|
2739
|
-
once(event:
|
|
2740
|
-
once(event:
|
|
2843
|
+
once(event: "Network.responseReceived", listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
2844
|
+
once(event: "Network.loadingFailed", listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
2845
|
+
once(event: "Network.loadingFinished", listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
2741
2846
|
/**
|
|
2742
2847
|
* Fired when data chunk was received over the network.
|
|
2743
2848
|
*/
|
|
2744
|
-
once(event:
|
|
2849
|
+
once(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
2850
|
+
/**
|
|
2851
|
+
* Fired upon WebSocket creation.
|
|
2852
|
+
*/
|
|
2853
|
+
once(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
2854
|
+
/**
|
|
2855
|
+
* Fired when WebSocket is closed.
|
|
2856
|
+
*/
|
|
2857
|
+
once(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
2858
|
+
/**
|
|
2859
|
+
* Fired when WebSocket handshake response becomes available.
|
|
2860
|
+
*/
|
|
2861
|
+
once(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
2745
2862
|
/**
|
|
2746
2863
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2747
2864
|
* enabled.
|
|
2748
2865
|
* It is fired when the Node process finished all code execution and is
|
|
2749
2866
|
* waiting for all frontends to disconnect.
|
|
2750
2867
|
*/
|
|
2751
|
-
once(event:
|
|
2868
|
+
once(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
2752
2869
|
/**
|
|
2753
2870
|
* This event is fired when the runtime is waiting for the debugger. For
|
|
2754
2871
|
* example, when inspector.waitingForDebugger is called
|
|
2755
2872
|
*/
|
|
2756
|
-
once(event:
|
|
2757
|
-
once(event:
|
|
2758
|
-
once(event:
|
|
2873
|
+
once(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
|
|
2874
|
+
once(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
2875
|
+
once(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
2759
2876
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
2760
2877
|
/**
|
|
2761
2878
|
* Emitted when any notification from the V8 Inspector is received.
|
|
2762
2879
|
*/
|
|
2763
|
-
prependListener(event:
|
|
2880
|
+
prependListener(event: "inspectorNotification", listener: (message: InspectorNotification<object>) => void): this;
|
|
2764
2881
|
/**
|
|
2765
2882
|
* Issued when new execution context is created.
|
|
2766
2883
|
*/
|
|
2767
|
-
prependListener(event:
|
|
2884
|
+
prependListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
2768
2885
|
/**
|
|
2769
2886
|
* Issued when execution context is destroyed.
|
|
2770
2887
|
*/
|
|
2771
|
-
prependListener(event:
|
|
2888
|
+
prependListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
2772
2889
|
/**
|
|
2773
2890
|
* Issued when all executionContexts were cleared in browser
|
|
2774
2891
|
*/
|
|
2775
|
-
prependListener(event:
|
|
2892
|
+
prependListener(event: "Runtime.executionContextsCleared", listener: () => void): this;
|
|
2776
2893
|
/**
|
|
2777
2894
|
* Issued when exception was thrown and unhandled.
|
|
2778
2895
|
*/
|
|
2779
|
-
prependListener(event:
|
|
2896
|
+
prependListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
2780
2897
|
/**
|
|
2781
2898
|
* Issued when unhandled exception was revoked.
|
|
2782
2899
|
*/
|
|
2783
|
-
prependListener(event:
|
|
2900
|
+
prependListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
2784
2901
|
/**
|
|
2785
2902
|
* Issued when console API was called.
|
|
2786
2903
|
*/
|
|
2787
|
-
prependListener(event:
|
|
2904
|
+
prependListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
2788
2905
|
/**
|
|
2789
2906
|
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
2790
2907
|
*/
|
|
2791
|
-
prependListener(event:
|
|
2908
|
+
prependListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
2792
2909
|
/**
|
|
2793
2910
|
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
2794
2911
|
*/
|
|
2795
|
-
prependListener(event:
|
|
2912
|
+
prependListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
2796
2913
|
/**
|
|
2797
2914
|
* Fired when virtual machine fails to parse the script.
|
|
2798
2915
|
*/
|
|
2799
|
-
prependListener(event:
|
|
2916
|
+
prependListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
2800
2917
|
/**
|
|
2801
2918
|
* Fired when breakpoint is resolved to an actual script and location.
|
|
2802
2919
|
*/
|
|
2803
|
-
prependListener(event:
|
|
2920
|
+
prependListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
2804
2921
|
/**
|
|
2805
2922
|
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
2806
2923
|
*/
|
|
2807
|
-
prependListener(event:
|
|
2924
|
+
prependListener(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
2808
2925
|
/**
|
|
2809
2926
|
* Fired when the virtual machine resumed execution.
|
|
2810
2927
|
*/
|
|
2811
|
-
prependListener(event:
|
|
2928
|
+
prependListener(event: "Debugger.resumed", listener: () => void): this;
|
|
2812
2929
|
/**
|
|
2813
2930
|
* Issued when new console message is added.
|
|
2814
2931
|
*/
|
|
2815
|
-
prependListener(event:
|
|
2932
|
+
prependListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
2816
2933
|
/**
|
|
2817
2934
|
* Sent when new profile recording is started using console.profile() call.
|
|
2818
2935
|
*/
|
|
2819
|
-
prependListener(event:
|
|
2820
|
-
prependListener(event:
|
|
2821
|
-
prependListener(event:
|
|
2822
|
-
prependListener(event:
|
|
2823
|
-
prependListener(event:
|
|
2936
|
+
prependListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
2937
|
+
prependListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2938
|
+
prependListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2939
|
+
prependListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
2940
|
+
prependListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2824
2941
|
/**
|
|
2825
2942
|
* 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.
|
|
2826
2943
|
*/
|
|
2827
|
-
prependListener(event:
|
|
2944
|
+
prependListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
2828
2945
|
/**
|
|
2829
2946
|
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
2830
2947
|
*/
|
|
2831
|
-
prependListener(event:
|
|
2948
|
+
prependListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
2832
2949
|
/**
|
|
2833
2950
|
* Contains an bucket of collected trace events.
|
|
2834
2951
|
*/
|
|
2835
|
-
prependListener(event:
|
|
2952
|
+
prependListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2836
2953
|
/**
|
|
2837
2954
|
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2838
2955
|
* delivered via dataCollected events.
|
|
2839
2956
|
*/
|
|
2840
|
-
prependListener(event:
|
|
2957
|
+
prependListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
2841
2958
|
/**
|
|
2842
2959
|
* Issued when attached to a worker.
|
|
2843
2960
|
*/
|
|
2844
|
-
prependListener(event:
|
|
2961
|
+
prependListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
2845
2962
|
/**
|
|
2846
2963
|
* Issued when detached from the worker.
|
|
2847
2964
|
*/
|
|
2848
|
-
prependListener(event:
|
|
2965
|
+
prependListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
2849
2966
|
/**
|
|
2850
2967
|
* Notifies about a new protocol message received from the session
|
|
2851
2968
|
* (session ID is provided in attachedToWorker notification).
|
|
2852
2969
|
*/
|
|
2853
|
-
prependListener(event:
|
|
2970
|
+
prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2854
2971
|
/**
|
|
2855
2972
|
* Fired when page is about to send HTTP request.
|
|
2856
2973
|
*/
|
|
2857
|
-
prependListener(event:
|
|
2974
|
+
prependListener(event: "Network.requestWillBeSent", listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
|
|
2858
2975
|
/**
|
|
2859
2976
|
* Fired when HTTP response is available.
|
|
2860
2977
|
*/
|
|
2861
|
-
prependListener(event:
|
|
2862
|
-
prependListener(event:
|
|
2863
|
-
prependListener(event:
|
|
2978
|
+
prependListener(event: "Network.responseReceived", listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
2979
|
+
prependListener(event: "Network.loadingFailed", listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
2980
|
+
prependListener(event: "Network.loadingFinished", listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
2864
2981
|
/**
|
|
2865
2982
|
* Fired when data chunk was received over the network.
|
|
2866
2983
|
*/
|
|
2867
|
-
prependListener(event:
|
|
2984
|
+
prependListener(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
2985
|
+
/**
|
|
2986
|
+
* Fired upon WebSocket creation.
|
|
2987
|
+
*/
|
|
2988
|
+
prependListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
2989
|
+
/**
|
|
2990
|
+
* Fired when WebSocket is closed.
|
|
2991
|
+
*/
|
|
2992
|
+
prependListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
2993
|
+
/**
|
|
2994
|
+
* Fired when WebSocket handshake response becomes available.
|
|
2995
|
+
*/
|
|
2996
|
+
prependListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
2868
2997
|
/**
|
|
2869
2998
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2870
2999
|
* enabled.
|
|
2871
3000
|
* It is fired when the Node process finished all code execution and is
|
|
2872
3001
|
* waiting for all frontends to disconnect.
|
|
2873
3002
|
*/
|
|
2874
|
-
prependListener(event:
|
|
3003
|
+
prependListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
2875
3004
|
/**
|
|
2876
3005
|
* This event is fired when the runtime is waiting for the debugger. For
|
|
2877
3006
|
* example, when inspector.waitingForDebugger is called
|
|
2878
3007
|
*/
|
|
2879
|
-
prependListener(event:
|
|
2880
|
-
prependListener(event:
|
|
2881
|
-
prependListener(event:
|
|
3008
|
+
prependListener(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
|
|
3009
|
+
prependListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
3010
|
+
prependListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
2882
3011
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
2883
3012
|
/**
|
|
2884
3013
|
* Emitted when any notification from the V8 Inspector is received.
|
|
2885
3014
|
*/
|
|
2886
|
-
prependOnceListener(event:
|
|
3015
|
+
prependOnceListener(event: "inspectorNotification", listener: (message: InspectorNotification<object>) => void): this;
|
|
2887
3016
|
/**
|
|
2888
3017
|
* Issued when new execution context is created.
|
|
2889
3018
|
*/
|
|
2890
|
-
prependOnceListener(event:
|
|
3019
|
+
prependOnceListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
2891
3020
|
/**
|
|
2892
3021
|
* Issued when execution context is destroyed.
|
|
2893
3022
|
*/
|
|
2894
|
-
prependOnceListener(event:
|
|
3023
|
+
prependOnceListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
2895
3024
|
/**
|
|
2896
3025
|
* Issued when all executionContexts were cleared in browser
|
|
2897
3026
|
*/
|
|
2898
|
-
prependOnceListener(event:
|
|
3027
|
+
prependOnceListener(event: "Runtime.executionContextsCleared", listener: () => void): this;
|
|
2899
3028
|
/**
|
|
2900
3029
|
* Issued when exception was thrown and unhandled.
|
|
2901
3030
|
*/
|
|
2902
|
-
prependOnceListener(event:
|
|
3031
|
+
prependOnceListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
2903
3032
|
/**
|
|
2904
3033
|
* Issued when unhandled exception was revoked.
|
|
2905
3034
|
*/
|
|
2906
|
-
prependOnceListener(event:
|
|
3035
|
+
prependOnceListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
2907
3036
|
/**
|
|
2908
3037
|
* Issued when console API was called.
|
|
2909
3038
|
*/
|
|
2910
|
-
prependOnceListener(event:
|
|
3039
|
+
prependOnceListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
2911
3040
|
/**
|
|
2912
3041
|
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
2913
3042
|
*/
|
|
2914
|
-
prependOnceListener(event:
|
|
3043
|
+
prependOnceListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
2915
3044
|
/**
|
|
2916
3045
|
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
2917
3046
|
*/
|
|
2918
|
-
prependOnceListener(event:
|
|
3047
|
+
prependOnceListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
2919
3048
|
/**
|
|
2920
3049
|
* Fired when virtual machine fails to parse the script.
|
|
2921
3050
|
*/
|
|
2922
|
-
prependOnceListener(event:
|
|
3051
|
+
prependOnceListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
2923
3052
|
/**
|
|
2924
3053
|
* Fired when breakpoint is resolved to an actual script and location.
|
|
2925
3054
|
*/
|
|
2926
|
-
prependOnceListener(event:
|
|
3055
|
+
prependOnceListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
2927
3056
|
/**
|
|
2928
3057
|
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
2929
3058
|
*/
|
|
2930
|
-
prependOnceListener(event:
|
|
3059
|
+
prependOnceListener(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
2931
3060
|
/**
|
|
2932
3061
|
* Fired when the virtual machine resumed execution.
|
|
2933
3062
|
*/
|
|
2934
|
-
prependOnceListener(event:
|
|
3063
|
+
prependOnceListener(event: "Debugger.resumed", listener: () => void): this;
|
|
2935
3064
|
/**
|
|
2936
3065
|
* Issued when new console message is added.
|
|
2937
3066
|
*/
|
|
2938
|
-
prependOnceListener(event:
|
|
3067
|
+
prependOnceListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
2939
3068
|
/**
|
|
2940
3069
|
* Sent when new profile recording is started using console.profile() call.
|
|
2941
3070
|
*/
|
|
2942
|
-
prependOnceListener(event:
|
|
2943
|
-
prependOnceListener(event:
|
|
2944
|
-
prependOnceListener(event:
|
|
2945
|
-
prependOnceListener(event:
|
|
2946
|
-
prependOnceListener(event:
|
|
3071
|
+
prependOnceListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
3072
|
+
prependOnceListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
3073
|
+
prependOnceListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
3074
|
+
prependOnceListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
3075
|
+
prependOnceListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2947
3076
|
/**
|
|
2948
3077
|
* 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.
|
|
2949
3078
|
*/
|
|
2950
|
-
prependOnceListener(event:
|
|
3079
|
+
prependOnceListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
2951
3080
|
/**
|
|
2952
3081
|
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
2953
3082
|
*/
|
|
2954
|
-
prependOnceListener(event:
|
|
3083
|
+
prependOnceListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
2955
3084
|
/**
|
|
2956
3085
|
* Contains an bucket of collected trace events.
|
|
2957
3086
|
*/
|
|
2958
|
-
prependOnceListener(event:
|
|
3087
|
+
prependOnceListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2959
3088
|
/**
|
|
2960
3089
|
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2961
3090
|
* delivered via dataCollected events.
|
|
2962
3091
|
*/
|
|
2963
|
-
prependOnceListener(event:
|
|
3092
|
+
prependOnceListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
2964
3093
|
/**
|
|
2965
3094
|
* Issued when attached to a worker.
|
|
2966
3095
|
*/
|
|
2967
|
-
prependOnceListener(event:
|
|
3096
|
+
prependOnceListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
2968
3097
|
/**
|
|
2969
3098
|
* Issued when detached from the worker.
|
|
2970
3099
|
*/
|
|
2971
|
-
prependOnceListener(event:
|
|
3100
|
+
prependOnceListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
2972
3101
|
/**
|
|
2973
3102
|
* Notifies about a new protocol message received from the session
|
|
2974
3103
|
* (session ID is provided in attachedToWorker notification).
|
|
2975
3104
|
*/
|
|
2976
|
-
prependOnceListener(event:
|
|
3105
|
+
prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2977
3106
|
/**
|
|
2978
3107
|
* Fired when page is about to send HTTP request.
|
|
2979
3108
|
*/
|
|
2980
|
-
prependOnceListener(event:
|
|
3109
|
+
prependOnceListener(event: "Network.requestWillBeSent", listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
|
|
2981
3110
|
/**
|
|
2982
3111
|
* Fired when HTTP response is available.
|
|
2983
3112
|
*/
|
|
2984
|
-
prependOnceListener(event:
|
|
2985
|
-
prependOnceListener(event:
|
|
2986
|
-
prependOnceListener(event:
|
|
3113
|
+
prependOnceListener(event: "Network.responseReceived", listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
3114
|
+
prependOnceListener(event: "Network.loadingFailed", listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
3115
|
+
prependOnceListener(event: "Network.loadingFinished", listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
2987
3116
|
/**
|
|
2988
3117
|
* Fired when data chunk was received over the network.
|
|
2989
3118
|
*/
|
|
2990
|
-
prependOnceListener(event:
|
|
2991
|
-
/**
|
|
2992
|
-
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2993
|
-
* enabled.
|
|
2994
|
-
* It is fired when the Node process finished all code execution and is
|
|
2995
|
-
* waiting for all frontends to disconnect.
|
|
2996
|
-
*/
|
|
2997
|
-
prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
|
|
3119
|
+
prependOnceListener(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
2998
3120
|
/**
|
|
2999
|
-
*
|
|
3000
|
-
* example, when inspector.waitingForDebugger is called
|
|
3001
|
-
*/
|
|
3002
|
-
prependOnceListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
|
|
3003
|
-
prependOnceListener(event: 'Target.targetCreated', listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
3004
|
-
prependOnceListener(event: 'Target.attachedToTarget', listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
3005
|
-
}
|
|
3006
|
-
|
|
3007
|
-
/**
|
|
3008
|
-
* Activate inspector on host and port. Equivalent to `node --inspect=[[host:]port]`, but can be done programmatically after node has
|
|
3009
|
-
* started.
|
|
3010
|
-
*
|
|
3011
|
-
* If wait is `true`, will block until a client has connected to the inspect port
|
|
3012
|
-
* and flow control has been passed to the debugger client.
|
|
3013
|
-
*
|
|
3014
|
-
* See the [security warning](https://nodejs.org/docs/latest-v22.x/api/cli.html#warning-binding-inspector-to-a-public-ipport-combination-is-insecure)
|
|
3015
|
-
* regarding the `host` parameter usage.
|
|
3016
|
-
* @param port Port to listen on for inspector connections. Defaults to what was specified on the CLI.
|
|
3017
|
-
* @param host Host to listen on for inspector connections. Defaults to what was specified on the CLI.
|
|
3018
|
-
* @param wait Block until a client has connected. Defaults to what was specified on the CLI.
|
|
3019
|
-
* @returns Disposable that calls `inspector.close()`.
|
|
3020
|
-
*/
|
|
3021
|
-
function open(port?: number, host?: string, wait?: boolean): Disposable;
|
|
3022
|
-
|
|
3023
|
-
/**
|
|
3024
|
-
* Deactivate the inspector. Blocks until there are no active connections.
|
|
3025
|
-
*/
|
|
3026
|
-
function close(): void;
|
|
3027
|
-
|
|
3028
|
-
/**
|
|
3029
|
-
* Return the URL of the active inspector, or `undefined` if there is none.
|
|
3030
|
-
*
|
|
3031
|
-
* ```console
|
|
3032
|
-
* $ node --inspect -p 'inspector.url()'
|
|
3033
|
-
* Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
|
|
3034
|
-
* For help, see: https://nodejs.org/en/docs/inspector
|
|
3035
|
-
* ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
|
|
3036
|
-
*
|
|
3037
|
-
* $ node --inspect=localhost:3000 -p 'inspector.url()'
|
|
3038
|
-
* Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
|
|
3039
|
-
* For help, see: https://nodejs.org/en/docs/inspector
|
|
3040
|
-
* ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
|
|
3041
|
-
*
|
|
3042
|
-
* $ node -p 'inspector.url()'
|
|
3043
|
-
* undefined
|
|
3044
|
-
* ```
|
|
3045
|
-
*/
|
|
3046
|
-
function url(): string | undefined;
|
|
3047
|
-
|
|
3048
|
-
/**
|
|
3049
|
-
* Blocks until a client (existing or connected later) has sent `Runtime.runIfWaitingForDebugger` command.
|
|
3050
|
-
*
|
|
3051
|
-
* An exception will be thrown if there is no active inspector.
|
|
3052
|
-
* @since v12.7.0
|
|
3053
|
-
*/
|
|
3054
|
-
function waitForDebugger(): void;
|
|
3055
|
-
|
|
3056
|
-
// These methods are exposed by the V8 inspector console API (inspector/v8-console.h).
|
|
3057
|
-
// The method signatures differ from those of the Node.js console, and are deliberately
|
|
3058
|
-
// typed permissively.
|
|
3059
|
-
interface InspectorConsole {
|
|
3060
|
-
debug(...data: any[]): void;
|
|
3061
|
-
error(...data: any[]): void;
|
|
3062
|
-
info(...data: any[]): void;
|
|
3063
|
-
log(...data: any[]): void;
|
|
3064
|
-
warn(...data: any[]): void;
|
|
3065
|
-
dir(...data: any[]): void;
|
|
3066
|
-
dirxml(...data: any[]): void;
|
|
3067
|
-
table(...data: any[]): void;
|
|
3068
|
-
trace(...data: any[]): void;
|
|
3069
|
-
group(...data: any[]): void;
|
|
3070
|
-
groupCollapsed(...data: any[]): void;
|
|
3071
|
-
groupEnd(...data: any[]): void;
|
|
3072
|
-
clear(...data: any[]): void;
|
|
3073
|
-
count(label?: any): void;
|
|
3074
|
-
countReset(label?: any): void;
|
|
3075
|
-
assert(value?: any, ...data: any[]): void;
|
|
3076
|
-
profile(label?: any): void;
|
|
3077
|
-
profileEnd(label?: any): void;
|
|
3078
|
-
time(label?: any): void;
|
|
3079
|
-
timeLog(label?: any): void;
|
|
3080
|
-
timeStamp(label?: any): void;
|
|
3081
|
-
}
|
|
3082
|
-
|
|
3083
|
-
/**
|
|
3084
|
-
* An object to send messages to the remote inspector console.
|
|
3085
|
-
* @since v11.0.0
|
|
3086
|
-
*/
|
|
3087
|
-
const console: InspectorConsole;
|
|
3088
|
-
|
|
3089
|
-
// DevTools protocol event broadcast methods
|
|
3090
|
-
namespace Network {
|
|
3091
|
-
/**
|
|
3092
|
-
* This feature is only available with the `--experimental-network-inspection` flag enabled.
|
|
3093
|
-
*
|
|
3094
|
-
* Broadcasts the `Network.requestWillBeSent` event to connected frontends. This event indicates that
|
|
3095
|
-
* the application is about to send an HTTP request.
|
|
3096
|
-
* @since v22.6.0
|
|
3097
|
-
*/
|
|
3098
|
-
function requestWillBeSent(params: RequestWillBeSentEventDataType): void;
|
|
3099
|
-
/**
|
|
3100
|
-
* This feature is only available with the `--experimental-network-inspection` flag enabled.
|
|
3101
|
-
*
|
|
3102
|
-
* Broadcasts the `Network.dataReceived` event to connected frontends, or buffers the data if
|
|
3103
|
-
* `Network.streamResourceContent` command was not invoked for the given request yet.
|
|
3104
|
-
*
|
|
3105
|
-
* Also enables `Network.getResponseBody` command to retrieve the response data.
|
|
3106
|
-
* @since v22.17.0
|
|
3121
|
+
* Fired upon WebSocket creation.
|
|
3107
3122
|
*/
|
|
3108
|
-
|
|
3123
|
+
prependOnceListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
3109
3124
|
/**
|
|
3110
|
-
*
|
|
3111
|
-
*
|
|
3112
|
-
* Enables `Network.getRequestPostData` command to retrieve the request data.
|
|
3113
|
-
* @since v22.18.0
|
|
3125
|
+
* Fired when WebSocket is closed.
|
|
3114
3126
|
*/
|
|
3115
|
-
|
|
3127
|
+
prependOnceListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
3116
3128
|
/**
|
|
3117
|
-
*
|
|
3118
|
-
*
|
|
3119
|
-
* Broadcasts the `Network.responseReceived` event to connected frontends. This event indicates that
|
|
3120
|
-
* HTTP response is available.
|
|
3121
|
-
* @since v22.6.0
|
|
3129
|
+
* Fired when WebSocket handshake response becomes available.
|
|
3122
3130
|
*/
|
|
3123
|
-
|
|
3131
|
+
prependOnceListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
3124
3132
|
/**
|
|
3125
|
-
* This
|
|
3126
|
-
*
|
|
3127
|
-
*
|
|
3128
|
-
*
|
|
3129
|
-
* @since v22.6.0
|
|
3133
|
+
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
3134
|
+
* enabled.
|
|
3135
|
+
* It is fired when the Node process finished all code execution and is
|
|
3136
|
+
* waiting for all frontends to disconnect.
|
|
3130
3137
|
*/
|
|
3131
|
-
|
|
3138
|
+
prependOnceListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
3132
3139
|
/**
|
|
3133
|
-
* This
|
|
3134
|
-
*
|
|
3135
|
-
* Broadcasts the `Network.loadingFailed` event to connected frontends. This event indicates that
|
|
3136
|
-
* HTTP request has failed to load.
|
|
3137
|
-
* @since v22.7.0
|
|
3140
|
+
* This event is fired when the runtime is waiting for the debugger. For
|
|
3141
|
+
* example, when inspector.waitingForDebugger is called
|
|
3138
3142
|
*/
|
|
3139
|
-
|
|
3143
|
+
prependOnceListener(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
|
|
3144
|
+
prependOnceListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
3145
|
+
prependOnceListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
3140
3146
|
}
|
|
3141
3147
|
}
|
|
3142
3148
|
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
+
declare module "inspector/promises" {
|
|
3150
|
+
export {
|
|
3151
|
+
Schema,
|
|
3152
|
+
Runtime,
|
|
3153
|
+
Debugger,
|
|
3154
|
+
Console,
|
|
3155
|
+
Profiler,
|
|
3156
|
+
HeapProfiler,
|
|
3157
|
+
NodeTracing,
|
|
3158
|
+
NodeWorker,
|
|
3159
|
+
Network,
|
|
3160
|
+
NodeRuntime,
|
|
3161
|
+
Target,
|
|
3162
|
+
IO,
|
|
3163
|
+
} from 'inspector';
|
|
3149
3164
|
}
|
|
3150
3165
|
|
|
3151
|
-
|
|
3152
|
-
* The `node:inspector/promises` module provides an API for interacting with the V8
|
|
3153
|
-
* inspector.
|
|
3154
|
-
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/inspector/promises.js)
|
|
3155
|
-
* @since v19.0.0
|
|
3156
|
-
*/
|
|
3157
|
-
declare module 'inspector/promises' {
|
|
3158
|
-
import EventEmitter = require('node:events');
|
|
3166
|
+
declare module "inspector/promises" {
|
|
3159
3167
|
import {
|
|
3160
|
-
open,
|
|
3161
|
-
close,
|
|
3162
|
-
url,
|
|
3163
|
-
waitForDebugger,
|
|
3164
|
-
console,
|
|
3165
3168
|
InspectorNotification,
|
|
3166
3169
|
Schema,
|
|
3167
3170
|
Runtime,
|
|
@@ -3174,38 +3177,15 @@ declare module 'inspector/promises' {
|
|
|
3174
3177
|
Network,
|
|
3175
3178
|
NodeRuntime,
|
|
3176
3179
|
Target,
|
|
3177
|
-
|
|
3180
|
+
IO,
|
|
3181
|
+
} from "inspector";
|
|
3178
3182
|
|
|
3179
3183
|
/**
|
|
3180
3184
|
* The `inspector.Session` is used for dispatching messages to the V8 inspector
|
|
3181
3185
|
* back-end and receiving message responses and notifications.
|
|
3182
3186
|
* @since v19.0.0
|
|
3183
3187
|
*/
|
|
3184
|
-
|
|
3185
|
-
/**
|
|
3186
|
-
* Create a new instance of the `inspector.Session` class.
|
|
3187
|
-
* The inspector session needs to be connected through `session.connect()` before the messages can be dispatched to the inspector backend.
|
|
3188
|
-
*/
|
|
3189
|
-
constructor();
|
|
3190
|
-
|
|
3191
|
-
/**
|
|
3192
|
-
* Connects a session to the inspector back-end.
|
|
3193
|
-
*/
|
|
3194
|
-
connect(): void;
|
|
3195
|
-
|
|
3196
|
-
/**
|
|
3197
|
-
* Connects a session to the inspector back-end.
|
|
3198
|
-
* An exception will be thrown if this API was not called on a Worker thread.
|
|
3199
|
-
*/
|
|
3200
|
-
connectToMainThread(): void;
|
|
3201
|
-
|
|
3202
|
-
/**
|
|
3203
|
-
* Immediately close the session. All pending message callbacks will be called with an error.
|
|
3204
|
-
* `session.connect()` will need to be called to be able to send messages again.
|
|
3205
|
-
* Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints.
|
|
3206
|
-
*/
|
|
3207
|
-
disconnect(): void;
|
|
3208
|
-
|
|
3188
|
+
interface Session {
|
|
3209
3189
|
/**
|
|
3210
3190
|
* Posts a message to the inspector back-end.
|
|
3211
3191
|
*
|
|
@@ -3234,978 +3214,1020 @@ declare module 'inspector/promises' {
|
|
|
3234
3214
|
/**
|
|
3235
3215
|
* Returns supported domains.
|
|
3236
3216
|
*/
|
|
3237
|
-
post(method:
|
|
3217
|
+
post(method: "Schema.getDomains"): Promise<Schema.GetDomainsReturnType>;
|
|
3238
3218
|
/**
|
|
3239
3219
|
* Evaluates expression on global object.
|
|
3240
3220
|
*/
|
|
3241
|
-
post(method:
|
|
3221
|
+
post(method: "Runtime.evaluate", params?: Runtime.EvaluateParameterType): Promise<Runtime.EvaluateReturnType>;
|
|
3242
3222
|
/**
|
|
3243
3223
|
* Add handler to promise with given promise object id.
|
|
3244
3224
|
*/
|
|
3245
|
-
post(method:
|
|
3225
|
+
post(method: "Runtime.awaitPromise", params?: Runtime.AwaitPromiseParameterType): Promise<Runtime.AwaitPromiseReturnType>;
|
|
3246
3226
|
/**
|
|
3247
3227
|
* Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
|
|
3248
3228
|
*/
|
|
3249
|
-
post(method:
|
|
3229
|
+
post(method: "Runtime.callFunctionOn", params?: Runtime.CallFunctionOnParameterType): Promise<Runtime.CallFunctionOnReturnType>;
|
|
3250
3230
|
/**
|
|
3251
3231
|
* Returns properties of a given object. Object group of the result is inherited from the target object.
|
|
3252
3232
|
*/
|
|
3253
|
-
post(method:
|
|
3233
|
+
post(method: "Runtime.getProperties", params?: Runtime.GetPropertiesParameterType): Promise<Runtime.GetPropertiesReturnType>;
|
|
3254
3234
|
/**
|
|
3255
3235
|
* Releases remote object with given id.
|
|
3256
3236
|
*/
|
|
3257
|
-
post(method:
|
|
3237
|
+
post(method: "Runtime.releaseObject", params?: Runtime.ReleaseObjectParameterType): Promise<void>;
|
|
3258
3238
|
/**
|
|
3259
3239
|
* Releases all remote objects that belong to a given group.
|
|
3260
3240
|
*/
|
|
3261
|
-
post(method:
|
|
3241
|
+
post(method: "Runtime.releaseObjectGroup", params?: Runtime.ReleaseObjectGroupParameterType): Promise<void>;
|
|
3262
3242
|
/**
|
|
3263
3243
|
* Tells inspected instance to run if it was waiting for debugger to attach.
|
|
3264
3244
|
*/
|
|
3265
|
-
post(method:
|
|
3245
|
+
post(method: "Runtime.runIfWaitingForDebugger"): Promise<void>;
|
|
3266
3246
|
/**
|
|
3267
3247
|
* Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context.
|
|
3268
3248
|
*/
|
|
3269
|
-
post(method:
|
|
3249
|
+
post(method: "Runtime.enable"): Promise<void>;
|
|
3270
3250
|
/**
|
|
3271
3251
|
* Disables reporting of execution contexts creation.
|
|
3272
3252
|
*/
|
|
3273
|
-
post(method:
|
|
3253
|
+
post(method: "Runtime.disable"): Promise<void>;
|
|
3274
3254
|
/**
|
|
3275
3255
|
* Discards collected exceptions and console API calls.
|
|
3276
3256
|
*/
|
|
3277
|
-
post(method:
|
|
3257
|
+
post(method: "Runtime.discardConsoleEntries"): Promise<void>;
|
|
3278
3258
|
/**
|
|
3279
3259
|
* @experimental
|
|
3280
3260
|
*/
|
|
3281
|
-
post(method:
|
|
3261
|
+
post(method: "Runtime.setCustomObjectFormatterEnabled", params?: Runtime.SetCustomObjectFormatterEnabledParameterType): Promise<void>;
|
|
3282
3262
|
/**
|
|
3283
3263
|
* Compiles expression.
|
|
3284
3264
|
*/
|
|
3285
|
-
post(method:
|
|
3265
|
+
post(method: "Runtime.compileScript", params?: Runtime.CompileScriptParameterType): Promise<Runtime.CompileScriptReturnType>;
|
|
3286
3266
|
/**
|
|
3287
3267
|
* Runs script with given id in a given context.
|
|
3288
3268
|
*/
|
|
3289
|
-
post(method:
|
|
3290
|
-
post(method:
|
|
3269
|
+
post(method: "Runtime.runScript", params?: Runtime.RunScriptParameterType): Promise<Runtime.RunScriptReturnType>;
|
|
3270
|
+
post(method: "Runtime.queryObjects", params?: Runtime.QueryObjectsParameterType): Promise<Runtime.QueryObjectsReturnType>;
|
|
3291
3271
|
/**
|
|
3292
3272
|
* Returns all let, const and class variables from global scope.
|
|
3293
3273
|
*/
|
|
3294
|
-
post(method:
|
|
3274
|
+
post(method: "Runtime.globalLexicalScopeNames", params?: Runtime.GlobalLexicalScopeNamesParameterType): Promise<Runtime.GlobalLexicalScopeNamesReturnType>;
|
|
3295
3275
|
/**
|
|
3296
3276
|
* Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
|
|
3297
3277
|
*/
|
|
3298
|
-
post(method:
|
|
3278
|
+
post(method: "Debugger.enable"): Promise<Debugger.EnableReturnType>;
|
|
3299
3279
|
/**
|
|
3300
3280
|
* Disables debugger for given page.
|
|
3301
3281
|
*/
|
|
3302
|
-
post(method:
|
|
3282
|
+
post(method: "Debugger.disable"): Promise<void>;
|
|
3303
3283
|
/**
|
|
3304
3284
|
* Activates / deactivates all breakpoints on the page.
|
|
3305
3285
|
*/
|
|
3306
|
-
post(method:
|
|
3286
|
+
post(method: "Debugger.setBreakpointsActive", params?: Debugger.SetBreakpointsActiveParameterType): Promise<void>;
|
|
3307
3287
|
/**
|
|
3308
3288
|
* Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
|
|
3309
3289
|
*/
|
|
3310
|
-
post(method:
|
|
3290
|
+
post(method: "Debugger.setSkipAllPauses", params?: Debugger.SetSkipAllPausesParameterType): Promise<void>;
|
|
3311
3291
|
/**
|
|
3312
3292
|
* 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 <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads.
|
|
3313
3293
|
*/
|
|
3314
|
-
post(method:
|
|
3294
|
+
post(method: "Debugger.setBreakpointByUrl", params?: Debugger.SetBreakpointByUrlParameterType): Promise<Debugger.SetBreakpointByUrlReturnType>;
|
|
3315
3295
|
/**
|
|
3316
3296
|
* Sets JavaScript breakpoint at a given location.
|
|
3317
3297
|
*/
|
|
3318
|
-
post(method:
|
|
3298
|
+
post(method: "Debugger.setBreakpoint", params?: Debugger.SetBreakpointParameterType): Promise<Debugger.SetBreakpointReturnType>;
|
|
3319
3299
|
/**
|
|
3320
3300
|
* Removes JavaScript breakpoint.
|
|
3321
3301
|
*/
|
|
3322
|
-
post(method:
|
|
3302
|
+
post(method: "Debugger.removeBreakpoint", params?: Debugger.RemoveBreakpointParameterType): Promise<void>;
|
|
3323
3303
|
/**
|
|
3324
3304
|
* Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
|
|
3325
3305
|
*/
|
|
3326
|
-
post(method:
|
|
3306
|
+
post(method: "Debugger.getPossibleBreakpoints", params?: Debugger.GetPossibleBreakpointsParameterType): Promise<Debugger.GetPossibleBreakpointsReturnType>;
|
|
3327
3307
|
/**
|
|
3328
3308
|
* Continues execution until specific location is reached.
|
|
3329
3309
|
*/
|
|
3330
|
-
post(method:
|
|
3310
|
+
post(method: "Debugger.continueToLocation", params?: Debugger.ContinueToLocationParameterType): Promise<void>;
|
|
3331
3311
|
/**
|
|
3332
3312
|
* @experimental
|
|
3333
3313
|
*/
|
|
3334
|
-
post(method:
|
|
3314
|
+
post(method: "Debugger.pauseOnAsyncCall", params?: Debugger.PauseOnAsyncCallParameterType): Promise<void>;
|
|
3335
3315
|
/**
|
|
3336
3316
|
* Steps over the statement.
|
|
3337
3317
|
*/
|
|
3338
|
-
post(method:
|
|
3318
|
+
post(method: "Debugger.stepOver"): Promise<void>;
|
|
3339
3319
|
/**
|
|
3340
3320
|
* Steps into the function call.
|
|
3341
3321
|
*/
|
|
3342
|
-
post(method:
|
|
3322
|
+
post(method: "Debugger.stepInto", params?: Debugger.StepIntoParameterType): Promise<void>;
|
|
3343
3323
|
/**
|
|
3344
3324
|
* Steps out of the function call.
|
|
3345
3325
|
*/
|
|
3346
|
-
post(method:
|
|
3326
|
+
post(method: "Debugger.stepOut"): Promise<void>;
|
|
3347
3327
|
/**
|
|
3348
3328
|
* Stops on the next JavaScript statement.
|
|
3349
3329
|
*/
|
|
3350
|
-
post(method:
|
|
3330
|
+
post(method: "Debugger.pause"): Promise<void>;
|
|
3351
3331
|
/**
|
|
3352
3332
|
* 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.
|
|
3353
3333
|
* @experimental
|
|
3354
3334
|
*/
|
|
3355
|
-
post(method:
|
|
3335
|
+
post(method: "Debugger.scheduleStepIntoAsync"): Promise<void>;
|
|
3356
3336
|
/**
|
|
3357
3337
|
* Resumes JavaScript execution.
|
|
3358
3338
|
*/
|
|
3359
|
-
post(method:
|
|
3339
|
+
post(method: "Debugger.resume"): Promise<void>;
|
|
3360
3340
|
/**
|
|
3361
3341
|
* Returns stack trace with given <code>stackTraceId</code>.
|
|
3362
3342
|
* @experimental
|
|
3363
3343
|
*/
|
|
3364
|
-
post(method:
|
|
3344
|
+
post(method: "Debugger.getStackTrace", params?: Debugger.GetStackTraceParameterType): Promise<Debugger.GetStackTraceReturnType>;
|
|
3365
3345
|
/**
|
|
3366
3346
|
* Searches for given string in script content.
|
|
3367
3347
|
*/
|
|
3368
|
-
post(method:
|
|
3348
|
+
post(method: "Debugger.searchInContent", params?: Debugger.SearchInContentParameterType): Promise<Debugger.SearchInContentReturnType>;
|
|
3369
3349
|
/**
|
|
3370
3350
|
* Edits JavaScript source live.
|
|
3371
3351
|
*/
|
|
3372
|
-
post(method:
|
|
3352
|
+
post(method: "Debugger.setScriptSource", params?: Debugger.SetScriptSourceParameterType): Promise<Debugger.SetScriptSourceReturnType>;
|
|
3373
3353
|
/**
|
|
3374
3354
|
* Restarts particular call frame from the beginning.
|
|
3375
3355
|
*/
|
|
3376
|
-
post(method:
|
|
3356
|
+
post(method: "Debugger.restartFrame", params?: Debugger.RestartFrameParameterType): Promise<Debugger.RestartFrameReturnType>;
|
|
3377
3357
|
/**
|
|
3378
3358
|
* Returns source for the script with given id.
|
|
3379
3359
|
*/
|
|
3380
|
-
post(method:
|
|
3360
|
+
post(method: "Debugger.getScriptSource", params?: Debugger.GetScriptSourceParameterType): Promise<Debugger.GetScriptSourceReturnType>;
|
|
3381
3361
|
/**
|
|
3382
3362
|
* Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>.
|
|
3383
3363
|
*/
|
|
3384
|
-
post(method:
|
|
3364
|
+
post(method: "Debugger.setPauseOnExceptions", params?: Debugger.SetPauseOnExceptionsParameterType): Promise<void>;
|
|
3385
3365
|
/**
|
|
3386
3366
|
* Evaluates expression on a given call frame.
|
|
3387
3367
|
*/
|
|
3388
|
-
post(method:
|
|
3368
|
+
post(method: "Debugger.evaluateOnCallFrame", params?: Debugger.EvaluateOnCallFrameParameterType): Promise<Debugger.EvaluateOnCallFrameReturnType>;
|
|
3389
3369
|
/**
|
|
3390
3370
|
* Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
|
|
3391
3371
|
*/
|
|
3392
|
-
post(method:
|
|
3372
|
+
post(method: "Debugger.setVariableValue", params?: Debugger.SetVariableValueParameterType): Promise<void>;
|
|
3393
3373
|
/**
|
|
3394
3374
|
* Changes return value in top frame. Available only at return break position.
|
|
3395
3375
|
* @experimental
|
|
3396
3376
|
*/
|
|
3397
|
-
post(method:
|
|
3377
|
+
post(method: "Debugger.setReturnValue", params?: Debugger.SetReturnValueParameterType): Promise<void>;
|
|
3398
3378
|
/**
|
|
3399
3379
|
* Enables or disables async call stacks tracking.
|
|
3400
3380
|
*/
|
|
3401
|
-
post(method:
|
|
3381
|
+
post(method: "Debugger.setAsyncCallStackDepth", params?: Debugger.SetAsyncCallStackDepthParameterType): Promise<void>;
|
|
3402
3382
|
/**
|
|
3403
3383
|
* 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.
|
|
3404
3384
|
* @experimental
|
|
3405
3385
|
*/
|
|
3406
|
-
post(method:
|
|
3386
|
+
post(method: "Debugger.setBlackboxPatterns", params?: Debugger.SetBlackboxPatternsParameterType): Promise<void>;
|
|
3407
3387
|
/**
|
|
3408
3388
|
* 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.
|
|
3409
3389
|
* @experimental
|
|
3410
3390
|
*/
|
|
3411
|
-
post(method:
|
|
3391
|
+
post(method: "Debugger.setBlackboxedRanges", params?: Debugger.SetBlackboxedRangesParameterType): Promise<void>;
|
|
3412
3392
|
/**
|
|
3413
3393
|
* Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification.
|
|
3414
3394
|
*/
|
|
3415
|
-
post(method:
|
|
3395
|
+
post(method: "Console.enable"): Promise<void>;
|
|
3416
3396
|
/**
|
|
3417
3397
|
* Disables console domain, prevents further console messages from being reported to the client.
|
|
3418
3398
|
*/
|
|
3419
|
-
post(method:
|
|
3399
|
+
post(method: "Console.disable"): Promise<void>;
|
|
3420
3400
|
/**
|
|
3421
3401
|
* Does nothing.
|
|
3422
3402
|
*/
|
|
3423
|
-
post(method:
|
|
3424
|
-
post(method:
|
|
3425
|
-
post(method:
|
|
3403
|
+
post(method: "Console.clearMessages"): Promise<void>;
|
|
3404
|
+
post(method: "Profiler.enable"): Promise<void>;
|
|
3405
|
+
post(method: "Profiler.disable"): Promise<void>;
|
|
3426
3406
|
/**
|
|
3427
3407
|
* Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
|
|
3428
3408
|
*/
|
|
3429
|
-
post(method:
|
|
3430
|
-
post(method:
|
|
3431
|
-
post(method:
|
|
3409
|
+
post(method: "Profiler.setSamplingInterval", params?: Profiler.SetSamplingIntervalParameterType): Promise<void>;
|
|
3410
|
+
post(method: "Profiler.start"): Promise<void>;
|
|
3411
|
+
post(method: "Profiler.stop"): Promise<Profiler.StopReturnType>;
|
|
3432
3412
|
/**
|
|
3433
3413
|
* 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.
|
|
3434
3414
|
*/
|
|
3435
|
-
post(method:
|
|
3415
|
+
post(method: "Profiler.startPreciseCoverage", params?: Profiler.StartPreciseCoverageParameterType): Promise<void>;
|
|
3436
3416
|
/**
|
|
3437
3417
|
* Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
|
|
3438
3418
|
*/
|
|
3439
|
-
post(method:
|
|
3419
|
+
post(method: "Profiler.stopPreciseCoverage"): Promise<void>;
|
|
3440
3420
|
/**
|
|
3441
3421
|
* Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
|
|
3442
3422
|
*/
|
|
3443
|
-
post(method:
|
|
3423
|
+
post(method: "Profiler.takePreciseCoverage"): Promise<Profiler.TakePreciseCoverageReturnType>;
|
|
3444
3424
|
/**
|
|
3445
3425
|
* Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
|
|
3446
3426
|
*/
|
|
3447
|
-
post(method:
|
|
3448
|
-
post(method:
|
|
3449
|
-
post(method:
|
|
3450
|
-
post(method:
|
|
3451
|
-
post(method:
|
|
3452
|
-
post(method:
|
|
3453
|
-
post(method:
|
|
3454
|
-
post(method:
|
|
3427
|
+
post(method: "Profiler.getBestEffortCoverage"): Promise<Profiler.GetBestEffortCoverageReturnType>;
|
|
3428
|
+
post(method: "HeapProfiler.enable"): Promise<void>;
|
|
3429
|
+
post(method: "HeapProfiler.disable"): Promise<void>;
|
|
3430
|
+
post(method: "HeapProfiler.startTrackingHeapObjects", params?: HeapProfiler.StartTrackingHeapObjectsParameterType): Promise<void>;
|
|
3431
|
+
post(method: "HeapProfiler.stopTrackingHeapObjects", params?: HeapProfiler.StopTrackingHeapObjectsParameterType): Promise<void>;
|
|
3432
|
+
post(method: "HeapProfiler.takeHeapSnapshot", params?: HeapProfiler.TakeHeapSnapshotParameterType): Promise<void>;
|
|
3433
|
+
post(method: "HeapProfiler.collectGarbage"): Promise<void>;
|
|
3434
|
+
post(method: "HeapProfiler.getObjectByHeapObjectId", params?: HeapProfiler.GetObjectByHeapObjectIdParameterType): Promise<HeapProfiler.GetObjectByHeapObjectIdReturnType>;
|
|
3455
3435
|
/**
|
|
3456
3436
|
* Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
|
|
3457
3437
|
*/
|
|
3458
|
-
post(method:
|
|
3459
|
-
post(method:
|
|
3460
|
-
post(method:
|
|
3461
|
-
post(method:
|
|
3462
|
-
post(method:
|
|
3438
|
+
post(method: "HeapProfiler.addInspectedHeapObject", params?: HeapProfiler.AddInspectedHeapObjectParameterType): Promise<void>;
|
|
3439
|
+
post(method: "HeapProfiler.getHeapObjectId", params?: HeapProfiler.GetHeapObjectIdParameterType): Promise<HeapProfiler.GetHeapObjectIdReturnType>;
|
|
3440
|
+
post(method: "HeapProfiler.startSampling", params?: HeapProfiler.StartSamplingParameterType): Promise<void>;
|
|
3441
|
+
post(method: "HeapProfiler.stopSampling"): Promise<HeapProfiler.StopSamplingReturnType>;
|
|
3442
|
+
post(method: "HeapProfiler.getSamplingProfile"): Promise<HeapProfiler.GetSamplingProfileReturnType>;
|
|
3463
3443
|
/**
|
|
3464
3444
|
* Gets supported tracing categories.
|
|
3465
3445
|
*/
|
|
3466
|
-
post(method:
|
|
3446
|
+
post(method: "NodeTracing.getCategories"): Promise<NodeTracing.GetCategoriesReturnType>;
|
|
3467
3447
|
/**
|
|
3468
3448
|
* Start trace events collection.
|
|
3469
3449
|
*/
|
|
3470
|
-
post(method:
|
|
3450
|
+
post(method: "NodeTracing.start", params?: NodeTracing.StartParameterType): Promise<void>;
|
|
3471
3451
|
/**
|
|
3472
3452
|
* Stop trace events collection. Remaining collected events will be sent as a sequence of
|
|
3473
3453
|
* dataCollected events followed by tracingComplete event.
|
|
3474
3454
|
*/
|
|
3475
|
-
post(method:
|
|
3455
|
+
post(method: "NodeTracing.stop"): Promise<void>;
|
|
3476
3456
|
/**
|
|
3477
3457
|
* Sends protocol message over session with given id.
|
|
3478
3458
|
*/
|
|
3479
|
-
post(method:
|
|
3459
|
+
post(method: "NodeWorker.sendMessageToWorker", params?: NodeWorker.SendMessageToWorkerParameterType): Promise<void>;
|
|
3480
3460
|
/**
|
|
3481
3461
|
* Instructs the inspector to attach to running workers. Will also attach to new workers
|
|
3482
3462
|
* as they start
|
|
3483
3463
|
*/
|
|
3484
|
-
post(method:
|
|
3464
|
+
post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType): Promise<void>;
|
|
3485
3465
|
/**
|
|
3486
3466
|
* Detaches from all running workers and disables attaching to new workers as they are started.
|
|
3487
3467
|
*/
|
|
3488
|
-
post(method:
|
|
3468
|
+
post(method: "NodeWorker.disable"): Promise<void>;
|
|
3489
3469
|
/**
|
|
3490
3470
|
* Detached from the worker with given sessionId.
|
|
3491
3471
|
*/
|
|
3492
|
-
post(method:
|
|
3472
|
+
post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType): Promise<void>;
|
|
3493
3473
|
/**
|
|
3494
3474
|
* Disables network tracking, prevents network events from being sent to the client.
|
|
3495
3475
|
*/
|
|
3496
|
-
post(method:
|
|
3476
|
+
post(method: "Network.disable"): Promise<void>;
|
|
3497
3477
|
/**
|
|
3498
3478
|
* Enables network tracking, network events will now be delivered to the client.
|
|
3499
3479
|
*/
|
|
3500
|
-
post(method:
|
|
3480
|
+
post(method: "Network.enable"): Promise<void>;
|
|
3501
3481
|
/**
|
|
3502
3482
|
* Returns post data sent with the request. Returns an error when no data was sent with the request.
|
|
3503
3483
|
*/
|
|
3504
|
-
post(method:
|
|
3484
|
+
post(method: "Network.getRequestPostData", params?: Network.GetRequestPostDataParameterType): Promise<Network.GetRequestPostDataReturnType>;
|
|
3505
3485
|
/**
|
|
3506
3486
|
* Returns content served for the given request.
|
|
3507
3487
|
*/
|
|
3508
|
-
post(method:
|
|
3488
|
+
post(method: "Network.getResponseBody", params?: Network.GetResponseBodyParameterType): Promise<Network.GetResponseBodyReturnType>;
|
|
3509
3489
|
/**
|
|
3510
3490
|
* Enables streaming of the response for the given requestId.
|
|
3511
3491
|
* If enabled, the dataReceived event contains the data that was received during streaming.
|
|
3512
3492
|
* @experimental
|
|
3513
3493
|
*/
|
|
3514
|
-
post(method:
|
|
3494
|
+
post(method: "Network.streamResourceContent", params?: Network.StreamResourceContentParameterType): Promise<Network.StreamResourceContentReturnType>;
|
|
3495
|
+
/**
|
|
3496
|
+
* Fetches the resource and returns the content.
|
|
3497
|
+
*/
|
|
3498
|
+
post(method: "Network.loadNetworkResource", params?: Network.LoadNetworkResourceParameterType): Promise<Network.LoadNetworkResourceReturnType>;
|
|
3515
3499
|
/**
|
|
3516
3500
|
* Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`.
|
|
3517
3501
|
*/
|
|
3518
|
-
post(method:
|
|
3502
|
+
post(method: "NodeRuntime.enable"): Promise<void>;
|
|
3519
3503
|
/**
|
|
3520
3504
|
* Disable NodeRuntime events
|
|
3521
3505
|
*/
|
|
3522
|
-
post(method:
|
|
3506
|
+
post(method: "NodeRuntime.disable"): Promise<void>;
|
|
3523
3507
|
/**
|
|
3524
3508
|
* Enable the `NodeRuntime.waitingForDisconnect`.
|
|
3525
3509
|
*/
|
|
3526
|
-
post(method:
|
|
3527
|
-
post(method:
|
|
3510
|
+
post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType): Promise<void>;
|
|
3511
|
+
post(method: "Target.setAutoAttach", params?: Target.SetAutoAttachParameterType): Promise<void>;
|
|
3512
|
+
/**
|
|
3513
|
+
* Read a chunk of the stream
|
|
3514
|
+
*/
|
|
3515
|
+
post(method: "IO.read", params?: IO.ReadParameterType): Promise<IO.ReadReturnType>;
|
|
3516
|
+
post(method: "IO.close", params?: IO.CloseParameterType): Promise<void>;
|
|
3528
3517
|
|
|
3529
3518
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
3530
3519
|
/**
|
|
3531
3520
|
* Emitted when any notification from the V8 Inspector is received.
|
|
3532
3521
|
*/
|
|
3533
|
-
addListener(event:
|
|
3522
|
+
addListener(event: "inspectorNotification", listener: (message: InspectorNotification<object>) => void): this;
|
|
3534
3523
|
/**
|
|
3535
3524
|
* Issued when new execution context is created.
|
|
3536
3525
|
*/
|
|
3537
|
-
addListener(event:
|
|
3526
|
+
addListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
3538
3527
|
/**
|
|
3539
3528
|
* Issued when execution context is destroyed.
|
|
3540
3529
|
*/
|
|
3541
|
-
addListener(event:
|
|
3530
|
+
addListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
3542
3531
|
/**
|
|
3543
3532
|
* Issued when all executionContexts were cleared in browser
|
|
3544
3533
|
*/
|
|
3545
|
-
addListener(event:
|
|
3534
|
+
addListener(event: "Runtime.executionContextsCleared", listener: () => void): this;
|
|
3546
3535
|
/**
|
|
3547
3536
|
* Issued when exception was thrown and unhandled.
|
|
3548
3537
|
*/
|
|
3549
|
-
addListener(event:
|
|
3538
|
+
addListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
3550
3539
|
/**
|
|
3551
3540
|
* Issued when unhandled exception was revoked.
|
|
3552
3541
|
*/
|
|
3553
|
-
addListener(event:
|
|
3542
|
+
addListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
3554
3543
|
/**
|
|
3555
3544
|
* Issued when console API was called.
|
|
3556
3545
|
*/
|
|
3557
|
-
addListener(event:
|
|
3546
|
+
addListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
3558
3547
|
/**
|
|
3559
3548
|
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
3560
3549
|
*/
|
|
3561
|
-
addListener(event:
|
|
3550
|
+
addListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
3562
3551
|
/**
|
|
3563
3552
|
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
3564
3553
|
*/
|
|
3565
|
-
addListener(event:
|
|
3554
|
+
addListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
3566
3555
|
/**
|
|
3567
3556
|
* Fired when virtual machine fails to parse the script.
|
|
3568
3557
|
*/
|
|
3569
|
-
addListener(event:
|
|
3558
|
+
addListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
3570
3559
|
/**
|
|
3571
3560
|
* Fired when breakpoint is resolved to an actual script and location.
|
|
3572
3561
|
*/
|
|
3573
|
-
addListener(event:
|
|
3562
|
+
addListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
3574
3563
|
/**
|
|
3575
3564
|
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
3576
3565
|
*/
|
|
3577
|
-
addListener(event:
|
|
3566
|
+
addListener(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
3578
3567
|
/**
|
|
3579
3568
|
* Fired when the virtual machine resumed execution.
|
|
3580
3569
|
*/
|
|
3581
|
-
addListener(event:
|
|
3570
|
+
addListener(event: "Debugger.resumed", listener: () => void): this;
|
|
3582
3571
|
/**
|
|
3583
3572
|
* Issued when new console message is added.
|
|
3584
3573
|
*/
|
|
3585
|
-
addListener(event:
|
|
3574
|
+
addListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
3586
3575
|
/**
|
|
3587
3576
|
* Sent when new profile recording is started using console.profile() call.
|
|
3588
3577
|
*/
|
|
3589
|
-
addListener(event:
|
|
3590
|
-
addListener(event:
|
|
3591
|
-
addListener(event:
|
|
3592
|
-
addListener(event:
|
|
3593
|
-
addListener(event:
|
|
3578
|
+
addListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
3579
|
+
addListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
3580
|
+
addListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
3581
|
+
addListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
3582
|
+
addListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
3594
3583
|
/**
|
|
3595
3584
|
* 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.
|
|
3596
3585
|
*/
|
|
3597
|
-
addListener(event:
|
|
3586
|
+
addListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
3598
3587
|
/**
|
|
3599
3588
|
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
3600
3589
|
*/
|
|
3601
|
-
addListener(event:
|
|
3590
|
+
addListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
3602
3591
|
/**
|
|
3603
3592
|
* Contains an bucket of collected trace events.
|
|
3604
3593
|
*/
|
|
3605
|
-
addListener(event:
|
|
3594
|
+
addListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
3606
3595
|
/**
|
|
3607
3596
|
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
3608
3597
|
* delivered via dataCollected events.
|
|
3609
3598
|
*/
|
|
3610
|
-
addListener(event:
|
|
3599
|
+
addListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
3611
3600
|
/**
|
|
3612
3601
|
* Issued when attached to a worker.
|
|
3613
3602
|
*/
|
|
3614
|
-
addListener(event:
|
|
3603
|
+
addListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
3615
3604
|
/**
|
|
3616
3605
|
* Issued when detached from the worker.
|
|
3617
3606
|
*/
|
|
3618
|
-
addListener(event:
|
|
3607
|
+
addListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
3619
3608
|
/**
|
|
3620
3609
|
* Notifies about a new protocol message received from the session
|
|
3621
3610
|
* (session ID is provided in attachedToWorker notification).
|
|
3622
3611
|
*/
|
|
3623
|
-
addListener(event:
|
|
3612
|
+
addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
3624
3613
|
/**
|
|
3625
3614
|
* Fired when page is about to send HTTP request.
|
|
3626
3615
|
*/
|
|
3627
|
-
addListener(event:
|
|
3616
|
+
addListener(event: "Network.requestWillBeSent", listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
|
|
3628
3617
|
/**
|
|
3629
3618
|
* Fired when HTTP response is available.
|
|
3630
3619
|
*/
|
|
3631
|
-
addListener(event:
|
|
3632
|
-
addListener(event:
|
|
3633
|
-
addListener(event:
|
|
3620
|
+
addListener(event: "Network.responseReceived", listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
3621
|
+
addListener(event: "Network.loadingFailed", listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
3622
|
+
addListener(event: "Network.loadingFinished", listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
3634
3623
|
/**
|
|
3635
3624
|
* Fired when data chunk was received over the network.
|
|
3636
3625
|
*/
|
|
3637
|
-
addListener(event:
|
|
3626
|
+
addListener(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
3627
|
+
/**
|
|
3628
|
+
* Fired upon WebSocket creation.
|
|
3629
|
+
*/
|
|
3630
|
+
addListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
3631
|
+
/**
|
|
3632
|
+
* Fired when WebSocket is closed.
|
|
3633
|
+
*/
|
|
3634
|
+
addListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
3635
|
+
/**
|
|
3636
|
+
* Fired when WebSocket handshake response becomes available.
|
|
3637
|
+
*/
|
|
3638
|
+
addListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
3638
3639
|
/**
|
|
3639
3640
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
3640
3641
|
* enabled.
|
|
3641
3642
|
* It is fired when the Node process finished all code execution and is
|
|
3642
3643
|
* waiting for all frontends to disconnect.
|
|
3643
3644
|
*/
|
|
3644
|
-
addListener(event:
|
|
3645
|
+
addListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
3645
3646
|
/**
|
|
3646
3647
|
* This event is fired when the runtime is waiting for the debugger. For
|
|
3647
3648
|
* example, when inspector.waitingForDebugger is called
|
|
3648
3649
|
*/
|
|
3649
|
-
addListener(event:
|
|
3650
|
-
addListener(event:
|
|
3651
|
-
addListener(event:
|
|
3650
|
+
addListener(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
|
|
3651
|
+
addListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
3652
|
+
addListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
3652
3653
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
3653
|
-
emit(event:
|
|
3654
|
-
emit(event:
|
|
3655
|
-
emit(event:
|
|
3656
|
-
emit(event:
|
|
3657
|
-
emit(event:
|
|
3658
|
-
emit(event:
|
|
3659
|
-
emit(event:
|
|
3660
|
-
emit(event:
|
|
3661
|
-
emit(event:
|
|
3662
|
-
emit(event:
|
|
3663
|
-
emit(event:
|
|
3664
|
-
emit(event:
|
|
3665
|
-
emit(event:
|
|
3666
|
-
emit(event:
|
|
3667
|
-
emit(event:
|
|
3668
|
-
emit(event:
|
|
3669
|
-
emit(event:
|
|
3670
|
-
emit(event:
|
|
3671
|
-
emit(event:
|
|
3672
|
-
emit(event:
|
|
3673
|
-
emit(event:
|
|
3674
|
-
emit(event:
|
|
3675
|
-
emit(event:
|
|
3676
|
-
emit(event:
|
|
3677
|
-
emit(event:
|
|
3678
|
-
emit(event:
|
|
3679
|
-
emit(event:
|
|
3680
|
-
emit(event:
|
|
3681
|
-
emit(event:
|
|
3682
|
-
emit(event:
|
|
3683
|
-
emit(event:
|
|
3684
|
-
emit(event:
|
|
3685
|
-
emit(event:
|
|
3686
|
-
emit(event:
|
|
3687
|
-
emit(event:
|
|
3654
|
+
emit(event: "inspectorNotification", message: InspectorNotification<object>): boolean;
|
|
3655
|
+
emit(event: "Runtime.executionContextCreated", message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
|
|
3656
|
+
emit(event: "Runtime.executionContextDestroyed", message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>): boolean;
|
|
3657
|
+
emit(event: "Runtime.executionContextsCleared"): boolean;
|
|
3658
|
+
emit(event: "Runtime.exceptionThrown", message: InspectorNotification<Runtime.ExceptionThrownEventDataType>): boolean;
|
|
3659
|
+
emit(event: "Runtime.exceptionRevoked", message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>): boolean;
|
|
3660
|
+
emit(event: "Runtime.consoleAPICalled", message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>): boolean;
|
|
3661
|
+
emit(event: "Runtime.inspectRequested", message: InspectorNotification<Runtime.InspectRequestedEventDataType>): boolean;
|
|
3662
|
+
emit(event: "Debugger.scriptParsed", message: InspectorNotification<Debugger.ScriptParsedEventDataType>): boolean;
|
|
3663
|
+
emit(event: "Debugger.scriptFailedToParse", message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>): boolean;
|
|
3664
|
+
emit(event: "Debugger.breakpointResolved", message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>): boolean;
|
|
3665
|
+
emit(event: "Debugger.paused", message: InspectorNotification<Debugger.PausedEventDataType>): boolean;
|
|
3666
|
+
emit(event: "Debugger.resumed"): boolean;
|
|
3667
|
+
emit(event: "Console.messageAdded", message: InspectorNotification<Console.MessageAddedEventDataType>): boolean;
|
|
3668
|
+
emit(event: "Profiler.consoleProfileStarted", message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>): boolean;
|
|
3669
|
+
emit(event: "Profiler.consoleProfileFinished", message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>): boolean;
|
|
3670
|
+
emit(event: "HeapProfiler.addHeapSnapshotChunk", message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>): boolean;
|
|
3671
|
+
emit(event: "HeapProfiler.resetProfiles"): boolean;
|
|
3672
|
+
emit(event: "HeapProfiler.reportHeapSnapshotProgress", message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
|
|
3673
|
+
emit(event: "HeapProfiler.lastSeenObjectId", message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
|
|
3674
|
+
emit(event: "HeapProfiler.heapStatsUpdate", message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
|
|
3675
|
+
emit(event: "NodeTracing.dataCollected", message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
|
|
3676
|
+
emit(event: "NodeTracing.tracingComplete"): boolean;
|
|
3677
|
+
emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
|
|
3678
|
+
emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
|
|
3679
|
+
emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
|
|
3680
|
+
emit(event: "Network.requestWillBeSent", message: InspectorNotification<Network.RequestWillBeSentEventDataType>): boolean;
|
|
3681
|
+
emit(event: "Network.responseReceived", message: InspectorNotification<Network.ResponseReceivedEventDataType>): boolean;
|
|
3682
|
+
emit(event: "Network.loadingFailed", message: InspectorNotification<Network.LoadingFailedEventDataType>): boolean;
|
|
3683
|
+
emit(event: "Network.loadingFinished", message: InspectorNotification<Network.LoadingFinishedEventDataType>): boolean;
|
|
3684
|
+
emit(event: "Network.dataReceived", message: InspectorNotification<Network.DataReceivedEventDataType>): boolean;
|
|
3685
|
+
emit(event: "Network.webSocketCreated", message: InspectorNotification<Network.WebSocketCreatedEventDataType>): boolean;
|
|
3686
|
+
emit(event: "Network.webSocketClosed", message: InspectorNotification<Network.WebSocketClosedEventDataType>): boolean;
|
|
3687
|
+
emit(event: "Network.webSocketHandshakeResponseReceived", message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>): boolean;
|
|
3688
|
+
emit(event: "NodeRuntime.waitingForDisconnect"): boolean;
|
|
3689
|
+
emit(event: "NodeRuntime.waitingForDebugger"): boolean;
|
|
3690
|
+
emit(event: "Target.targetCreated", message: InspectorNotification<Target.TargetCreatedEventDataType>): boolean;
|
|
3691
|
+
emit(event: "Target.attachedToTarget", message: InspectorNotification<Target.AttachedToTargetEventDataType>): boolean;
|
|
3688
3692
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
3689
3693
|
/**
|
|
3690
3694
|
* Emitted when any notification from the V8 Inspector is received.
|
|
3691
3695
|
*/
|
|
3692
|
-
on(event:
|
|
3696
|
+
on(event: "inspectorNotification", listener: (message: InspectorNotification<object>) => void): this;
|
|
3693
3697
|
/**
|
|
3694
3698
|
* Issued when new execution context is created.
|
|
3695
3699
|
*/
|
|
3696
|
-
on(event:
|
|
3700
|
+
on(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
3697
3701
|
/**
|
|
3698
3702
|
* Issued when execution context is destroyed.
|
|
3699
3703
|
*/
|
|
3700
|
-
on(event:
|
|
3704
|
+
on(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
3701
3705
|
/**
|
|
3702
3706
|
* Issued when all executionContexts were cleared in browser
|
|
3703
3707
|
*/
|
|
3704
|
-
on(event:
|
|
3708
|
+
on(event: "Runtime.executionContextsCleared", listener: () => void): this;
|
|
3705
3709
|
/**
|
|
3706
3710
|
* Issued when exception was thrown and unhandled.
|
|
3707
3711
|
*/
|
|
3708
|
-
on(event:
|
|
3712
|
+
on(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
3709
3713
|
/**
|
|
3710
3714
|
* Issued when unhandled exception was revoked.
|
|
3711
3715
|
*/
|
|
3712
|
-
on(event:
|
|
3716
|
+
on(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
3713
3717
|
/**
|
|
3714
3718
|
* Issued when console API was called.
|
|
3715
3719
|
*/
|
|
3716
|
-
on(event:
|
|
3720
|
+
on(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
3717
3721
|
/**
|
|
3718
3722
|
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
3719
3723
|
*/
|
|
3720
|
-
on(event:
|
|
3724
|
+
on(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
3721
3725
|
/**
|
|
3722
3726
|
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
3723
3727
|
*/
|
|
3724
|
-
on(event:
|
|
3728
|
+
on(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
3725
3729
|
/**
|
|
3726
3730
|
* Fired when virtual machine fails to parse the script.
|
|
3727
3731
|
*/
|
|
3728
|
-
on(event:
|
|
3732
|
+
on(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
3729
3733
|
/**
|
|
3730
3734
|
* Fired when breakpoint is resolved to an actual script and location.
|
|
3731
3735
|
*/
|
|
3732
|
-
on(event:
|
|
3736
|
+
on(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
3733
3737
|
/**
|
|
3734
3738
|
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
3735
3739
|
*/
|
|
3736
|
-
on(event:
|
|
3740
|
+
on(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
3737
3741
|
/**
|
|
3738
3742
|
* Fired when the virtual machine resumed execution.
|
|
3739
3743
|
*/
|
|
3740
|
-
on(event:
|
|
3744
|
+
on(event: "Debugger.resumed", listener: () => void): this;
|
|
3741
3745
|
/**
|
|
3742
3746
|
* Issued when new console message is added.
|
|
3743
3747
|
*/
|
|
3744
|
-
on(event:
|
|
3748
|
+
on(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
3745
3749
|
/**
|
|
3746
3750
|
* Sent when new profile recording is started using console.profile() call.
|
|
3747
3751
|
*/
|
|
3748
|
-
on(event:
|
|
3749
|
-
on(event:
|
|
3750
|
-
on(event:
|
|
3751
|
-
on(event:
|
|
3752
|
-
on(event:
|
|
3752
|
+
on(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
3753
|
+
on(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
3754
|
+
on(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
3755
|
+
on(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
3756
|
+
on(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
3753
3757
|
/**
|
|
3754
3758
|
* 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.
|
|
3755
3759
|
*/
|
|
3756
|
-
on(event:
|
|
3760
|
+
on(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
3757
3761
|
/**
|
|
3758
3762
|
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
3759
3763
|
*/
|
|
3760
|
-
on(event:
|
|
3764
|
+
on(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
3761
3765
|
/**
|
|
3762
3766
|
* Contains an bucket of collected trace events.
|
|
3763
3767
|
*/
|
|
3764
|
-
on(event:
|
|
3768
|
+
on(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
3765
3769
|
/**
|
|
3766
3770
|
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
3767
3771
|
* delivered via dataCollected events.
|
|
3768
3772
|
*/
|
|
3769
|
-
on(event:
|
|
3773
|
+
on(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
3770
3774
|
/**
|
|
3771
3775
|
* Issued when attached to a worker.
|
|
3772
3776
|
*/
|
|
3773
|
-
on(event:
|
|
3777
|
+
on(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
3774
3778
|
/**
|
|
3775
3779
|
* Issued when detached from the worker.
|
|
3776
3780
|
*/
|
|
3777
|
-
on(event:
|
|
3781
|
+
on(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
3778
3782
|
/**
|
|
3779
3783
|
* Notifies about a new protocol message received from the session
|
|
3780
3784
|
* (session ID is provided in attachedToWorker notification).
|
|
3781
3785
|
*/
|
|
3782
|
-
on(event:
|
|
3786
|
+
on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
3783
3787
|
/**
|
|
3784
3788
|
* Fired when page is about to send HTTP request.
|
|
3785
3789
|
*/
|
|
3786
|
-
on(event:
|
|
3790
|
+
on(event: "Network.requestWillBeSent", listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
|
|
3787
3791
|
/**
|
|
3788
3792
|
* Fired when HTTP response is available.
|
|
3789
3793
|
*/
|
|
3790
|
-
on(event:
|
|
3791
|
-
on(event:
|
|
3792
|
-
on(event:
|
|
3794
|
+
on(event: "Network.responseReceived", listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
3795
|
+
on(event: "Network.loadingFailed", listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
3796
|
+
on(event: "Network.loadingFinished", listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
3793
3797
|
/**
|
|
3794
3798
|
* Fired when data chunk was received over the network.
|
|
3795
3799
|
*/
|
|
3796
|
-
on(event:
|
|
3800
|
+
on(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
3801
|
+
/**
|
|
3802
|
+
* Fired upon WebSocket creation.
|
|
3803
|
+
*/
|
|
3804
|
+
on(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
3805
|
+
/**
|
|
3806
|
+
* Fired when WebSocket is closed.
|
|
3807
|
+
*/
|
|
3808
|
+
on(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
3809
|
+
/**
|
|
3810
|
+
* Fired when WebSocket handshake response becomes available.
|
|
3811
|
+
*/
|
|
3812
|
+
on(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
3797
3813
|
/**
|
|
3798
3814
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
3799
3815
|
* enabled.
|
|
3800
3816
|
* It is fired when the Node process finished all code execution and is
|
|
3801
3817
|
* waiting for all frontends to disconnect.
|
|
3802
3818
|
*/
|
|
3803
|
-
on(event:
|
|
3819
|
+
on(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
3804
3820
|
/**
|
|
3805
3821
|
* This event is fired when the runtime is waiting for the debugger. For
|
|
3806
3822
|
* example, when inspector.waitingForDebugger is called
|
|
3807
3823
|
*/
|
|
3808
|
-
on(event:
|
|
3809
|
-
on(event:
|
|
3810
|
-
on(event:
|
|
3824
|
+
on(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
|
|
3825
|
+
on(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
3826
|
+
on(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
3811
3827
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
3812
3828
|
/**
|
|
3813
3829
|
* Emitted when any notification from the V8 Inspector is received.
|
|
3814
3830
|
*/
|
|
3815
|
-
once(event:
|
|
3831
|
+
once(event: "inspectorNotification", listener: (message: InspectorNotification<object>) => void): this;
|
|
3816
3832
|
/**
|
|
3817
3833
|
* Issued when new execution context is created.
|
|
3818
3834
|
*/
|
|
3819
|
-
once(event:
|
|
3835
|
+
once(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
3820
3836
|
/**
|
|
3821
3837
|
* Issued when execution context is destroyed.
|
|
3822
3838
|
*/
|
|
3823
|
-
once(event:
|
|
3839
|
+
once(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
3824
3840
|
/**
|
|
3825
3841
|
* Issued when all executionContexts were cleared in browser
|
|
3826
3842
|
*/
|
|
3827
|
-
once(event:
|
|
3843
|
+
once(event: "Runtime.executionContextsCleared", listener: () => void): this;
|
|
3828
3844
|
/**
|
|
3829
3845
|
* Issued when exception was thrown and unhandled.
|
|
3830
3846
|
*/
|
|
3831
|
-
once(event:
|
|
3847
|
+
once(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
3832
3848
|
/**
|
|
3833
3849
|
* Issued when unhandled exception was revoked.
|
|
3834
3850
|
*/
|
|
3835
|
-
once(event:
|
|
3851
|
+
once(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
3836
3852
|
/**
|
|
3837
3853
|
* Issued when console API was called.
|
|
3838
3854
|
*/
|
|
3839
|
-
once(event:
|
|
3855
|
+
once(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
3840
3856
|
/**
|
|
3841
3857
|
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
3842
3858
|
*/
|
|
3843
|
-
once(event:
|
|
3859
|
+
once(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
3844
3860
|
/**
|
|
3845
3861
|
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
3846
3862
|
*/
|
|
3847
|
-
once(event:
|
|
3863
|
+
once(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
3848
3864
|
/**
|
|
3849
3865
|
* Fired when virtual machine fails to parse the script.
|
|
3850
3866
|
*/
|
|
3851
|
-
once(event:
|
|
3867
|
+
once(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
3852
3868
|
/**
|
|
3853
3869
|
* Fired when breakpoint is resolved to an actual script and location.
|
|
3854
3870
|
*/
|
|
3855
|
-
once(event:
|
|
3871
|
+
once(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
3856
3872
|
/**
|
|
3857
3873
|
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
3858
3874
|
*/
|
|
3859
|
-
once(event:
|
|
3875
|
+
once(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
3860
3876
|
/**
|
|
3861
3877
|
* Fired when the virtual machine resumed execution.
|
|
3862
3878
|
*/
|
|
3863
|
-
once(event:
|
|
3879
|
+
once(event: "Debugger.resumed", listener: () => void): this;
|
|
3864
3880
|
/**
|
|
3865
3881
|
* Issued when new console message is added.
|
|
3866
3882
|
*/
|
|
3867
|
-
once(event:
|
|
3883
|
+
once(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
3868
3884
|
/**
|
|
3869
3885
|
* Sent when new profile recording is started using console.profile() call.
|
|
3870
3886
|
*/
|
|
3871
|
-
once(event:
|
|
3872
|
-
once(event:
|
|
3873
|
-
once(event:
|
|
3874
|
-
once(event:
|
|
3875
|
-
once(event:
|
|
3887
|
+
once(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
3888
|
+
once(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
3889
|
+
once(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
3890
|
+
once(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
3891
|
+
once(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
3876
3892
|
/**
|
|
3877
3893
|
* 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.
|
|
3878
3894
|
*/
|
|
3879
|
-
once(event:
|
|
3895
|
+
once(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
3880
3896
|
/**
|
|
3881
3897
|
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
3882
3898
|
*/
|
|
3883
|
-
once(event:
|
|
3899
|
+
once(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
3884
3900
|
/**
|
|
3885
3901
|
* Contains an bucket of collected trace events.
|
|
3886
3902
|
*/
|
|
3887
|
-
once(event:
|
|
3903
|
+
once(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
3888
3904
|
/**
|
|
3889
3905
|
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
3890
3906
|
* delivered via dataCollected events.
|
|
3891
3907
|
*/
|
|
3892
|
-
once(event:
|
|
3908
|
+
once(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
3893
3909
|
/**
|
|
3894
3910
|
* Issued when attached to a worker.
|
|
3895
3911
|
*/
|
|
3896
|
-
once(event:
|
|
3912
|
+
once(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
3897
3913
|
/**
|
|
3898
3914
|
* Issued when detached from the worker.
|
|
3899
3915
|
*/
|
|
3900
|
-
once(event:
|
|
3916
|
+
once(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
3901
3917
|
/**
|
|
3902
3918
|
* Notifies about a new protocol message received from the session
|
|
3903
3919
|
* (session ID is provided in attachedToWorker notification).
|
|
3904
3920
|
*/
|
|
3905
|
-
once(event:
|
|
3921
|
+
once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
3906
3922
|
/**
|
|
3907
3923
|
* Fired when page is about to send HTTP request.
|
|
3908
3924
|
*/
|
|
3909
|
-
once(event:
|
|
3925
|
+
once(event: "Network.requestWillBeSent", listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
|
|
3910
3926
|
/**
|
|
3911
3927
|
* Fired when HTTP response is available.
|
|
3912
3928
|
*/
|
|
3913
|
-
once(event:
|
|
3914
|
-
once(event:
|
|
3915
|
-
once(event:
|
|
3929
|
+
once(event: "Network.responseReceived", listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
3930
|
+
once(event: "Network.loadingFailed", listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
3931
|
+
once(event: "Network.loadingFinished", listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
3916
3932
|
/**
|
|
3917
3933
|
* Fired when data chunk was received over the network.
|
|
3918
3934
|
*/
|
|
3919
|
-
once(event:
|
|
3935
|
+
once(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
3936
|
+
/**
|
|
3937
|
+
* Fired upon WebSocket creation.
|
|
3938
|
+
*/
|
|
3939
|
+
once(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
3940
|
+
/**
|
|
3941
|
+
* Fired when WebSocket is closed.
|
|
3942
|
+
*/
|
|
3943
|
+
once(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
3944
|
+
/**
|
|
3945
|
+
* Fired when WebSocket handshake response becomes available.
|
|
3946
|
+
*/
|
|
3947
|
+
once(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
3920
3948
|
/**
|
|
3921
3949
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
3922
3950
|
* enabled.
|
|
3923
3951
|
* It is fired when the Node process finished all code execution and is
|
|
3924
3952
|
* waiting for all frontends to disconnect.
|
|
3925
3953
|
*/
|
|
3926
|
-
once(event:
|
|
3954
|
+
once(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
3927
3955
|
/**
|
|
3928
3956
|
* This event is fired when the runtime is waiting for the debugger. For
|
|
3929
3957
|
* example, when inspector.waitingForDebugger is called
|
|
3930
3958
|
*/
|
|
3931
|
-
once(event:
|
|
3932
|
-
once(event:
|
|
3933
|
-
once(event:
|
|
3959
|
+
once(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
|
|
3960
|
+
once(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
3961
|
+
once(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
3934
3962
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
3935
3963
|
/**
|
|
3936
3964
|
* Emitted when any notification from the V8 Inspector is received.
|
|
3937
3965
|
*/
|
|
3938
|
-
prependListener(event:
|
|
3966
|
+
prependListener(event: "inspectorNotification", listener: (message: InspectorNotification<object>) => void): this;
|
|
3939
3967
|
/**
|
|
3940
3968
|
* Issued when new execution context is created.
|
|
3941
3969
|
*/
|
|
3942
|
-
prependListener(event:
|
|
3970
|
+
prependListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
3943
3971
|
/**
|
|
3944
3972
|
* Issued when execution context is destroyed.
|
|
3945
3973
|
*/
|
|
3946
|
-
prependListener(event:
|
|
3974
|
+
prependListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
3947
3975
|
/**
|
|
3948
3976
|
* Issued when all executionContexts were cleared in browser
|
|
3949
3977
|
*/
|
|
3950
|
-
prependListener(event:
|
|
3978
|
+
prependListener(event: "Runtime.executionContextsCleared", listener: () => void): this;
|
|
3951
3979
|
/**
|
|
3952
3980
|
* Issued when exception was thrown and unhandled.
|
|
3953
3981
|
*/
|
|
3954
|
-
prependListener(event:
|
|
3982
|
+
prependListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
3955
3983
|
/**
|
|
3956
3984
|
* Issued when unhandled exception was revoked.
|
|
3957
3985
|
*/
|
|
3958
|
-
prependListener(event:
|
|
3986
|
+
prependListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
3959
3987
|
/**
|
|
3960
3988
|
* Issued when console API was called.
|
|
3961
3989
|
*/
|
|
3962
|
-
prependListener(event:
|
|
3990
|
+
prependListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
3963
3991
|
/**
|
|
3964
3992
|
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
3965
3993
|
*/
|
|
3966
|
-
prependListener(event:
|
|
3994
|
+
prependListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
3967
3995
|
/**
|
|
3968
3996
|
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
3969
3997
|
*/
|
|
3970
|
-
prependListener(event:
|
|
3998
|
+
prependListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
3971
3999
|
/**
|
|
3972
4000
|
* Fired when virtual machine fails to parse the script.
|
|
3973
4001
|
*/
|
|
3974
|
-
prependListener(event:
|
|
4002
|
+
prependListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
3975
4003
|
/**
|
|
3976
4004
|
* Fired when breakpoint is resolved to an actual script and location.
|
|
3977
4005
|
*/
|
|
3978
|
-
prependListener(event:
|
|
4006
|
+
prependListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
3979
4007
|
/**
|
|
3980
4008
|
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
3981
4009
|
*/
|
|
3982
|
-
prependListener(event:
|
|
4010
|
+
prependListener(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
3983
4011
|
/**
|
|
3984
4012
|
* Fired when the virtual machine resumed execution.
|
|
3985
4013
|
*/
|
|
3986
|
-
prependListener(event:
|
|
4014
|
+
prependListener(event: "Debugger.resumed", listener: () => void): this;
|
|
3987
4015
|
/**
|
|
3988
4016
|
* Issued when new console message is added.
|
|
3989
4017
|
*/
|
|
3990
|
-
prependListener(event:
|
|
4018
|
+
prependListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
3991
4019
|
/**
|
|
3992
4020
|
* Sent when new profile recording is started using console.profile() call.
|
|
3993
4021
|
*/
|
|
3994
|
-
prependListener(event:
|
|
3995
|
-
prependListener(event:
|
|
3996
|
-
prependListener(event:
|
|
3997
|
-
prependListener(event:
|
|
3998
|
-
prependListener(event:
|
|
4022
|
+
prependListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
4023
|
+
prependListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
4024
|
+
prependListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
4025
|
+
prependListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
4026
|
+
prependListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
3999
4027
|
/**
|
|
4000
4028
|
* 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.
|
|
4001
4029
|
*/
|
|
4002
|
-
prependListener(event:
|
|
4030
|
+
prependListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
4003
4031
|
/**
|
|
4004
4032
|
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
4005
4033
|
*/
|
|
4006
|
-
prependListener(event:
|
|
4034
|
+
prependListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
4007
4035
|
/**
|
|
4008
4036
|
* Contains an bucket of collected trace events.
|
|
4009
4037
|
*/
|
|
4010
|
-
prependListener(event:
|
|
4038
|
+
prependListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
4011
4039
|
/**
|
|
4012
4040
|
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
4013
4041
|
* delivered via dataCollected events.
|
|
4014
4042
|
*/
|
|
4015
|
-
prependListener(event:
|
|
4043
|
+
prependListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
4016
4044
|
/**
|
|
4017
4045
|
* Issued when attached to a worker.
|
|
4018
4046
|
*/
|
|
4019
|
-
prependListener(event:
|
|
4047
|
+
prependListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
4020
4048
|
/**
|
|
4021
4049
|
* Issued when detached from the worker.
|
|
4022
4050
|
*/
|
|
4023
|
-
prependListener(event:
|
|
4051
|
+
prependListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
4024
4052
|
/**
|
|
4025
4053
|
* Notifies about a new protocol message received from the session
|
|
4026
4054
|
* (session ID is provided in attachedToWorker notification).
|
|
4027
4055
|
*/
|
|
4028
|
-
prependListener(event:
|
|
4056
|
+
prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
4029
4057
|
/**
|
|
4030
4058
|
* Fired when page is about to send HTTP request.
|
|
4031
4059
|
*/
|
|
4032
|
-
prependListener(event:
|
|
4060
|
+
prependListener(event: "Network.requestWillBeSent", listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
|
|
4033
4061
|
/**
|
|
4034
4062
|
* Fired when HTTP response is available.
|
|
4035
4063
|
*/
|
|
4036
|
-
prependListener(event:
|
|
4037
|
-
prependListener(event:
|
|
4038
|
-
prependListener(event:
|
|
4064
|
+
prependListener(event: "Network.responseReceived", listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
4065
|
+
prependListener(event: "Network.loadingFailed", listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
4066
|
+
prependListener(event: "Network.loadingFinished", listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
4039
4067
|
/**
|
|
4040
4068
|
* Fired when data chunk was received over the network.
|
|
4041
4069
|
*/
|
|
4042
|
-
prependListener(event:
|
|
4070
|
+
prependListener(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
4071
|
+
/**
|
|
4072
|
+
* Fired upon WebSocket creation.
|
|
4073
|
+
*/
|
|
4074
|
+
prependListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
4075
|
+
/**
|
|
4076
|
+
* Fired when WebSocket is closed.
|
|
4077
|
+
*/
|
|
4078
|
+
prependListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
4079
|
+
/**
|
|
4080
|
+
* Fired when WebSocket handshake response becomes available.
|
|
4081
|
+
*/
|
|
4082
|
+
prependListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
4043
4083
|
/**
|
|
4044
4084
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
4045
4085
|
* enabled.
|
|
4046
4086
|
* It is fired when the Node process finished all code execution and is
|
|
4047
4087
|
* waiting for all frontends to disconnect.
|
|
4048
4088
|
*/
|
|
4049
|
-
prependListener(event:
|
|
4089
|
+
prependListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
4050
4090
|
/**
|
|
4051
4091
|
* This event is fired when the runtime is waiting for the debugger. For
|
|
4052
4092
|
* example, when inspector.waitingForDebugger is called
|
|
4053
4093
|
*/
|
|
4054
|
-
prependListener(event:
|
|
4055
|
-
prependListener(event:
|
|
4056
|
-
prependListener(event:
|
|
4094
|
+
prependListener(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
|
|
4095
|
+
prependListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
4096
|
+
prependListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
4057
4097
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
4058
4098
|
/**
|
|
4059
4099
|
* Emitted when any notification from the V8 Inspector is received.
|
|
4060
4100
|
*/
|
|
4061
|
-
prependOnceListener(event:
|
|
4101
|
+
prependOnceListener(event: "inspectorNotification", listener: (message: InspectorNotification<object>) => void): this;
|
|
4062
4102
|
/**
|
|
4063
4103
|
* Issued when new execution context is created.
|
|
4064
4104
|
*/
|
|
4065
|
-
prependOnceListener(event:
|
|
4105
|
+
prependOnceListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
4066
4106
|
/**
|
|
4067
4107
|
* Issued when execution context is destroyed.
|
|
4068
4108
|
*/
|
|
4069
|
-
prependOnceListener(event:
|
|
4109
|
+
prependOnceListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
4070
4110
|
/**
|
|
4071
4111
|
* Issued when all executionContexts were cleared in browser
|
|
4072
4112
|
*/
|
|
4073
|
-
prependOnceListener(event:
|
|
4113
|
+
prependOnceListener(event: "Runtime.executionContextsCleared", listener: () => void): this;
|
|
4074
4114
|
/**
|
|
4075
4115
|
* Issued when exception was thrown and unhandled.
|
|
4076
4116
|
*/
|
|
4077
|
-
prependOnceListener(event:
|
|
4117
|
+
prependOnceListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
4078
4118
|
/**
|
|
4079
4119
|
* Issued when unhandled exception was revoked.
|
|
4080
4120
|
*/
|
|
4081
|
-
prependOnceListener(event:
|
|
4121
|
+
prependOnceListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
4082
4122
|
/**
|
|
4083
4123
|
* Issued when console API was called.
|
|
4084
4124
|
*/
|
|
4085
|
-
prependOnceListener(event:
|
|
4125
|
+
prependOnceListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
4086
4126
|
/**
|
|
4087
4127
|
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
4088
4128
|
*/
|
|
4089
|
-
prependOnceListener(event:
|
|
4129
|
+
prependOnceListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
4090
4130
|
/**
|
|
4091
4131
|
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
4092
4132
|
*/
|
|
4093
|
-
prependOnceListener(event:
|
|
4133
|
+
prependOnceListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
4094
4134
|
/**
|
|
4095
4135
|
* Fired when virtual machine fails to parse the script.
|
|
4096
4136
|
*/
|
|
4097
|
-
prependOnceListener(event:
|
|
4137
|
+
prependOnceListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
4098
4138
|
/**
|
|
4099
4139
|
* Fired when breakpoint is resolved to an actual script and location.
|
|
4100
4140
|
*/
|
|
4101
|
-
prependOnceListener(event:
|
|
4141
|
+
prependOnceListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
4102
4142
|
/**
|
|
4103
4143
|
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
4104
4144
|
*/
|
|
4105
|
-
prependOnceListener(event:
|
|
4145
|
+
prependOnceListener(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
4106
4146
|
/**
|
|
4107
4147
|
* Fired when the virtual machine resumed execution.
|
|
4108
4148
|
*/
|
|
4109
|
-
prependOnceListener(event:
|
|
4149
|
+
prependOnceListener(event: "Debugger.resumed", listener: () => void): this;
|
|
4110
4150
|
/**
|
|
4111
4151
|
* Issued when new console message is added.
|
|
4112
4152
|
*/
|
|
4113
|
-
prependOnceListener(event:
|
|
4153
|
+
prependOnceListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
4114
4154
|
/**
|
|
4115
4155
|
* Sent when new profile recording is started using console.profile() call.
|
|
4116
4156
|
*/
|
|
4117
|
-
prependOnceListener(event:
|
|
4118
|
-
prependOnceListener(event:
|
|
4119
|
-
prependOnceListener(event:
|
|
4120
|
-
prependOnceListener(event:
|
|
4121
|
-
prependOnceListener(event:
|
|
4157
|
+
prependOnceListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
4158
|
+
prependOnceListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
4159
|
+
prependOnceListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
4160
|
+
prependOnceListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
4161
|
+
prependOnceListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
4122
4162
|
/**
|
|
4123
4163
|
* 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.
|
|
4124
4164
|
*/
|
|
4125
|
-
prependOnceListener(event:
|
|
4165
|
+
prependOnceListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
4126
4166
|
/**
|
|
4127
4167
|
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
4128
4168
|
*/
|
|
4129
|
-
prependOnceListener(event:
|
|
4169
|
+
prependOnceListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
4130
4170
|
/**
|
|
4131
4171
|
* Contains an bucket of collected trace events.
|
|
4132
4172
|
*/
|
|
4133
|
-
prependOnceListener(event:
|
|
4173
|
+
prependOnceListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
4134
4174
|
/**
|
|
4135
4175
|
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
4136
4176
|
* delivered via dataCollected events.
|
|
4137
4177
|
*/
|
|
4138
|
-
prependOnceListener(event:
|
|
4178
|
+
prependOnceListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
4139
4179
|
/**
|
|
4140
4180
|
* Issued when attached to a worker.
|
|
4141
4181
|
*/
|
|
4142
|
-
prependOnceListener(event:
|
|
4182
|
+
prependOnceListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
4143
4183
|
/**
|
|
4144
4184
|
* Issued when detached from the worker.
|
|
4145
4185
|
*/
|
|
4146
|
-
prependOnceListener(event:
|
|
4186
|
+
prependOnceListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
4147
4187
|
/**
|
|
4148
4188
|
* Notifies about a new protocol message received from the session
|
|
4149
4189
|
* (session ID is provided in attachedToWorker notification).
|
|
4150
4190
|
*/
|
|
4151
|
-
prependOnceListener(event:
|
|
4191
|
+
prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
4152
4192
|
/**
|
|
4153
4193
|
* Fired when page is about to send HTTP request.
|
|
4154
4194
|
*/
|
|
4155
|
-
prependOnceListener(event:
|
|
4195
|
+
prependOnceListener(event: "Network.requestWillBeSent", listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
|
|
4156
4196
|
/**
|
|
4157
4197
|
* Fired when HTTP response is available.
|
|
4158
4198
|
*/
|
|
4159
|
-
prependOnceListener(event:
|
|
4160
|
-
prependOnceListener(event:
|
|
4161
|
-
prependOnceListener(event:
|
|
4199
|
+
prependOnceListener(event: "Network.responseReceived", listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
4200
|
+
prependOnceListener(event: "Network.loadingFailed", listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
4201
|
+
prependOnceListener(event: "Network.loadingFinished", listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
4162
4202
|
/**
|
|
4163
4203
|
* Fired when data chunk was received over the network.
|
|
4164
4204
|
*/
|
|
4165
|
-
prependOnceListener(event:
|
|
4205
|
+
prependOnceListener(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
4206
|
+
/**
|
|
4207
|
+
* Fired upon WebSocket creation.
|
|
4208
|
+
*/
|
|
4209
|
+
prependOnceListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
4210
|
+
/**
|
|
4211
|
+
* Fired when WebSocket is closed.
|
|
4212
|
+
*/
|
|
4213
|
+
prependOnceListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
4214
|
+
/**
|
|
4215
|
+
* Fired when WebSocket handshake response becomes available.
|
|
4216
|
+
*/
|
|
4217
|
+
prependOnceListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
4166
4218
|
/**
|
|
4167
4219
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
4168
4220
|
* enabled.
|
|
4169
4221
|
* It is fired when the Node process finished all code execution and is
|
|
4170
4222
|
* waiting for all frontends to disconnect.
|
|
4171
4223
|
*/
|
|
4172
|
-
prependOnceListener(event:
|
|
4224
|
+
prependOnceListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
4173
4225
|
/**
|
|
4174
4226
|
* This event is fired when the runtime is waiting for the debugger. For
|
|
4175
4227
|
* example, when inspector.waitingForDebugger is called
|
|
4176
4228
|
*/
|
|
4177
|
-
prependOnceListener(event:
|
|
4178
|
-
prependOnceListener(event:
|
|
4179
|
-
prependOnceListener(event:
|
|
4229
|
+
prependOnceListener(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
|
|
4230
|
+
prependOnceListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
4231
|
+
prependOnceListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
4180
4232
|
}
|
|
4181
|
-
|
|
4182
|
-
export {
|
|
4183
|
-
Session,
|
|
4184
|
-
open,
|
|
4185
|
-
close,
|
|
4186
|
-
url,
|
|
4187
|
-
waitForDebugger,
|
|
4188
|
-
console,
|
|
4189
|
-
InspectorNotification,
|
|
4190
|
-
Schema,
|
|
4191
|
-
Runtime,
|
|
4192
|
-
Debugger,
|
|
4193
|
-
Console,
|
|
4194
|
-
Profiler,
|
|
4195
|
-
HeapProfiler,
|
|
4196
|
-
NodeTracing,
|
|
4197
|
-
NodeWorker,
|
|
4198
|
-
Network,
|
|
4199
|
-
NodeRuntime,
|
|
4200
|
-
Target,
|
|
4201
|
-
};
|
|
4202
|
-
}
|
|
4203
|
-
|
|
4204
|
-
/**
|
|
4205
|
-
* The `node:inspector/promises` module provides an API for interacting with the V8
|
|
4206
|
-
* inspector.
|
|
4207
|
-
* @since v19.0.0
|
|
4208
|
-
*/
|
|
4209
|
-
declare module 'node:inspector/promises' {
|
|
4210
|
-
export * from 'inspector/promises';
|
|
4211
4233
|
}
|