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