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