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