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