@types/node 12.6.7 → 12.7.1
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/README.md +2 -2
- node/buffer.d.ts +1 -1
- node/child_process.d.ts +3 -3
- node/crypto.d.ts +1 -1
- node/dgram.d.ts +2 -2
- node/dns.d.ts +3 -3
- node/fs.d.ts +5 -5
- node/globals.d.ts +109 -100
- node/http.d.ts +91 -0
- node/http2.d.ts +7 -7
- node/index.d.ts +2 -1
- node/inspector.d.ts +1469 -1692
- node/net.d.ts +4 -4
- node/package.json +7 -2
- node/readline.d.ts +19 -5
- node/string_decoder.d.ts +2 -4
- node/tls.d.ts +2 -2
- node/tty.d.ts +18 -3
- node/zlib.d.ts +2 -2
node/inspector.d.ts
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
// Please see https://github.com/DefinitelyTyped/DefinitelyTyped/pull/19330
|
|
6
6
|
// for more information.
|
|
7
7
|
|
|
8
|
+
// tslint:disable:max-line-length
|
|
9
|
+
|
|
8
10
|
/**
|
|
9
11
|
* The inspector module provides an API for interacting with the V8 inspector.
|
|
10
12
|
*/
|
|
@@ -16,1928 +18,1789 @@ declare module "inspector" {
|
|
|
16
18
|
params: T;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
|
-
namespace
|
|
21
|
+
namespace Schema {
|
|
20
22
|
/**
|
|
21
|
-
*
|
|
23
|
+
* Description of the protocol domain.
|
|
22
24
|
*/
|
|
23
|
-
interface
|
|
24
|
-
/**
|
|
25
|
-
* Message source.
|
|
26
|
-
*/
|
|
27
|
-
source: string;
|
|
28
|
-
/**
|
|
29
|
-
* Message severity.
|
|
30
|
-
*/
|
|
31
|
-
level: string;
|
|
32
|
-
/**
|
|
33
|
-
* Message text.
|
|
34
|
-
*/
|
|
35
|
-
text: string;
|
|
36
|
-
/**
|
|
37
|
-
* URL of the message origin.
|
|
38
|
-
*/
|
|
39
|
-
url?: string;
|
|
25
|
+
interface Domain {
|
|
40
26
|
/**
|
|
41
|
-
*
|
|
27
|
+
* Domain name.
|
|
42
28
|
*/
|
|
43
|
-
|
|
29
|
+
name: string;
|
|
44
30
|
/**
|
|
45
|
-
*
|
|
31
|
+
* Domain version.
|
|
46
32
|
*/
|
|
47
|
-
|
|
33
|
+
version: string;
|
|
48
34
|
}
|
|
49
35
|
|
|
50
|
-
interface
|
|
36
|
+
interface GetDomainsReturnType {
|
|
51
37
|
/**
|
|
52
|
-
*
|
|
38
|
+
* List of supported domains.
|
|
53
39
|
*/
|
|
54
|
-
|
|
40
|
+
domains: Domain[];
|
|
55
41
|
}
|
|
56
42
|
}
|
|
57
43
|
|
|
58
|
-
namespace
|
|
44
|
+
namespace Runtime {
|
|
59
45
|
/**
|
|
60
|
-
*
|
|
46
|
+
* Unique script identifier.
|
|
61
47
|
*/
|
|
62
|
-
type
|
|
48
|
+
type ScriptId = string;
|
|
63
49
|
|
|
64
50
|
/**
|
|
65
|
-
*
|
|
51
|
+
* Unique object identifier.
|
|
66
52
|
*/
|
|
67
|
-
type
|
|
53
|
+
type RemoteObjectId = string;
|
|
68
54
|
|
|
69
55
|
/**
|
|
70
|
-
*
|
|
56
|
+
* Primitive value which cannot be JSON-stringified.
|
|
71
57
|
*/
|
|
72
|
-
|
|
58
|
+
type UnserializableValue = string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Mirror object referencing original JavaScript object.
|
|
62
|
+
*/
|
|
63
|
+
interface RemoteObject {
|
|
73
64
|
/**
|
|
74
|
-
*
|
|
65
|
+
* Object type.
|
|
75
66
|
*/
|
|
76
|
-
|
|
67
|
+
type: string;
|
|
77
68
|
/**
|
|
78
|
-
*
|
|
69
|
+
* Object subtype hint. Specified for <code>object</code> type values only.
|
|
79
70
|
*/
|
|
80
|
-
|
|
71
|
+
subtype?: string;
|
|
81
72
|
/**
|
|
82
|
-
*
|
|
73
|
+
* Object class (constructor) name. Specified for <code>object</code> type values only.
|
|
83
74
|
*/
|
|
84
|
-
|
|
75
|
+
className?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Remote object value in case of primitive values or JSON values (if it was requested).
|
|
78
|
+
*/
|
|
79
|
+
value?: any;
|
|
80
|
+
/**
|
|
81
|
+
* Primitive value which can not be JSON-stringified does not have <code>value</code>, but gets this property.
|
|
82
|
+
*/
|
|
83
|
+
unserializableValue?: UnserializableValue;
|
|
84
|
+
/**
|
|
85
|
+
* String representation of the object.
|
|
86
|
+
*/
|
|
87
|
+
description?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Unique object identifier (for non-primitive values).
|
|
90
|
+
*/
|
|
91
|
+
objectId?: RemoteObjectId;
|
|
92
|
+
/**
|
|
93
|
+
* Preview containing abbreviated property values. Specified for <code>object</code> type values only.
|
|
94
|
+
* @experimental
|
|
95
|
+
*/
|
|
96
|
+
preview?: ObjectPreview;
|
|
97
|
+
/**
|
|
98
|
+
* @experimental
|
|
99
|
+
*/
|
|
100
|
+
customPreview?: CustomPreview;
|
|
85
101
|
}
|
|
86
102
|
|
|
87
103
|
/**
|
|
88
|
-
* Location in the source code.
|
|
89
104
|
* @experimental
|
|
90
105
|
*/
|
|
91
|
-
interface
|
|
92
|
-
|
|
93
|
-
|
|
106
|
+
interface CustomPreview {
|
|
107
|
+
header: string;
|
|
108
|
+
hasBody: boolean;
|
|
109
|
+
formatterObjectId: RemoteObjectId;
|
|
110
|
+
bindRemoteObjectFunctionId: RemoteObjectId;
|
|
111
|
+
configObjectId?: RemoteObjectId;
|
|
94
112
|
}
|
|
95
113
|
|
|
96
114
|
/**
|
|
97
|
-
*
|
|
115
|
+
* Object containing abbreviated remote object value.
|
|
116
|
+
* @experimental
|
|
98
117
|
*/
|
|
99
|
-
interface
|
|
100
|
-
/**
|
|
101
|
-
* Call frame identifier. This identifier is only valid while the virtual machine is paused.
|
|
102
|
-
*/
|
|
103
|
-
callFrameId: CallFrameId;
|
|
104
|
-
/**
|
|
105
|
-
* Name of the JavaScript function called on this call frame.
|
|
106
|
-
*/
|
|
107
|
-
functionName: string;
|
|
118
|
+
interface ObjectPreview {
|
|
108
119
|
/**
|
|
109
|
-
*
|
|
120
|
+
* Object type.
|
|
110
121
|
*/
|
|
111
|
-
|
|
122
|
+
type: string;
|
|
112
123
|
/**
|
|
113
|
-
*
|
|
124
|
+
* Object subtype hint. Specified for <code>object</code> type values only.
|
|
114
125
|
*/
|
|
115
|
-
|
|
126
|
+
subtype?: string;
|
|
116
127
|
/**
|
|
117
|
-
*
|
|
128
|
+
* String representation of the object.
|
|
118
129
|
*/
|
|
119
|
-
|
|
130
|
+
description?: string;
|
|
120
131
|
/**
|
|
121
|
-
*
|
|
132
|
+
* True iff some of the properties or entries of the original object did not fit.
|
|
122
133
|
*/
|
|
123
|
-
|
|
134
|
+
overflow: boolean;
|
|
124
135
|
/**
|
|
125
|
-
*
|
|
136
|
+
* List of the properties.
|
|
126
137
|
*/
|
|
127
|
-
|
|
138
|
+
properties: PropertyPreview[];
|
|
128
139
|
/**
|
|
129
|
-
*
|
|
140
|
+
* List of the entries. Specified for <code>map</code> and <code>set</code> subtype values only.
|
|
130
141
|
*/
|
|
131
|
-
|
|
142
|
+
entries?: EntryPreview[];
|
|
132
143
|
}
|
|
133
144
|
|
|
134
145
|
/**
|
|
135
|
-
*
|
|
146
|
+
* @experimental
|
|
136
147
|
*/
|
|
137
|
-
interface
|
|
148
|
+
interface PropertyPreview {
|
|
138
149
|
/**
|
|
139
|
-
*
|
|
150
|
+
* Property name.
|
|
151
|
+
*/
|
|
152
|
+
name: string;
|
|
153
|
+
/**
|
|
154
|
+
* Object type. Accessor means that the property itself is an accessor property.
|
|
140
155
|
*/
|
|
141
156
|
type: string;
|
|
142
157
|
/**
|
|
143
|
-
*
|
|
144
|
-
* object; for the rest of the scopes, it is artificial transient object enumerating scope
|
|
145
|
-
* variables as its properties.
|
|
158
|
+
* User-friendly property value string.
|
|
146
159
|
*/
|
|
147
|
-
|
|
148
|
-
name?: string;
|
|
160
|
+
value?: string;
|
|
149
161
|
/**
|
|
150
|
-
*
|
|
162
|
+
* Nested value preview.
|
|
151
163
|
*/
|
|
152
|
-
|
|
164
|
+
valuePreview?: ObjectPreview;
|
|
153
165
|
/**
|
|
154
|
-
*
|
|
166
|
+
* Object subtype hint. Specified for <code>object</code> type values only.
|
|
155
167
|
*/
|
|
156
|
-
|
|
168
|
+
subtype?: string;
|
|
157
169
|
}
|
|
158
170
|
|
|
159
171
|
/**
|
|
160
|
-
*
|
|
172
|
+
* @experimental
|
|
161
173
|
*/
|
|
162
|
-
interface
|
|
174
|
+
interface EntryPreview {
|
|
163
175
|
/**
|
|
164
|
-
*
|
|
176
|
+
* Preview of the key. Specified for map-like collection entries.
|
|
165
177
|
*/
|
|
166
|
-
|
|
178
|
+
key?: ObjectPreview;
|
|
167
179
|
/**
|
|
168
|
-
*
|
|
180
|
+
* Preview of the value.
|
|
169
181
|
*/
|
|
170
|
-
|
|
182
|
+
value: ObjectPreview;
|
|
171
183
|
}
|
|
172
184
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
scriptId: Runtime.ScriptId;
|
|
185
|
+
/**
|
|
186
|
+
* Object property descriptor.
|
|
187
|
+
*/
|
|
188
|
+
interface PropertyDescriptor {
|
|
178
189
|
/**
|
|
179
|
-
*
|
|
190
|
+
* Property name or symbol description.
|
|
180
191
|
*/
|
|
181
|
-
|
|
192
|
+
name: string;
|
|
182
193
|
/**
|
|
183
|
-
*
|
|
194
|
+
* The value associated with the property.
|
|
184
195
|
*/
|
|
185
|
-
|
|
186
|
-
type?: string;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
interface ContinueToLocationParameterType {
|
|
196
|
+
value?: RemoteObject;
|
|
190
197
|
/**
|
|
191
|
-
*
|
|
198
|
+
* True if the value associated with the property may be changed (data descriptors only).
|
|
192
199
|
*/
|
|
193
|
-
|
|
194
|
-
targetCallFrames?: string;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
interface EvaluateOnCallFrameParameterType {
|
|
200
|
+
writable?: boolean;
|
|
198
201
|
/**
|
|
199
|
-
*
|
|
202
|
+
* A function which serves as a getter for the property, or <code>undefined</code> if there is no getter (accessor descriptors only).
|
|
200
203
|
*/
|
|
201
|
-
|
|
204
|
+
get?: RemoteObject;
|
|
202
205
|
/**
|
|
203
|
-
*
|
|
206
|
+
* A function which serves as a setter for the property, or <code>undefined</code> if there is no setter (accessor descriptors only).
|
|
204
207
|
*/
|
|
205
|
-
|
|
208
|
+
set?: RemoteObject;
|
|
206
209
|
/**
|
|
207
|
-
*
|
|
208
|
-
* using `releaseObjectGroup`).
|
|
210
|
+
* True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
|
|
209
211
|
*/
|
|
210
|
-
|
|
212
|
+
configurable: boolean;
|
|
211
213
|
/**
|
|
212
|
-
*
|
|
213
|
-
* to false.
|
|
214
|
+
* True if this property shows up during enumeration of the properties on the corresponding object.
|
|
214
215
|
*/
|
|
215
|
-
|
|
216
|
+
enumerable: boolean;
|
|
216
217
|
/**
|
|
217
|
-
*
|
|
218
|
-
* execution. Overrides `setPauseOnException` state.
|
|
218
|
+
* True if the result was thrown during the evaluation.
|
|
219
219
|
*/
|
|
220
|
-
|
|
220
|
+
wasThrown?: boolean;
|
|
221
221
|
/**
|
|
222
|
-
*
|
|
222
|
+
* True if the property is owned for the object.
|
|
223
223
|
*/
|
|
224
|
-
|
|
224
|
+
isOwn?: boolean;
|
|
225
225
|
/**
|
|
226
|
-
*
|
|
227
|
-
* @experimental
|
|
226
|
+
* Property symbol object, if the property is of the <code>symbol</code> type.
|
|
228
227
|
*/
|
|
229
|
-
|
|
228
|
+
symbol?: RemoteObject;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Object internal property descriptor. This property isn't normally visible in JavaScript code.
|
|
233
|
+
*/
|
|
234
|
+
interface InternalPropertyDescriptor {
|
|
230
235
|
/**
|
|
231
|
-
*
|
|
236
|
+
* Conventional property name.
|
|
232
237
|
*/
|
|
233
|
-
|
|
238
|
+
name: string;
|
|
234
239
|
/**
|
|
235
|
-
*
|
|
236
|
-
* @experimental
|
|
240
|
+
* The value associated with the property.
|
|
237
241
|
*/
|
|
238
|
-
|
|
242
|
+
value?: RemoteObject;
|
|
239
243
|
}
|
|
240
244
|
|
|
241
|
-
|
|
245
|
+
/**
|
|
246
|
+
* Represents function call argument. Either remote object id <code>objectId</code>, primitive <code>value</code>, unserializable primitive value or neither of (for undefined) them should be specified.
|
|
247
|
+
*/
|
|
248
|
+
interface CallArgument {
|
|
242
249
|
/**
|
|
243
|
-
*
|
|
250
|
+
* Primitive value or serializable javascript object.
|
|
244
251
|
*/
|
|
245
|
-
|
|
252
|
+
value?: any;
|
|
246
253
|
/**
|
|
247
|
-
*
|
|
248
|
-
* of scripts is used as end of range.
|
|
254
|
+
* Primitive value which can not be JSON-stringified.
|
|
249
255
|
*/
|
|
250
|
-
|
|
256
|
+
unserializableValue?: UnserializableValue;
|
|
251
257
|
/**
|
|
252
|
-
*
|
|
258
|
+
* Remote object handle.
|
|
253
259
|
*/
|
|
254
|
-
|
|
260
|
+
objectId?: RemoteObjectId;
|
|
255
261
|
}
|
|
256
262
|
|
|
257
|
-
|
|
263
|
+
/**
|
|
264
|
+
* Id of an execution context.
|
|
265
|
+
*/
|
|
266
|
+
type ExecutionContextId = number;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Description of an isolated world.
|
|
270
|
+
*/
|
|
271
|
+
interface ExecutionContextDescription {
|
|
258
272
|
/**
|
|
259
|
-
*
|
|
273
|
+
* Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed.
|
|
260
274
|
*/
|
|
261
|
-
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
interface GetStackTraceParameterType {
|
|
265
|
-
stackTraceId: Runtime.StackTraceId;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
interface PauseOnAsyncCallParameterType {
|
|
275
|
+
id: ExecutionContextId;
|
|
269
276
|
/**
|
|
270
|
-
*
|
|
277
|
+
* Execution context origin.
|
|
271
278
|
*/
|
|
272
|
-
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
interface RemoveBreakpointParameterType {
|
|
276
|
-
breakpointId: BreakpointId;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
interface RestartFrameParameterType {
|
|
279
|
+
origin: string;
|
|
280
280
|
/**
|
|
281
|
-
*
|
|
281
|
+
* Human readable name describing given context.
|
|
282
282
|
*/
|
|
283
|
-
|
|
283
|
+
name: string;
|
|
284
|
+
/**
|
|
285
|
+
* Embedder-specific auxiliary data.
|
|
286
|
+
*/
|
|
287
|
+
auxData?: {};
|
|
284
288
|
}
|
|
285
289
|
|
|
286
|
-
|
|
290
|
+
/**
|
|
291
|
+
* Detailed information about exception (or error) that was thrown during script compilation or execution.
|
|
292
|
+
*/
|
|
293
|
+
interface ExceptionDetails {
|
|
287
294
|
/**
|
|
288
|
-
*
|
|
295
|
+
* Exception id.
|
|
289
296
|
*/
|
|
290
|
-
|
|
297
|
+
exceptionId: number;
|
|
291
298
|
/**
|
|
292
|
-
*
|
|
299
|
+
* Exception text, which should be used together with exception object when available.
|
|
293
300
|
*/
|
|
294
|
-
|
|
301
|
+
text: string;
|
|
295
302
|
/**
|
|
296
|
-
*
|
|
303
|
+
* Line number of the exception location (0-based).
|
|
297
304
|
*/
|
|
298
|
-
|
|
305
|
+
lineNumber: number;
|
|
299
306
|
/**
|
|
300
|
-
*
|
|
307
|
+
* Column number of the exception location (0-based).
|
|
301
308
|
*/
|
|
302
|
-
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
interface SetAsyncCallStackDepthParameterType {
|
|
309
|
+
columnNumber: number;
|
|
306
310
|
/**
|
|
307
|
-
*
|
|
308
|
-
* call stacks (default).
|
|
311
|
+
* Script ID of the exception location.
|
|
309
312
|
*/
|
|
310
|
-
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
interface SetBlackboxPatternsParameterType {
|
|
313
|
+
scriptId?: ScriptId;
|
|
314
314
|
/**
|
|
315
|
-
*
|
|
315
|
+
* URL of the exception location, to be used when the script was not reported.
|
|
316
316
|
*/
|
|
317
|
-
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
interface SetBlackboxedRangesParameterType {
|
|
317
|
+
url?: string;
|
|
321
318
|
/**
|
|
322
|
-
*
|
|
319
|
+
* JavaScript stack trace if available.
|
|
323
320
|
*/
|
|
324
|
-
|
|
325
|
-
positions: ScriptPosition[];
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
interface SetBreakpointParameterType {
|
|
321
|
+
stackTrace?: StackTrace;
|
|
329
322
|
/**
|
|
330
|
-
*
|
|
323
|
+
* Exception object if available.
|
|
331
324
|
*/
|
|
332
|
-
|
|
325
|
+
exception?: RemoteObject;
|
|
333
326
|
/**
|
|
334
|
-
*
|
|
335
|
-
* breakpoint if this expression evaluates to true.
|
|
327
|
+
* Identifier of the context where exception happened.
|
|
336
328
|
*/
|
|
337
|
-
|
|
329
|
+
executionContextId?: ExecutionContextId;
|
|
338
330
|
}
|
|
339
331
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
332
|
+
/**
|
|
333
|
+
* Number of milliseconds since epoch.
|
|
334
|
+
*/
|
|
335
|
+
type Timestamp = number;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Stack entry for runtime errors and assertions.
|
|
339
|
+
*/
|
|
340
|
+
interface CallFrame {
|
|
345
341
|
/**
|
|
346
|
-
*
|
|
342
|
+
* JavaScript function name.
|
|
347
343
|
*/
|
|
348
|
-
|
|
344
|
+
functionName: string;
|
|
349
345
|
/**
|
|
350
|
-
*
|
|
351
|
-
* `urlRegex` must be specified.
|
|
346
|
+
* JavaScript script id.
|
|
352
347
|
*/
|
|
353
|
-
|
|
348
|
+
scriptId: ScriptId;
|
|
354
349
|
/**
|
|
355
|
-
*
|
|
350
|
+
* JavaScript script name or url.
|
|
356
351
|
*/
|
|
357
|
-
|
|
352
|
+
url: string;
|
|
358
353
|
/**
|
|
359
|
-
*
|
|
354
|
+
* JavaScript script line number (0-based).
|
|
360
355
|
*/
|
|
361
|
-
|
|
356
|
+
lineNumber: number;
|
|
362
357
|
/**
|
|
363
|
-
*
|
|
364
|
-
* breakpoint if this expression evaluates to true.
|
|
358
|
+
* JavaScript script column number (0-based).
|
|
365
359
|
*/
|
|
366
|
-
|
|
360
|
+
columnNumber: number;
|
|
367
361
|
}
|
|
368
362
|
|
|
369
|
-
|
|
363
|
+
/**
|
|
364
|
+
* Call frames for assertions or error messages.
|
|
365
|
+
*/
|
|
366
|
+
interface StackTrace {
|
|
370
367
|
/**
|
|
371
|
-
*
|
|
368
|
+
* String label of this stack trace. For async traces this may be a name of the function that initiated the async call.
|
|
372
369
|
*/
|
|
373
|
-
|
|
370
|
+
description?: string;
|
|
374
371
|
/**
|
|
375
|
-
*
|
|
376
|
-
* stop on the breakpoint if this expression evaluates to true.
|
|
372
|
+
* JavaScript function name.
|
|
377
373
|
*/
|
|
378
|
-
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
interface SetBreakpointsActiveParameterType {
|
|
374
|
+
callFrames: CallFrame[];
|
|
382
375
|
/**
|
|
383
|
-
*
|
|
376
|
+
* Asynchronous JavaScript stack trace that preceded this stack, if available.
|
|
384
377
|
*/
|
|
385
|
-
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
interface SetPauseOnExceptionsParameterType {
|
|
378
|
+
parent?: StackTrace;
|
|
389
379
|
/**
|
|
390
|
-
*
|
|
380
|
+
* Asynchronous JavaScript stack trace that preceded this stack, if available.
|
|
381
|
+
* @experimental
|
|
391
382
|
*/
|
|
392
|
-
|
|
383
|
+
parentId?: StackTraceId;
|
|
393
384
|
}
|
|
394
385
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
386
|
+
/**
|
|
387
|
+
* Unique identifier of current debugger.
|
|
388
|
+
* @experimental
|
|
389
|
+
*/
|
|
390
|
+
type UniqueDebuggerId = string;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* If <code>debuggerId</code> is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See <code>Runtime.StackTrace</code> and <code>Debugger.paused</code> for usages.
|
|
394
|
+
* @experimental
|
|
395
|
+
*/
|
|
396
|
+
interface StackTraceId {
|
|
397
|
+
id: string;
|
|
398
|
+
debuggerId?: UniqueDebuggerId;
|
|
400
399
|
}
|
|
401
400
|
|
|
402
|
-
interface
|
|
401
|
+
interface EvaluateParameterType {
|
|
403
402
|
/**
|
|
404
|
-
*
|
|
403
|
+
* Expression to evaluate.
|
|
405
404
|
*/
|
|
406
|
-
|
|
405
|
+
expression: string;
|
|
407
406
|
/**
|
|
408
|
-
*
|
|
407
|
+
* Symbolic group name that can be used to release multiple objects.
|
|
409
408
|
*/
|
|
410
|
-
|
|
409
|
+
objectGroup?: string;
|
|
411
410
|
/**
|
|
412
|
-
*
|
|
413
|
-
* description without actually modifying the code.
|
|
411
|
+
* Determines whether Command Line API should be available during the evaluation.
|
|
414
412
|
*/
|
|
415
|
-
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
interface SetSkipAllPausesParameterType {
|
|
413
|
+
includeCommandLineAPI?: boolean;
|
|
419
414
|
/**
|
|
420
|
-
*
|
|
415
|
+
* In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
|
|
421
416
|
*/
|
|
422
|
-
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
interface SetVariableValueParameterType {
|
|
417
|
+
silent?: boolean;
|
|
426
418
|
/**
|
|
427
|
-
*
|
|
428
|
-
* scope types are allowed. Other scopes could be manipulated manually.
|
|
419
|
+
* Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
|
|
429
420
|
*/
|
|
430
|
-
|
|
421
|
+
contextId?: ExecutionContextId;
|
|
431
422
|
/**
|
|
432
|
-
*
|
|
423
|
+
* Whether the result is expected to be a JSON object that should be sent by value.
|
|
433
424
|
*/
|
|
434
|
-
|
|
425
|
+
returnByValue?: boolean;
|
|
435
426
|
/**
|
|
436
|
-
*
|
|
427
|
+
* Whether preview should be generated for the result.
|
|
428
|
+
* @experimental
|
|
437
429
|
*/
|
|
438
|
-
|
|
430
|
+
generatePreview?: boolean;
|
|
439
431
|
/**
|
|
440
|
-
*
|
|
432
|
+
* Whether execution should be treated as initiated by user in the UI.
|
|
441
433
|
*/
|
|
442
|
-
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
interface StepIntoParameterType {
|
|
434
|
+
userGesture?: boolean;
|
|
446
435
|
/**
|
|
447
|
-
*
|
|
448
|
-
* before next pause.
|
|
449
|
-
* @experimental
|
|
436
|
+
* Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
|
|
450
437
|
*/
|
|
451
|
-
|
|
438
|
+
awaitPromise?: boolean;
|
|
452
439
|
}
|
|
453
440
|
|
|
454
|
-
interface
|
|
441
|
+
interface AwaitPromiseParameterType {
|
|
455
442
|
/**
|
|
456
|
-
*
|
|
457
|
-
* @experimental
|
|
443
|
+
* Identifier of the promise.
|
|
458
444
|
*/
|
|
459
|
-
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
interface EvaluateOnCallFrameReturnType {
|
|
445
|
+
promiseObjectId: RemoteObjectId;
|
|
463
446
|
/**
|
|
464
|
-
*
|
|
447
|
+
* Whether the result is expected to be a JSON object that should be sent by value.
|
|
465
448
|
*/
|
|
466
|
-
|
|
449
|
+
returnByValue?: boolean;
|
|
467
450
|
/**
|
|
468
|
-
*
|
|
451
|
+
* Whether preview should be generated for the result.
|
|
469
452
|
*/
|
|
470
|
-
|
|
453
|
+
generatePreview?: boolean;
|
|
471
454
|
}
|
|
472
455
|
|
|
473
|
-
interface
|
|
456
|
+
interface CallFunctionOnParameterType {
|
|
474
457
|
/**
|
|
475
|
-
*
|
|
458
|
+
* Declaration of the function to call.
|
|
476
459
|
*/
|
|
477
|
-
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
interface GetScriptSourceReturnType {
|
|
460
|
+
functionDeclaration: string;
|
|
481
461
|
/**
|
|
482
|
-
*
|
|
462
|
+
* Identifier of the object to call function on. Either objectId or executionContextId should be specified.
|
|
483
463
|
*/
|
|
484
|
-
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
interface GetStackTraceReturnType {
|
|
488
|
-
stackTrace: Runtime.StackTrace;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
interface RestartFrameReturnType {
|
|
464
|
+
objectId?: RemoteObjectId;
|
|
492
465
|
/**
|
|
493
|
-
*
|
|
466
|
+
* Call arguments. All call arguments must belong to the same JavaScript world as the target object.
|
|
494
467
|
*/
|
|
495
|
-
|
|
468
|
+
arguments?: CallArgument[];
|
|
496
469
|
/**
|
|
497
|
-
*
|
|
470
|
+
* In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
|
|
498
471
|
*/
|
|
499
|
-
|
|
472
|
+
silent?: boolean;
|
|
500
473
|
/**
|
|
501
|
-
*
|
|
474
|
+
* Whether the result is expected to be a JSON object which should be sent by value.
|
|
475
|
+
*/
|
|
476
|
+
returnByValue?: boolean;
|
|
477
|
+
/**
|
|
478
|
+
* Whether preview should be generated for the result.
|
|
502
479
|
* @experimental
|
|
503
480
|
*/
|
|
504
|
-
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
interface SearchInContentReturnType {
|
|
481
|
+
generatePreview?: boolean;
|
|
508
482
|
/**
|
|
509
|
-
*
|
|
483
|
+
* Whether execution should be treated as initiated by user in the UI.
|
|
510
484
|
*/
|
|
511
|
-
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
interface SetBreakpointReturnType {
|
|
485
|
+
userGesture?: boolean;
|
|
515
486
|
/**
|
|
516
|
-
*
|
|
487
|
+
* Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
|
|
517
488
|
*/
|
|
518
|
-
|
|
489
|
+
awaitPromise?: boolean;
|
|
519
490
|
/**
|
|
520
|
-
*
|
|
491
|
+
* Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.
|
|
521
492
|
*/
|
|
522
|
-
|
|
493
|
+
executionContextId?: ExecutionContextId;
|
|
494
|
+
/**
|
|
495
|
+
* Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object.
|
|
496
|
+
*/
|
|
497
|
+
objectGroup?: string;
|
|
523
498
|
}
|
|
524
499
|
|
|
525
|
-
interface
|
|
500
|
+
interface GetPropertiesParameterType {
|
|
526
501
|
/**
|
|
527
|
-
*
|
|
502
|
+
* Identifier of the object to return properties for.
|
|
528
503
|
*/
|
|
529
|
-
|
|
504
|
+
objectId: RemoteObjectId;
|
|
530
505
|
/**
|
|
531
|
-
*
|
|
506
|
+
* If true, returns properties belonging only to the element itself, not to its prototype chain.
|
|
532
507
|
*/
|
|
533
|
-
|
|
508
|
+
ownProperties?: boolean;
|
|
509
|
+
/**
|
|
510
|
+
* If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.
|
|
511
|
+
* @experimental
|
|
512
|
+
*/
|
|
513
|
+
accessorPropertiesOnly?: boolean;
|
|
514
|
+
/**
|
|
515
|
+
* Whether preview should be generated for the results.
|
|
516
|
+
* @experimental
|
|
517
|
+
*/
|
|
518
|
+
generatePreview?: boolean;
|
|
534
519
|
}
|
|
535
520
|
|
|
536
|
-
interface
|
|
521
|
+
interface ReleaseObjectParameterType {
|
|
537
522
|
/**
|
|
538
|
-
*
|
|
523
|
+
* Identifier of the object to release.
|
|
539
524
|
*/
|
|
540
|
-
|
|
525
|
+
objectId: RemoteObjectId;
|
|
541
526
|
}
|
|
542
527
|
|
|
543
|
-
interface
|
|
528
|
+
interface ReleaseObjectGroupParameterType {
|
|
544
529
|
/**
|
|
545
|
-
*
|
|
530
|
+
* Symbolic object group name.
|
|
546
531
|
*/
|
|
547
|
-
|
|
532
|
+
objectGroup: string;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
interface SetCustomObjectFormatterEnabledParameterType {
|
|
536
|
+
enabled: boolean;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
interface CompileScriptParameterType {
|
|
548
540
|
/**
|
|
549
|
-
*
|
|
541
|
+
* Expression to compile.
|
|
550
542
|
*/
|
|
551
|
-
|
|
543
|
+
expression: string;
|
|
552
544
|
/**
|
|
553
|
-
*
|
|
545
|
+
* Source url to be set for the script.
|
|
554
546
|
*/
|
|
555
|
-
|
|
547
|
+
sourceURL: string;
|
|
556
548
|
/**
|
|
557
|
-
*
|
|
558
|
-
* @experimental
|
|
549
|
+
* Specifies whether the compiled script should be persisted.
|
|
559
550
|
*/
|
|
560
|
-
|
|
551
|
+
persistScript: boolean;
|
|
561
552
|
/**
|
|
562
|
-
*
|
|
553
|
+
* Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
|
|
563
554
|
*/
|
|
564
|
-
|
|
555
|
+
executionContextId?: ExecutionContextId;
|
|
565
556
|
}
|
|
566
557
|
|
|
567
|
-
interface
|
|
568
|
-
/**
|
|
569
|
-
* Breakpoint unique identifier.
|
|
570
|
-
*/
|
|
571
|
-
breakpointId: BreakpointId;
|
|
558
|
+
interface RunScriptParameterType {
|
|
572
559
|
/**
|
|
573
|
-
*
|
|
560
|
+
* Id of the script to run.
|
|
574
561
|
*/
|
|
575
|
-
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
interface PausedEventDataType {
|
|
562
|
+
scriptId: ScriptId;
|
|
579
563
|
/**
|
|
580
|
-
*
|
|
564
|
+
* Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
|
|
581
565
|
*/
|
|
582
|
-
|
|
566
|
+
executionContextId?: ExecutionContextId;
|
|
583
567
|
/**
|
|
584
|
-
*
|
|
568
|
+
* Symbolic group name that can be used to release multiple objects.
|
|
585
569
|
*/
|
|
586
|
-
|
|
570
|
+
objectGroup?: string;
|
|
587
571
|
/**
|
|
588
|
-
*
|
|
572
|
+
* In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
|
|
589
573
|
*/
|
|
590
|
-
|
|
574
|
+
silent?: boolean;
|
|
591
575
|
/**
|
|
592
|
-
*
|
|
576
|
+
* Determines whether Command Line API should be available during the evaluation.
|
|
593
577
|
*/
|
|
594
|
-
|
|
578
|
+
includeCommandLineAPI?: boolean;
|
|
595
579
|
/**
|
|
596
|
-
*
|
|
580
|
+
* Whether the result is expected to be a JSON object which should be sent by value.
|
|
597
581
|
*/
|
|
598
|
-
|
|
582
|
+
returnByValue?: boolean;
|
|
599
583
|
/**
|
|
600
|
-
*
|
|
601
|
-
* @experimental
|
|
584
|
+
* Whether preview should be generated for the result.
|
|
602
585
|
*/
|
|
603
|
-
|
|
586
|
+
generatePreview?: boolean;
|
|
604
587
|
/**
|
|
605
|
-
*
|
|
606
|
-
* This field is available only after `Debugger.stepInto` call with `breakOnAsynCall` flag.
|
|
607
|
-
* @experimental
|
|
588
|
+
* Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
|
|
608
589
|
*/
|
|
609
|
-
|
|
590
|
+
awaitPromise?: boolean;
|
|
610
591
|
}
|
|
611
592
|
|
|
612
|
-
interface
|
|
613
|
-
/**
|
|
614
|
-
* Identifier of the script parsed.
|
|
615
|
-
*/
|
|
616
|
-
scriptId: Runtime.ScriptId;
|
|
593
|
+
interface QueryObjectsParameterType {
|
|
617
594
|
/**
|
|
618
|
-
*
|
|
595
|
+
* Identifier of the prototype to return objects for.
|
|
619
596
|
*/
|
|
620
|
-
|
|
597
|
+
prototypeObjectId: RemoteObjectId;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
interface GlobalLexicalScopeNamesParameterType {
|
|
621
601
|
/**
|
|
622
|
-
*
|
|
602
|
+
* Specifies in which execution context to lookup global scope variables.
|
|
623
603
|
*/
|
|
624
|
-
|
|
604
|
+
executionContextId?: ExecutionContextId;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
interface EvaluateReturnType {
|
|
625
608
|
/**
|
|
626
|
-
*
|
|
609
|
+
* Evaluation result.
|
|
627
610
|
*/
|
|
628
|
-
|
|
611
|
+
result: RemoteObject;
|
|
629
612
|
/**
|
|
630
|
-
*
|
|
613
|
+
* Exception details.
|
|
631
614
|
*/
|
|
632
|
-
|
|
615
|
+
exceptionDetails?: ExceptionDetails;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
interface AwaitPromiseReturnType {
|
|
633
619
|
/**
|
|
634
|
-
*
|
|
620
|
+
* Promise result. Will contain rejected value if promise was rejected.
|
|
635
621
|
*/
|
|
636
|
-
|
|
622
|
+
result: RemoteObject;
|
|
637
623
|
/**
|
|
638
|
-
*
|
|
624
|
+
* Exception details if stack strace is available.
|
|
639
625
|
*/
|
|
640
|
-
|
|
626
|
+
exceptionDetails?: ExceptionDetails;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
interface CallFunctionOnReturnType {
|
|
641
630
|
/**
|
|
642
|
-
*
|
|
631
|
+
* Call result.
|
|
643
632
|
*/
|
|
644
|
-
|
|
633
|
+
result: RemoteObject;
|
|
645
634
|
/**
|
|
646
|
-
*
|
|
635
|
+
* Exception details.
|
|
647
636
|
*/
|
|
648
|
-
|
|
637
|
+
exceptionDetails?: ExceptionDetails;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
interface GetPropertiesReturnType {
|
|
649
641
|
/**
|
|
650
|
-
*
|
|
642
|
+
* Object properties.
|
|
651
643
|
*/
|
|
652
|
-
|
|
644
|
+
result: PropertyDescriptor[];
|
|
653
645
|
/**
|
|
654
|
-
*
|
|
646
|
+
* Internal object properties (only of the element itself).
|
|
655
647
|
*/
|
|
656
|
-
|
|
648
|
+
internalProperties?: InternalPropertyDescriptor[];
|
|
657
649
|
/**
|
|
658
|
-
*
|
|
650
|
+
* Exception details.
|
|
659
651
|
*/
|
|
660
|
-
|
|
652
|
+
exceptionDetails?: ExceptionDetails;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
interface CompileScriptReturnType {
|
|
661
656
|
/**
|
|
662
|
-
*
|
|
657
|
+
* Id of the script.
|
|
663
658
|
*/
|
|
664
|
-
|
|
659
|
+
scriptId?: ScriptId;
|
|
665
660
|
/**
|
|
666
|
-
*
|
|
667
|
-
* @experimental
|
|
661
|
+
* Exception details.
|
|
668
662
|
*/
|
|
669
|
-
|
|
663
|
+
exceptionDetails?: ExceptionDetails;
|
|
670
664
|
}
|
|
671
665
|
|
|
672
|
-
interface
|
|
673
|
-
/**
|
|
674
|
-
* Identifier of the script parsed.
|
|
675
|
-
*/
|
|
676
|
-
scriptId: Runtime.ScriptId;
|
|
666
|
+
interface RunScriptReturnType {
|
|
677
667
|
/**
|
|
678
|
-
*
|
|
668
|
+
* Run result.
|
|
679
669
|
*/
|
|
680
|
-
|
|
670
|
+
result: RemoteObject;
|
|
681
671
|
/**
|
|
682
|
-
*
|
|
672
|
+
* Exception details.
|
|
683
673
|
*/
|
|
684
|
-
|
|
674
|
+
exceptionDetails?: ExceptionDetails;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
interface QueryObjectsReturnType {
|
|
685
678
|
/**
|
|
686
|
-
*
|
|
679
|
+
* Array with objects.
|
|
687
680
|
*/
|
|
688
|
-
|
|
681
|
+
objects: RemoteObject;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
interface GlobalLexicalScopeNamesReturnType {
|
|
685
|
+
names: string[];
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
interface ExecutionContextCreatedEventDataType {
|
|
689
689
|
/**
|
|
690
|
-
*
|
|
690
|
+
* A newly created execution context.
|
|
691
691
|
*/
|
|
692
|
-
|
|
692
|
+
context: ExecutionContextDescription;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
interface ExecutionContextDestroyedEventDataType {
|
|
693
696
|
/**
|
|
694
|
-
*
|
|
697
|
+
* Id of the destroyed context
|
|
695
698
|
*/
|
|
696
|
-
|
|
699
|
+
executionContextId: ExecutionContextId;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
interface ExceptionThrownEventDataType {
|
|
697
703
|
/**
|
|
698
|
-
*
|
|
704
|
+
* Timestamp of the exception.
|
|
699
705
|
*/
|
|
700
|
-
|
|
706
|
+
timestamp: Timestamp;
|
|
707
|
+
exceptionDetails: ExceptionDetails;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
interface ExceptionRevokedEventDataType {
|
|
701
711
|
/**
|
|
702
|
-
*
|
|
712
|
+
* Reason describing why exception was revoked.
|
|
703
713
|
*/
|
|
704
|
-
|
|
714
|
+
reason: string;
|
|
705
715
|
/**
|
|
706
|
-
*
|
|
716
|
+
* The id of revoked exception, as reported in <code>exceptionThrown</code>.
|
|
707
717
|
*/
|
|
708
|
-
|
|
718
|
+
exceptionId: number;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
interface ConsoleAPICalledEventDataType {
|
|
709
722
|
/**
|
|
710
|
-
*
|
|
711
|
-
* @experimental
|
|
723
|
+
* Type of the call.
|
|
712
724
|
*/
|
|
713
|
-
|
|
725
|
+
type: string;
|
|
714
726
|
/**
|
|
715
|
-
*
|
|
727
|
+
* Call arguments.
|
|
716
728
|
*/
|
|
717
|
-
|
|
729
|
+
args: RemoteObject[];
|
|
718
730
|
/**
|
|
719
|
-
*
|
|
731
|
+
* Identifier of the context where the call was made.
|
|
720
732
|
*/
|
|
721
|
-
|
|
733
|
+
executionContextId: ExecutionContextId;
|
|
722
734
|
/**
|
|
723
|
-
*
|
|
735
|
+
* Call timestamp.
|
|
724
736
|
*/
|
|
725
|
-
|
|
737
|
+
timestamp: Timestamp;
|
|
726
738
|
/**
|
|
727
|
-
*
|
|
739
|
+
* Stack trace captured when the call was made.
|
|
728
740
|
*/
|
|
729
|
-
|
|
741
|
+
stackTrace?: StackTrace;
|
|
730
742
|
/**
|
|
731
|
-
*
|
|
743
|
+
* Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.
|
|
732
744
|
* @experimental
|
|
733
745
|
*/
|
|
734
|
-
|
|
746
|
+
context?: string;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
interface InspectRequestedEventDataType {
|
|
750
|
+
object: RemoteObject;
|
|
751
|
+
hints: {};
|
|
735
752
|
}
|
|
736
753
|
}
|
|
737
754
|
|
|
738
|
-
namespace
|
|
755
|
+
namespace Debugger {
|
|
739
756
|
/**
|
|
740
|
-
*
|
|
757
|
+
* Breakpoint identifier.
|
|
741
758
|
*/
|
|
742
|
-
type
|
|
759
|
+
type BreakpointId = string;
|
|
743
760
|
|
|
744
761
|
/**
|
|
745
|
-
*
|
|
762
|
+
* Call frame identifier.
|
|
746
763
|
*/
|
|
747
|
-
|
|
764
|
+
type CallFrameId = string;
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Location in the source code.
|
|
768
|
+
*/
|
|
769
|
+
interface Location {
|
|
748
770
|
/**
|
|
749
|
-
*
|
|
771
|
+
* Script identifier as reported in the <code>Debugger.scriptParsed</code>.
|
|
750
772
|
*/
|
|
751
|
-
|
|
773
|
+
scriptId: Runtime.ScriptId;
|
|
752
774
|
/**
|
|
753
|
-
*
|
|
775
|
+
* Line number in the script (0-based).
|
|
754
776
|
*/
|
|
755
|
-
|
|
777
|
+
lineNumber: number;
|
|
756
778
|
/**
|
|
757
|
-
*
|
|
779
|
+
* Column number in the script (0-based).
|
|
758
780
|
*/
|
|
759
|
-
|
|
781
|
+
columnNumber?: number;
|
|
760
782
|
}
|
|
761
783
|
|
|
762
784
|
/**
|
|
763
|
-
*
|
|
785
|
+
* Location in the source code.
|
|
786
|
+
* @experimental
|
|
764
787
|
*/
|
|
765
|
-
interface
|
|
766
|
-
|
|
788
|
+
interface ScriptPosition {
|
|
789
|
+
lineNumber: number;
|
|
790
|
+
columnNumber: number;
|
|
767
791
|
}
|
|
768
792
|
|
|
769
|
-
|
|
793
|
+
/**
|
|
794
|
+
* JavaScript call frame. Array of call frames form the call stack.
|
|
795
|
+
*/
|
|
796
|
+
interface CallFrame {
|
|
770
797
|
/**
|
|
771
|
-
*
|
|
798
|
+
* Call frame identifier. This identifier is only valid while the virtual machine is paused.
|
|
772
799
|
*/
|
|
773
|
-
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
interface GetHeapObjectIdParameterType {
|
|
800
|
+
callFrameId: CallFrameId;
|
|
777
801
|
/**
|
|
778
|
-
*
|
|
802
|
+
* Name of the JavaScript function called on this call frame.
|
|
779
803
|
*/
|
|
780
|
-
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
interface GetObjectByHeapObjectIdParameterType {
|
|
784
|
-
objectId: HeapSnapshotObjectId;
|
|
804
|
+
functionName: string;
|
|
785
805
|
/**
|
|
786
|
-
*
|
|
806
|
+
* Location in the source code.
|
|
787
807
|
*/
|
|
788
|
-
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
interface StartSamplingParameterType {
|
|
808
|
+
functionLocation?: Location;
|
|
792
809
|
/**
|
|
793
|
-
*
|
|
794
|
-
* default value is 32768 bytes.
|
|
810
|
+
* Location in the source code.
|
|
795
811
|
*/
|
|
796
|
-
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
interface StartTrackingHeapObjectsParameterType {
|
|
800
|
-
trackAllocations?: boolean;
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
interface StopTrackingHeapObjectsParameterType {
|
|
812
|
+
location: Location;
|
|
804
813
|
/**
|
|
805
|
-
*
|
|
806
|
-
* when the tracking is stopped.
|
|
814
|
+
* JavaScript script name or url.
|
|
807
815
|
*/
|
|
808
|
-
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
interface TakeHeapSnapshotParameterType {
|
|
816
|
+
url: string;
|
|
812
817
|
/**
|
|
813
|
-
*
|
|
818
|
+
* Scope chain for this call frame.
|
|
814
819
|
*/
|
|
815
|
-
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
interface GetHeapObjectIdReturnType {
|
|
820
|
+
scopeChain: Scope[];
|
|
819
821
|
/**
|
|
820
|
-
*
|
|
822
|
+
* <code>this</code> object for this call frame.
|
|
821
823
|
*/
|
|
822
|
-
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
interface GetObjectByHeapObjectIdReturnType {
|
|
824
|
+
this: Runtime.RemoteObject;
|
|
826
825
|
/**
|
|
827
|
-
*
|
|
826
|
+
* The value being returned, if the function is at return point.
|
|
828
827
|
*/
|
|
829
|
-
|
|
828
|
+
returnValue?: Runtime.RemoteObject;
|
|
830
829
|
}
|
|
831
830
|
|
|
832
|
-
|
|
831
|
+
/**
|
|
832
|
+
* Scope description.
|
|
833
|
+
*/
|
|
834
|
+
interface Scope {
|
|
833
835
|
/**
|
|
834
|
-
*
|
|
836
|
+
* Scope type.
|
|
835
837
|
*/
|
|
836
|
-
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
interface StopSamplingReturnType {
|
|
838
|
+
type: string;
|
|
840
839
|
/**
|
|
841
|
-
*
|
|
840
|
+
* Object representing the scope. For <code>global</code> and <code>with</code> scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.
|
|
842
841
|
*/
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
interface AddHeapSnapshotChunkEventDataType {
|
|
847
|
-
chunk: string;
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
interface HeapStatsUpdateEventDataType {
|
|
842
|
+
object: Runtime.RemoteObject;
|
|
843
|
+
name?: string;
|
|
851
844
|
/**
|
|
852
|
-
*
|
|
853
|
-
* index, the second integer is a total count of objects for the fragment, the third integer is
|
|
854
|
-
* a total size of the objects for the fragment.
|
|
845
|
+
* Location in the source code where scope starts
|
|
855
846
|
*/
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
timestamp: number;
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
interface ReportHeapSnapshotProgressEventDataType {
|
|
865
|
-
done: number;
|
|
866
|
-
total: number;
|
|
867
|
-
finished?: boolean;
|
|
847
|
+
startLocation?: Location;
|
|
848
|
+
/**
|
|
849
|
+
* Location in the source code where scope ends
|
|
850
|
+
*/
|
|
851
|
+
endLocation?: Location;
|
|
868
852
|
}
|
|
869
|
-
}
|
|
870
853
|
|
|
871
|
-
namespace Profiler {
|
|
872
854
|
/**
|
|
873
|
-
*
|
|
855
|
+
* Search match for resource.
|
|
874
856
|
*/
|
|
875
|
-
interface
|
|
857
|
+
interface SearchMatch {
|
|
876
858
|
/**
|
|
877
|
-
*
|
|
859
|
+
* Line number in resource content.
|
|
878
860
|
*/
|
|
879
|
-
|
|
861
|
+
lineNumber: number;
|
|
880
862
|
/**
|
|
881
|
-
*
|
|
863
|
+
* Line with match content.
|
|
882
864
|
*/
|
|
883
|
-
|
|
865
|
+
lineContent: string;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
interface BreakLocation {
|
|
884
869
|
/**
|
|
885
|
-
*
|
|
870
|
+
* Script identifier as reported in the <code>Debugger.scriptParsed</code>.
|
|
886
871
|
*/
|
|
887
|
-
|
|
872
|
+
scriptId: Runtime.ScriptId;
|
|
888
873
|
/**
|
|
889
|
-
*
|
|
874
|
+
* Line number in the script (0-based).
|
|
890
875
|
*/
|
|
891
|
-
|
|
876
|
+
lineNumber: number;
|
|
892
877
|
/**
|
|
893
|
-
*
|
|
894
|
-
* optimize.
|
|
878
|
+
* Column number in the script (0-based).
|
|
895
879
|
*/
|
|
896
|
-
|
|
880
|
+
columnNumber?: number;
|
|
881
|
+
type?: string;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
interface SetBreakpointsActiveParameterType {
|
|
897
885
|
/**
|
|
898
|
-
*
|
|
886
|
+
* New value for breakpoints active state.
|
|
899
887
|
*/
|
|
900
|
-
|
|
888
|
+
active: boolean;
|
|
901
889
|
}
|
|
902
890
|
|
|
903
|
-
|
|
904
|
-
* Profile.
|
|
905
|
-
*/
|
|
906
|
-
interface Profile {
|
|
891
|
+
interface SetSkipAllPausesParameterType {
|
|
907
892
|
/**
|
|
908
|
-
*
|
|
893
|
+
* New value for skip pauses state.
|
|
909
894
|
*/
|
|
910
|
-
|
|
895
|
+
skip: boolean;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
interface SetBreakpointByUrlParameterType {
|
|
911
899
|
/**
|
|
912
|
-
*
|
|
900
|
+
* Line number to set breakpoint at.
|
|
913
901
|
*/
|
|
914
|
-
|
|
902
|
+
lineNumber: number;
|
|
915
903
|
/**
|
|
916
|
-
*
|
|
904
|
+
* URL of the resources to set breakpoint on.
|
|
917
905
|
*/
|
|
918
|
-
|
|
906
|
+
url?: string;
|
|
919
907
|
/**
|
|
920
|
-
*
|
|
908
|
+
* Regex pattern for the URLs of the resources to set breakpoints on. Either <code>url</code> or <code>urlRegex</code> must be specified.
|
|
921
909
|
*/
|
|
922
|
-
|
|
910
|
+
urlRegex?: string;
|
|
923
911
|
/**
|
|
924
|
-
*
|
|
925
|
-
* profile startTime.
|
|
912
|
+
* Script hash of the resources to set breakpoint on.
|
|
926
913
|
*/
|
|
927
|
-
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
/**
|
|
931
|
-
* Specifies a number of samples attributed to a certain source position.
|
|
932
|
-
*/
|
|
933
|
-
interface PositionTickInfo {
|
|
914
|
+
scriptHash?: string;
|
|
934
915
|
/**
|
|
935
|
-
*
|
|
916
|
+
* Offset in the line to set breakpoint at.
|
|
936
917
|
*/
|
|
937
|
-
|
|
918
|
+
columnNumber?: number;
|
|
938
919
|
/**
|
|
939
|
-
*
|
|
920
|
+
* Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
|
|
940
921
|
*/
|
|
941
|
-
|
|
922
|
+
condition?: string;
|
|
942
923
|
}
|
|
943
924
|
|
|
944
|
-
|
|
945
|
-
* Coverage data for a source range.
|
|
946
|
-
*/
|
|
947
|
-
interface CoverageRange {
|
|
948
|
-
/**
|
|
949
|
-
* JavaScript script source offset for the range start.
|
|
950
|
-
*/
|
|
951
|
-
startOffset: number;
|
|
925
|
+
interface SetBreakpointParameterType {
|
|
952
926
|
/**
|
|
953
|
-
*
|
|
927
|
+
* Location to set breakpoint in.
|
|
954
928
|
*/
|
|
955
|
-
|
|
929
|
+
location: Location;
|
|
956
930
|
/**
|
|
957
|
-
*
|
|
931
|
+
* Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
|
|
958
932
|
*/
|
|
959
|
-
|
|
933
|
+
condition?: string;
|
|
960
934
|
}
|
|
961
935
|
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
936
|
+
interface RemoveBreakpointParameterType {
|
|
937
|
+
breakpointId: BreakpointId;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
interface GetPossibleBreakpointsParameterType {
|
|
966
941
|
/**
|
|
967
|
-
*
|
|
942
|
+
* Start of range to search possible breakpoint locations in.
|
|
968
943
|
*/
|
|
969
|
-
|
|
944
|
+
start: Location;
|
|
970
945
|
/**
|
|
971
|
-
*
|
|
946
|
+
* End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range.
|
|
972
947
|
*/
|
|
973
|
-
|
|
948
|
+
end?: Location;
|
|
974
949
|
/**
|
|
975
|
-
*
|
|
950
|
+
* Only consider locations which are in the same (non-nested) function as start.
|
|
976
951
|
*/
|
|
977
|
-
|
|
952
|
+
restrictToFunction?: boolean;
|
|
978
953
|
}
|
|
979
954
|
|
|
980
|
-
|
|
981
|
-
* Coverage data for a JavaScript script.
|
|
982
|
-
*/
|
|
983
|
-
interface ScriptCoverage {
|
|
955
|
+
interface ContinueToLocationParameterType {
|
|
984
956
|
/**
|
|
985
|
-
*
|
|
986
|
-
*/
|
|
987
|
-
scriptId: Runtime.ScriptId;
|
|
988
|
-
/**
|
|
989
|
-
* JavaScript script name or url.
|
|
990
|
-
*/
|
|
991
|
-
url: string;
|
|
992
|
-
/**
|
|
993
|
-
* Functions contained in the script that has coverage data.
|
|
957
|
+
* Location to continue to.
|
|
994
958
|
*/
|
|
995
|
-
|
|
959
|
+
location: Location;
|
|
960
|
+
targetCallFrames?: string;
|
|
996
961
|
}
|
|
997
962
|
|
|
998
|
-
|
|
999
|
-
* Describes a type collected during runtime.
|
|
1000
|
-
* @experimental
|
|
1001
|
-
*/
|
|
1002
|
-
interface TypeObject {
|
|
963
|
+
interface PauseOnAsyncCallParameterType {
|
|
1003
964
|
/**
|
|
1004
|
-
*
|
|
965
|
+
* Debugger will pause when async call with given stack trace is started.
|
|
1005
966
|
*/
|
|
1006
|
-
|
|
967
|
+
parentStackTraceId: Runtime.StackTraceId;
|
|
1007
968
|
}
|
|
1008
969
|
|
|
1009
|
-
|
|
1010
|
-
* Source offset and types for a parameter or return value.
|
|
1011
|
-
* @experimental
|
|
1012
|
-
*/
|
|
1013
|
-
interface TypeProfileEntry {
|
|
1014
|
-
/**
|
|
1015
|
-
* Source offset of the parameter or end of function for return values.
|
|
1016
|
-
*/
|
|
1017
|
-
offset: number;
|
|
970
|
+
interface StepIntoParameterType {
|
|
1018
971
|
/**
|
|
1019
|
-
*
|
|
972
|
+
* Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause.
|
|
973
|
+
* @experimental
|
|
1020
974
|
*/
|
|
1021
|
-
|
|
975
|
+
breakOnAsyncCall?: boolean;
|
|
1022
976
|
}
|
|
1023
977
|
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
interface
|
|
978
|
+
interface GetStackTraceParameterType {
|
|
979
|
+
stackTraceId: Runtime.StackTraceId;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
interface SearchInContentParameterType {
|
|
1029
983
|
/**
|
|
1030
|
-
*
|
|
984
|
+
* Id of the script to search in.
|
|
1031
985
|
*/
|
|
1032
986
|
scriptId: Runtime.ScriptId;
|
|
1033
987
|
/**
|
|
1034
|
-
*
|
|
988
|
+
* String to search for.
|
|
1035
989
|
*/
|
|
1036
|
-
|
|
990
|
+
query: string;
|
|
1037
991
|
/**
|
|
1038
|
-
*
|
|
992
|
+
* If true, search is case sensitive.
|
|
1039
993
|
*/
|
|
1040
|
-
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
interface SetSamplingIntervalParameterType {
|
|
994
|
+
caseSensitive?: boolean;
|
|
1044
995
|
/**
|
|
1045
|
-
*
|
|
996
|
+
* If true, treats string parameter as regex.
|
|
1046
997
|
*/
|
|
1047
|
-
|
|
998
|
+
isRegex?: boolean;
|
|
1048
999
|
}
|
|
1049
1000
|
|
|
1050
|
-
interface
|
|
1001
|
+
interface SetScriptSourceParameterType {
|
|
1051
1002
|
/**
|
|
1052
|
-
*
|
|
1003
|
+
* Id of the script to edit.
|
|
1053
1004
|
*/
|
|
1054
|
-
|
|
1005
|
+
scriptId: Runtime.ScriptId;
|
|
1055
1006
|
/**
|
|
1056
|
-
*
|
|
1007
|
+
* New content of the script.
|
|
1057
1008
|
*/
|
|
1058
|
-
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
interface GetBestEffortCoverageReturnType {
|
|
1009
|
+
scriptSource: string;
|
|
1062
1010
|
/**
|
|
1063
|
-
*
|
|
1011
|
+
* If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.
|
|
1064
1012
|
*/
|
|
1065
|
-
|
|
1013
|
+
dryRun?: boolean;
|
|
1066
1014
|
}
|
|
1067
1015
|
|
|
1068
|
-
interface
|
|
1016
|
+
interface RestartFrameParameterType {
|
|
1069
1017
|
/**
|
|
1070
|
-
*
|
|
1018
|
+
* Call frame identifier to evaluate on.
|
|
1071
1019
|
*/
|
|
1072
|
-
|
|
1020
|
+
callFrameId: CallFrameId;
|
|
1073
1021
|
}
|
|
1074
1022
|
|
|
1075
|
-
interface
|
|
1023
|
+
interface GetScriptSourceParameterType {
|
|
1076
1024
|
/**
|
|
1077
|
-
*
|
|
1025
|
+
* Id of the script to get source for.
|
|
1078
1026
|
*/
|
|
1079
|
-
|
|
1027
|
+
scriptId: Runtime.ScriptId;
|
|
1080
1028
|
}
|
|
1081
1029
|
|
|
1082
|
-
interface
|
|
1030
|
+
interface SetPauseOnExceptionsParameterType {
|
|
1083
1031
|
/**
|
|
1084
|
-
*
|
|
1032
|
+
* Pause on exceptions mode.
|
|
1085
1033
|
*/
|
|
1086
|
-
|
|
1034
|
+
state: string;
|
|
1087
1035
|
}
|
|
1088
1036
|
|
|
1089
|
-
interface
|
|
1090
|
-
id: string;
|
|
1091
|
-
/**
|
|
1092
|
-
* Location of console.profileEnd().
|
|
1093
|
-
*/
|
|
1094
|
-
location: Debugger.Location;
|
|
1095
|
-
profile: Profile;
|
|
1037
|
+
interface EvaluateOnCallFrameParameterType {
|
|
1096
1038
|
/**
|
|
1097
|
-
*
|
|
1039
|
+
* Call frame identifier to evaluate on.
|
|
1098
1040
|
*/
|
|
1099
|
-
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
interface ConsoleProfileStartedEventDataType {
|
|
1103
|
-
id: string;
|
|
1041
|
+
callFrameId: CallFrameId;
|
|
1104
1042
|
/**
|
|
1105
|
-
*
|
|
1043
|
+
* Expression to evaluate.
|
|
1106
1044
|
*/
|
|
1107
|
-
|
|
1045
|
+
expression: string;
|
|
1108
1046
|
/**
|
|
1109
|
-
*
|
|
1047
|
+
* String object group name to put result into (allows rapid releasing resulting object handles using <code>releaseObjectGroup</code>).
|
|
1110
1048
|
*/
|
|
1111
|
-
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
namespace Runtime {
|
|
1116
|
-
/**
|
|
1117
|
-
* Unique script identifier.
|
|
1118
|
-
*/
|
|
1119
|
-
type ScriptId = string;
|
|
1120
|
-
|
|
1121
|
-
/**
|
|
1122
|
-
* Unique object identifier.
|
|
1123
|
-
*/
|
|
1124
|
-
type RemoteObjectId = string;
|
|
1125
|
-
|
|
1126
|
-
/**
|
|
1127
|
-
* Primitive value which cannot be JSON-stringified. Includes values `-0`, `NaN`, `Infinity`,
|
|
1128
|
-
* `-Infinity`, and bigint literals.
|
|
1129
|
-
*/
|
|
1130
|
-
type UnserializableValue = string;
|
|
1131
|
-
|
|
1132
|
-
/**
|
|
1133
|
-
* Mirror object referencing original JavaScript object.
|
|
1134
|
-
*/
|
|
1135
|
-
interface RemoteObject {
|
|
1049
|
+
objectGroup?: string;
|
|
1136
1050
|
/**
|
|
1137
|
-
*
|
|
1051
|
+
* Specifies whether command line API should be available to the evaluated expression, defaults to false.
|
|
1138
1052
|
*/
|
|
1139
|
-
|
|
1053
|
+
includeCommandLineAPI?: boolean;
|
|
1140
1054
|
/**
|
|
1141
|
-
*
|
|
1055
|
+
* In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
|
|
1142
1056
|
*/
|
|
1143
|
-
|
|
1057
|
+
silent?: boolean;
|
|
1144
1058
|
/**
|
|
1145
|
-
*
|
|
1059
|
+
* Whether the result is expected to be a JSON object that should be sent by value.
|
|
1146
1060
|
*/
|
|
1147
|
-
|
|
1061
|
+
returnByValue?: boolean;
|
|
1148
1062
|
/**
|
|
1149
|
-
*
|
|
1063
|
+
* Whether preview should be generated for the result.
|
|
1064
|
+
* @experimental
|
|
1150
1065
|
*/
|
|
1151
|
-
|
|
1066
|
+
generatePreview?: boolean;
|
|
1152
1067
|
/**
|
|
1153
|
-
*
|
|
1154
|
-
* property.
|
|
1068
|
+
* Whether to throw an exception if side effect cannot be ruled out during evaluation.
|
|
1155
1069
|
*/
|
|
1156
|
-
|
|
1070
|
+
throwOnSideEffect?: boolean;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
interface SetVariableValueParameterType {
|
|
1157
1074
|
/**
|
|
1158
|
-
*
|
|
1075
|
+
* 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually.
|
|
1159
1076
|
*/
|
|
1160
|
-
|
|
1077
|
+
scopeNumber: number;
|
|
1161
1078
|
/**
|
|
1162
|
-
*
|
|
1079
|
+
* Variable name.
|
|
1163
1080
|
*/
|
|
1164
|
-
|
|
1081
|
+
variableName: string;
|
|
1165
1082
|
/**
|
|
1166
|
-
*
|
|
1167
|
-
* @experimental
|
|
1083
|
+
* New variable value.
|
|
1168
1084
|
*/
|
|
1169
|
-
|
|
1085
|
+
newValue: Runtime.CallArgument;
|
|
1170
1086
|
/**
|
|
1171
|
-
*
|
|
1087
|
+
* Id of callframe that holds variable.
|
|
1172
1088
|
*/
|
|
1173
|
-
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
/**
|
|
1177
|
-
* @experimental
|
|
1178
|
-
*/
|
|
1179
|
-
interface CustomPreview {
|
|
1180
|
-
header: string;
|
|
1181
|
-
hasBody: boolean;
|
|
1182
|
-
formatterObjectId: RemoteObjectId;
|
|
1183
|
-
bindRemoteObjectFunctionId: RemoteObjectId;
|
|
1184
|
-
configObjectId?: RemoteObjectId;
|
|
1089
|
+
callFrameId: CallFrameId;
|
|
1185
1090
|
}
|
|
1186
1091
|
|
|
1187
|
-
|
|
1188
|
-
* Object containing abbreviated remote object value.
|
|
1189
|
-
* @experimental
|
|
1190
|
-
*/
|
|
1191
|
-
interface ObjectPreview {
|
|
1192
|
-
/**
|
|
1193
|
-
* Object type.
|
|
1194
|
-
*/
|
|
1195
|
-
type: string;
|
|
1196
|
-
/**
|
|
1197
|
-
* Object subtype hint. Specified for `object` type values only.
|
|
1198
|
-
*/
|
|
1199
|
-
subtype?: string;
|
|
1092
|
+
interface SetReturnValueParameterType {
|
|
1200
1093
|
/**
|
|
1201
|
-
*
|
|
1094
|
+
* New return value.
|
|
1202
1095
|
*/
|
|
1203
|
-
|
|
1096
|
+
newValue: Runtime.CallArgument;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
interface SetAsyncCallStackDepthParameterType {
|
|
1204
1100
|
/**
|
|
1205
|
-
*
|
|
1101
|
+
* Maximum depth of async call stacks. Setting to <code>0</code> will effectively disable collecting async call stacks (default).
|
|
1206
1102
|
*/
|
|
1207
|
-
|
|
1103
|
+
maxDepth: number;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
interface SetBlackboxPatternsParameterType {
|
|
1208
1107
|
/**
|
|
1209
|
-
*
|
|
1108
|
+
* Array of regexps that will be used to check script url for blackbox state.
|
|
1210
1109
|
*/
|
|
1211
|
-
|
|
1110
|
+
patterns: string[];
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
interface SetBlackboxedRangesParameterType {
|
|
1212
1114
|
/**
|
|
1213
|
-
*
|
|
1115
|
+
* Id of the script.
|
|
1214
1116
|
*/
|
|
1215
|
-
|
|
1117
|
+
scriptId: Runtime.ScriptId;
|
|
1118
|
+
positions: ScriptPosition[];
|
|
1216
1119
|
}
|
|
1217
1120
|
|
|
1218
|
-
|
|
1219
|
-
* @experimental
|
|
1220
|
-
*/
|
|
1221
|
-
interface PropertyPreview {
|
|
1121
|
+
interface EnableReturnType {
|
|
1222
1122
|
/**
|
|
1223
|
-
*
|
|
1123
|
+
* Unique identifier of the debugger.
|
|
1124
|
+
* @experimental
|
|
1224
1125
|
*/
|
|
1225
|
-
|
|
1126
|
+
debuggerId: Runtime.UniqueDebuggerId;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
interface SetBreakpointByUrlReturnType {
|
|
1226
1130
|
/**
|
|
1227
|
-
*
|
|
1131
|
+
* Id of the created breakpoint for further reference.
|
|
1228
1132
|
*/
|
|
1229
|
-
|
|
1133
|
+
breakpointId: BreakpointId;
|
|
1230
1134
|
/**
|
|
1231
|
-
*
|
|
1135
|
+
* List of the locations this breakpoint resolved into upon addition.
|
|
1232
1136
|
*/
|
|
1233
|
-
|
|
1137
|
+
locations: Location[];
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
interface SetBreakpointReturnType {
|
|
1234
1141
|
/**
|
|
1235
|
-
*
|
|
1142
|
+
* Id of the created breakpoint for further reference.
|
|
1236
1143
|
*/
|
|
1237
|
-
|
|
1144
|
+
breakpointId: BreakpointId;
|
|
1238
1145
|
/**
|
|
1239
|
-
*
|
|
1146
|
+
* Location this breakpoint resolved into.
|
|
1240
1147
|
*/
|
|
1241
|
-
|
|
1148
|
+
actualLocation: Location;
|
|
1242
1149
|
}
|
|
1243
1150
|
|
|
1244
|
-
|
|
1245
|
-
* @experimental
|
|
1246
|
-
*/
|
|
1247
|
-
interface EntryPreview {
|
|
1248
|
-
/**
|
|
1249
|
-
* Preview of the key. Specified for map-like collection entries.
|
|
1250
|
-
*/
|
|
1251
|
-
key?: ObjectPreview;
|
|
1151
|
+
interface GetPossibleBreakpointsReturnType {
|
|
1252
1152
|
/**
|
|
1253
|
-
*
|
|
1153
|
+
* List of the possible breakpoint locations.
|
|
1254
1154
|
*/
|
|
1255
|
-
|
|
1155
|
+
locations: BreakLocation[];
|
|
1256
1156
|
}
|
|
1257
1157
|
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1158
|
+
interface GetStackTraceReturnType {
|
|
1159
|
+
stackTrace: Runtime.StackTrace;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
interface SearchInContentReturnType {
|
|
1262
1163
|
/**
|
|
1263
|
-
*
|
|
1164
|
+
* List of search matches.
|
|
1264
1165
|
*/
|
|
1265
|
-
|
|
1166
|
+
result: SearchMatch[];
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
interface SetScriptSourceReturnType {
|
|
1266
1170
|
/**
|
|
1267
|
-
*
|
|
1171
|
+
* New stack trace in case editing has happened while VM was stopped.
|
|
1268
1172
|
*/
|
|
1269
|
-
|
|
1173
|
+
callFrames?: CallFrame[];
|
|
1270
1174
|
/**
|
|
1271
|
-
*
|
|
1175
|
+
* Whether current call stack was modified after applying the changes.
|
|
1272
1176
|
*/
|
|
1273
|
-
|
|
1177
|
+
stackChanged?: boolean;
|
|
1274
1178
|
/**
|
|
1275
|
-
*
|
|
1276
|
-
* (accessor descriptors only).
|
|
1179
|
+
* Async stack trace, if any.
|
|
1277
1180
|
*/
|
|
1278
|
-
|
|
1181
|
+
asyncStackTrace?: Runtime.StackTrace;
|
|
1279
1182
|
/**
|
|
1280
|
-
*
|
|
1281
|
-
*
|
|
1183
|
+
* Async stack trace, if any.
|
|
1184
|
+
* @experimental
|
|
1282
1185
|
*/
|
|
1283
|
-
|
|
1186
|
+
asyncStackTraceId?: Runtime.StackTraceId;
|
|
1284
1187
|
/**
|
|
1285
|
-
*
|
|
1286
|
-
* deleted from the corresponding object.
|
|
1188
|
+
* Exception details if any.
|
|
1287
1189
|
*/
|
|
1288
|
-
|
|
1190
|
+
exceptionDetails?: Runtime.ExceptionDetails;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
interface RestartFrameReturnType {
|
|
1289
1194
|
/**
|
|
1290
|
-
*
|
|
1291
|
-
* object.
|
|
1195
|
+
* New stack trace.
|
|
1292
1196
|
*/
|
|
1293
|
-
|
|
1197
|
+
callFrames: CallFrame[];
|
|
1294
1198
|
/**
|
|
1295
|
-
*
|
|
1199
|
+
* Async stack trace, if any.
|
|
1296
1200
|
*/
|
|
1297
|
-
|
|
1201
|
+
asyncStackTrace?: Runtime.StackTrace;
|
|
1298
1202
|
/**
|
|
1299
|
-
*
|
|
1203
|
+
* Async stack trace, if any.
|
|
1204
|
+
* @experimental
|
|
1300
1205
|
*/
|
|
1301
|
-
|
|
1206
|
+
asyncStackTraceId?: Runtime.StackTraceId;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
interface GetScriptSourceReturnType {
|
|
1302
1210
|
/**
|
|
1303
|
-
*
|
|
1211
|
+
* Script source.
|
|
1304
1212
|
*/
|
|
1305
|
-
|
|
1213
|
+
scriptSource: string;
|
|
1306
1214
|
}
|
|
1307
1215
|
|
|
1308
|
-
|
|
1309
|
-
* Object internal property descriptor. This property isn't normally visible in JavaScript code.
|
|
1310
|
-
*/
|
|
1311
|
-
interface InternalPropertyDescriptor {
|
|
1216
|
+
interface EvaluateOnCallFrameReturnType {
|
|
1312
1217
|
/**
|
|
1313
|
-
*
|
|
1218
|
+
* Object wrapper for the evaluation result.
|
|
1314
1219
|
*/
|
|
1315
|
-
|
|
1220
|
+
result: Runtime.RemoteObject;
|
|
1316
1221
|
/**
|
|
1317
|
-
*
|
|
1222
|
+
* Exception details.
|
|
1318
1223
|
*/
|
|
1319
|
-
|
|
1224
|
+
exceptionDetails?: Runtime.ExceptionDetails;
|
|
1320
1225
|
}
|
|
1321
1226
|
|
|
1322
|
-
|
|
1323
|
-
* Represents function call argument. Either remote object id `objectId`, primitive `value`,
|
|
1324
|
-
* unserializable primitive value or neither of (for undefined) them should be specified.
|
|
1325
|
-
*/
|
|
1326
|
-
interface CallArgument {
|
|
1227
|
+
interface ScriptParsedEventDataType {
|
|
1327
1228
|
/**
|
|
1328
|
-
*
|
|
1229
|
+
* Identifier of the script parsed.
|
|
1329
1230
|
*/
|
|
1330
|
-
|
|
1231
|
+
scriptId: Runtime.ScriptId;
|
|
1331
1232
|
/**
|
|
1332
|
-
*
|
|
1233
|
+
* URL or name of the script parsed (if any).
|
|
1333
1234
|
*/
|
|
1334
|
-
|
|
1235
|
+
url: string;
|
|
1335
1236
|
/**
|
|
1336
|
-
*
|
|
1237
|
+
* Line offset of the script within the resource with given URL (for script tags).
|
|
1337
1238
|
*/
|
|
1338
|
-
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
/**
|
|
1342
|
-
* Id of an execution context.
|
|
1343
|
-
*/
|
|
1344
|
-
type ExecutionContextId = number;
|
|
1345
|
-
|
|
1346
|
-
/**
|
|
1347
|
-
* Description of an isolated world.
|
|
1348
|
-
*/
|
|
1349
|
-
interface ExecutionContextDescription {
|
|
1239
|
+
startLine: number;
|
|
1350
1240
|
/**
|
|
1351
|
-
*
|
|
1352
|
-
* script evaluation should be performed.
|
|
1241
|
+
* Column offset of the script within the resource with given URL.
|
|
1353
1242
|
*/
|
|
1354
|
-
|
|
1243
|
+
startColumn: number;
|
|
1355
1244
|
/**
|
|
1356
|
-
*
|
|
1245
|
+
* Last line of the script.
|
|
1357
1246
|
*/
|
|
1358
|
-
|
|
1247
|
+
endLine: number;
|
|
1359
1248
|
/**
|
|
1360
|
-
*
|
|
1249
|
+
* Length of the last line of the script.
|
|
1361
1250
|
*/
|
|
1362
|
-
|
|
1251
|
+
endColumn: number;
|
|
1252
|
+
/**
|
|
1253
|
+
* Specifies script creation context.
|
|
1254
|
+
*/
|
|
1255
|
+
executionContextId: Runtime.ExecutionContextId;
|
|
1256
|
+
/**
|
|
1257
|
+
* Content hash of the script.
|
|
1258
|
+
*/
|
|
1259
|
+
hash: string;
|
|
1363
1260
|
/**
|
|
1364
1261
|
* Embedder-specific auxiliary data.
|
|
1365
1262
|
*/
|
|
1366
|
-
|
|
1367
|
-
}
|
|
1368
|
-
|
|
1369
|
-
/**
|
|
1370
|
-
* Detailed information about exception (or error) that was thrown during script compilation or
|
|
1371
|
-
* execution.
|
|
1372
|
-
*/
|
|
1373
|
-
interface ExceptionDetails {
|
|
1263
|
+
executionContextAuxData?: {};
|
|
1374
1264
|
/**
|
|
1375
|
-
*
|
|
1265
|
+
* True, if this script is generated as a result of the live edit operation.
|
|
1266
|
+
* @experimental
|
|
1376
1267
|
*/
|
|
1377
|
-
|
|
1268
|
+
isLiveEdit?: boolean;
|
|
1378
1269
|
/**
|
|
1379
|
-
*
|
|
1270
|
+
* URL of source map associated with script (if any).
|
|
1380
1271
|
*/
|
|
1381
|
-
|
|
1272
|
+
sourceMapURL?: string;
|
|
1382
1273
|
/**
|
|
1383
|
-
*
|
|
1274
|
+
* True, if this script has sourceURL.
|
|
1384
1275
|
*/
|
|
1385
|
-
|
|
1276
|
+
hasSourceURL?: boolean;
|
|
1386
1277
|
/**
|
|
1387
|
-
*
|
|
1278
|
+
* True, if this script is ES6 module.
|
|
1388
1279
|
*/
|
|
1389
|
-
|
|
1280
|
+
isModule?: boolean;
|
|
1390
1281
|
/**
|
|
1391
|
-
*
|
|
1282
|
+
* This script length.
|
|
1392
1283
|
*/
|
|
1393
|
-
|
|
1284
|
+
length?: number;
|
|
1394
1285
|
/**
|
|
1395
|
-
*
|
|
1286
|
+
* JavaScript top stack frame of where the script parsed event was triggered if available.
|
|
1287
|
+
* @experimental
|
|
1396
1288
|
*/
|
|
1397
|
-
|
|
1289
|
+
stackTrace?: Runtime.StackTrace;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
interface ScriptFailedToParseEventDataType {
|
|
1398
1293
|
/**
|
|
1399
|
-
*
|
|
1294
|
+
* Identifier of the script parsed.
|
|
1400
1295
|
*/
|
|
1401
|
-
|
|
1296
|
+
scriptId: Runtime.ScriptId;
|
|
1402
1297
|
/**
|
|
1403
|
-
*
|
|
1298
|
+
* URL or name of the script parsed (if any).
|
|
1404
1299
|
*/
|
|
1405
|
-
|
|
1300
|
+
url: string;
|
|
1406
1301
|
/**
|
|
1407
|
-
*
|
|
1302
|
+
* Line offset of the script within the resource with given URL (for script tags).
|
|
1408
1303
|
*/
|
|
1409
|
-
|
|
1410
|
-
}
|
|
1411
|
-
|
|
1412
|
-
/**
|
|
1413
|
-
* Number of milliseconds since epoch.
|
|
1414
|
-
*/
|
|
1415
|
-
type Timestamp = number;
|
|
1416
|
-
|
|
1417
|
-
/**
|
|
1418
|
-
* Number of milliseconds.
|
|
1419
|
-
*/
|
|
1420
|
-
type TimeDelta = number;
|
|
1421
|
-
|
|
1422
|
-
/**
|
|
1423
|
-
* Stack entry for runtime errors and assertions.
|
|
1424
|
-
*/
|
|
1425
|
-
interface CallFrame {
|
|
1304
|
+
startLine: number;
|
|
1426
1305
|
/**
|
|
1427
|
-
*
|
|
1306
|
+
* Column offset of the script within the resource with given URL.
|
|
1428
1307
|
*/
|
|
1429
|
-
|
|
1308
|
+
startColumn: number;
|
|
1430
1309
|
/**
|
|
1431
|
-
*
|
|
1310
|
+
* Last line of the script.
|
|
1432
1311
|
*/
|
|
1433
|
-
|
|
1312
|
+
endLine: number;
|
|
1434
1313
|
/**
|
|
1435
|
-
*
|
|
1314
|
+
* Length of the last line of the script.
|
|
1436
1315
|
*/
|
|
1437
|
-
|
|
1316
|
+
endColumn: number;
|
|
1438
1317
|
/**
|
|
1439
|
-
*
|
|
1318
|
+
* Specifies script creation context.
|
|
1440
1319
|
*/
|
|
1441
|
-
|
|
1320
|
+
executionContextId: Runtime.ExecutionContextId;
|
|
1442
1321
|
/**
|
|
1443
|
-
*
|
|
1322
|
+
* Content hash of the script.
|
|
1444
1323
|
*/
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1324
|
+
hash: string;
|
|
1325
|
+
/**
|
|
1326
|
+
* Embedder-specific auxiliary data.
|
|
1327
|
+
*/
|
|
1328
|
+
executionContextAuxData?: {};
|
|
1329
|
+
/**
|
|
1330
|
+
* URL of source map associated with script (if any).
|
|
1331
|
+
*/
|
|
1332
|
+
sourceMapURL?: string;
|
|
1452
1333
|
/**
|
|
1453
|
-
*
|
|
1454
|
-
* initiated the async call.
|
|
1334
|
+
* True, if this script has sourceURL.
|
|
1455
1335
|
*/
|
|
1456
|
-
|
|
1336
|
+
hasSourceURL?: boolean;
|
|
1457
1337
|
/**
|
|
1458
|
-
*
|
|
1338
|
+
* True, if this script is ES6 module.
|
|
1459
1339
|
*/
|
|
1460
|
-
|
|
1340
|
+
isModule?: boolean;
|
|
1461
1341
|
/**
|
|
1462
|
-
*
|
|
1342
|
+
* This script length.
|
|
1463
1343
|
*/
|
|
1464
|
-
|
|
1344
|
+
length?: number;
|
|
1465
1345
|
/**
|
|
1466
|
-
*
|
|
1346
|
+
* JavaScript top stack frame of where the script parsed event was triggered if available.
|
|
1467
1347
|
* @experimental
|
|
1468
1348
|
*/
|
|
1469
|
-
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
/**
|
|
1473
|
-
* Unique identifier of current debugger.
|
|
1474
|
-
* @experimental
|
|
1475
|
-
*/
|
|
1476
|
-
type UniqueDebuggerId = string;
|
|
1477
|
-
|
|
1478
|
-
/**
|
|
1479
|
-
* If `debuggerId` is set stack trace comes from another debugger and can be resolved there. This
|
|
1480
|
-
* allows to track cross-debugger calls. See `Runtime.StackTrace` and `Debugger.paused` for usages.
|
|
1481
|
-
* @experimental
|
|
1482
|
-
*/
|
|
1483
|
-
interface StackTraceId {
|
|
1484
|
-
id: string;
|
|
1485
|
-
debuggerId?: UniqueDebuggerId;
|
|
1349
|
+
stackTrace?: Runtime.StackTrace;
|
|
1486
1350
|
}
|
|
1487
1351
|
|
|
1488
|
-
interface
|
|
1489
|
-
/**
|
|
1490
|
-
* Identifier of the promise.
|
|
1491
|
-
*/
|
|
1492
|
-
promiseObjectId: RemoteObjectId;
|
|
1352
|
+
interface BreakpointResolvedEventDataType {
|
|
1493
1353
|
/**
|
|
1494
|
-
*
|
|
1354
|
+
* Breakpoint unique identifier.
|
|
1495
1355
|
*/
|
|
1496
|
-
|
|
1356
|
+
breakpointId: BreakpointId;
|
|
1497
1357
|
/**
|
|
1498
|
-
*
|
|
1358
|
+
* Actual breakpoint location.
|
|
1499
1359
|
*/
|
|
1500
|
-
|
|
1360
|
+
location: Location;
|
|
1501
1361
|
}
|
|
1502
1362
|
|
|
1503
|
-
interface
|
|
1363
|
+
interface PausedEventDataType {
|
|
1504
1364
|
/**
|
|
1505
|
-
*
|
|
1365
|
+
* Call stack the virtual machine stopped on.
|
|
1506
1366
|
*/
|
|
1507
|
-
|
|
1367
|
+
callFrames: CallFrame[];
|
|
1508
1368
|
/**
|
|
1509
|
-
*
|
|
1510
|
-
* be specified.
|
|
1369
|
+
* Pause reason.
|
|
1511
1370
|
*/
|
|
1512
|
-
|
|
1371
|
+
reason: string;
|
|
1513
1372
|
/**
|
|
1514
|
-
*
|
|
1515
|
-
* object.
|
|
1373
|
+
* Object containing break-specific auxiliary properties.
|
|
1516
1374
|
*/
|
|
1517
|
-
|
|
1375
|
+
data?: {};
|
|
1518
1376
|
/**
|
|
1519
|
-
*
|
|
1520
|
-
* execution. Overrides `setPauseOnException` state.
|
|
1377
|
+
* Hit breakpoints IDs
|
|
1521
1378
|
*/
|
|
1522
|
-
|
|
1379
|
+
hitBreakpoints?: string[];
|
|
1523
1380
|
/**
|
|
1524
|
-
*
|
|
1381
|
+
* Async stack trace, if any.
|
|
1525
1382
|
*/
|
|
1526
|
-
|
|
1383
|
+
asyncStackTrace?: Runtime.StackTrace;
|
|
1527
1384
|
/**
|
|
1528
|
-
*
|
|
1385
|
+
* Async stack trace, if any.
|
|
1529
1386
|
* @experimental
|
|
1530
1387
|
*/
|
|
1531
|
-
|
|
1388
|
+
asyncStackTraceId?: Runtime.StackTraceId;
|
|
1532
1389
|
/**
|
|
1533
|
-
*
|
|
1390
|
+
* Just scheduled async call will have this stack trace as parent stack during async execution. This field is available only after <code>Debugger.stepInto</code> call with <code>breakOnAsynCall</code> flag.
|
|
1391
|
+
* @experimental
|
|
1534
1392
|
*/
|
|
1535
|
-
|
|
1393
|
+
asyncCallStackTraceId?: Runtime.StackTraceId;
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
namespace Console {
|
|
1398
|
+
/**
|
|
1399
|
+
* Console message.
|
|
1400
|
+
*/
|
|
1401
|
+
interface ConsoleMessage {
|
|
1536
1402
|
/**
|
|
1537
|
-
*
|
|
1538
|
-
* resolved.
|
|
1403
|
+
* Message source.
|
|
1539
1404
|
*/
|
|
1540
|
-
|
|
1405
|
+
source: string;
|
|
1541
1406
|
/**
|
|
1542
|
-
*
|
|
1543
|
-
* executionContextId or objectId should be specified.
|
|
1407
|
+
* Message severity.
|
|
1544
1408
|
*/
|
|
1545
|
-
|
|
1409
|
+
level: string;
|
|
1546
1410
|
/**
|
|
1547
|
-
*
|
|
1548
|
-
* specified and objectId is, objectGroup will be inherited from object.
|
|
1411
|
+
* Message text.
|
|
1549
1412
|
*/
|
|
1550
|
-
|
|
1551
|
-
}
|
|
1552
|
-
|
|
1553
|
-
interface CompileScriptParameterType {
|
|
1413
|
+
text: string;
|
|
1554
1414
|
/**
|
|
1555
|
-
*
|
|
1415
|
+
* URL of the message origin.
|
|
1556
1416
|
*/
|
|
1557
|
-
|
|
1417
|
+
url?: string;
|
|
1558
1418
|
/**
|
|
1559
|
-
*
|
|
1419
|
+
* Line number in the resource that generated this message (1-based).
|
|
1560
1420
|
*/
|
|
1561
|
-
|
|
1421
|
+
line?: number;
|
|
1562
1422
|
/**
|
|
1563
|
-
*
|
|
1423
|
+
* Column number in the resource that generated this message (1-based).
|
|
1564
1424
|
*/
|
|
1565
|
-
|
|
1425
|
+
column?: number;
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
interface MessageAddedEventDataType {
|
|
1566
1429
|
/**
|
|
1567
|
-
*
|
|
1568
|
-
* evaluation will be performed in the context of the inspected page.
|
|
1430
|
+
* Console message that has been added.
|
|
1569
1431
|
*/
|
|
1570
|
-
|
|
1432
|
+
message: ConsoleMessage;
|
|
1571
1433
|
}
|
|
1434
|
+
}
|
|
1572
1435
|
|
|
1573
|
-
|
|
1436
|
+
namespace Profiler {
|
|
1437
|
+
/**
|
|
1438
|
+
* Profile node. Holds callsite information, execution statistics and child nodes.
|
|
1439
|
+
*/
|
|
1440
|
+
interface ProfileNode {
|
|
1574
1441
|
/**
|
|
1575
|
-
*
|
|
1442
|
+
* Unique id of the node.
|
|
1576
1443
|
*/
|
|
1577
|
-
|
|
1444
|
+
id: number;
|
|
1578
1445
|
/**
|
|
1579
|
-
*
|
|
1446
|
+
* Function location.
|
|
1580
1447
|
*/
|
|
1581
|
-
|
|
1448
|
+
callFrame: Runtime.CallFrame;
|
|
1582
1449
|
/**
|
|
1583
|
-
*
|
|
1450
|
+
* Number of samples where this node was on top of the call stack.
|
|
1584
1451
|
*/
|
|
1585
|
-
|
|
1452
|
+
hitCount?: number;
|
|
1586
1453
|
/**
|
|
1587
|
-
*
|
|
1588
|
-
* execution. Overrides `setPauseOnException` state.
|
|
1454
|
+
* Child node ids.
|
|
1589
1455
|
*/
|
|
1590
|
-
|
|
1456
|
+
children?: number[];
|
|
1591
1457
|
/**
|
|
1592
|
-
*
|
|
1593
|
-
* evaluation will be performed in the context of the inspected page.
|
|
1458
|
+
* The reason of being not optimized. The function may be deoptimized or marked as don't optimize.
|
|
1594
1459
|
*/
|
|
1595
|
-
|
|
1460
|
+
deoptReason?: string;
|
|
1596
1461
|
/**
|
|
1597
|
-
*
|
|
1462
|
+
* An array of source position ticks.
|
|
1598
1463
|
*/
|
|
1599
|
-
|
|
1464
|
+
positionTicks?: PositionTickInfo[];
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* Profile.
|
|
1469
|
+
*/
|
|
1470
|
+
interface Profile {
|
|
1600
1471
|
/**
|
|
1601
|
-
*
|
|
1602
|
-
* @experimental
|
|
1472
|
+
* The list of profile nodes. First item is the root node.
|
|
1603
1473
|
*/
|
|
1604
|
-
|
|
1474
|
+
nodes: ProfileNode[];
|
|
1605
1475
|
/**
|
|
1606
|
-
*
|
|
1476
|
+
* Profiling start timestamp in microseconds.
|
|
1607
1477
|
*/
|
|
1608
|
-
|
|
1478
|
+
startTime: number;
|
|
1609
1479
|
/**
|
|
1610
|
-
*
|
|
1611
|
-
* resolved.
|
|
1480
|
+
* Profiling end timestamp in microseconds.
|
|
1612
1481
|
*/
|
|
1613
|
-
|
|
1482
|
+
endTime: number;
|
|
1614
1483
|
/**
|
|
1615
|
-
*
|
|
1616
|
-
* @experimental
|
|
1484
|
+
* Ids of samples top nodes.
|
|
1617
1485
|
*/
|
|
1618
|
-
|
|
1486
|
+
samples?: number[];
|
|
1619
1487
|
/**
|
|
1620
|
-
*
|
|
1621
|
-
* @experimental
|
|
1488
|
+
* Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime.
|
|
1622
1489
|
*/
|
|
1623
|
-
|
|
1490
|
+
timeDeltas?: number[];
|
|
1624
1491
|
}
|
|
1625
1492
|
|
|
1626
|
-
|
|
1493
|
+
/**
|
|
1494
|
+
* Specifies a number of samples attributed to a certain source position.
|
|
1495
|
+
*/
|
|
1496
|
+
interface PositionTickInfo {
|
|
1627
1497
|
/**
|
|
1628
|
-
*
|
|
1498
|
+
* Source line number (1-based).
|
|
1629
1499
|
*/
|
|
1630
|
-
|
|
1500
|
+
line: number;
|
|
1631
1501
|
/**
|
|
1632
|
-
*
|
|
1633
|
-
* chain.
|
|
1502
|
+
* Number of samples attributed to the source line.
|
|
1634
1503
|
*/
|
|
1635
|
-
|
|
1504
|
+
ticks: number;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
/**
|
|
1508
|
+
* Coverage data for a source range.
|
|
1509
|
+
*/
|
|
1510
|
+
interface CoverageRange {
|
|
1636
1511
|
/**
|
|
1637
|
-
*
|
|
1638
|
-
* returned either.
|
|
1639
|
-
* @experimental
|
|
1512
|
+
* JavaScript script source offset for the range start.
|
|
1640
1513
|
*/
|
|
1641
|
-
|
|
1514
|
+
startOffset: number;
|
|
1642
1515
|
/**
|
|
1643
|
-
*
|
|
1644
|
-
* @experimental
|
|
1516
|
+
* JavaScript script source offset for the range end.
|
|
1645
1517
|
*/
|
|
1646
|
-
|
|
1647
|
-
}
|
|
1648
|
-
|
|
1649
|
-
interface GlobalLexicalScopeNamesParameterType {
|
|
1518
|
+
endOffset: number;
|
|
1650
1519
|
/**
|
|
1651
|
-
*
|
|
1520
|
+
* Collected execution count of the source range.
|
|
1652
1521
|
*/
|
|
1653
|
-
|
|
1522
|
+
count: number;
|
|
1654
1523
|
}
|
|
1655
1524
|
|
|
1656
|
-
|
|
1525
|
+
/**
|
|
1526
|
+
* Coverage data for a JavaScript function.
|
|
1527
|
+
*/
|
|
1528
|
+
interface FunctionCoverage {
|
|
1657
1529
|
/**
|
|
1658
|
-
*
|
|
1530
|
+
* JavaScript function name.
|
|
1659
1531
|
*/
|
|
1660
|
-
|
|
1532
|
+
functionName: string;
|
|
1661
1533
|
/**
|
|
1662
|
-
*
|
|
1534
|
+
* Source ranges inside the function with coverage data.
|
|
1663
1535
|
*/
|
|
1664
|
-
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
|
-
interface ReleaseObjectParameterType {
|
|
1536
|
+
ranges: CoverageRange[];
|
|
1668
1537
|
/**
|
|
1669
|
-
*
|
|
1538
|
+
* Whether coverage data for this function has block granularity.
|
|
1670
1539
|
*/
|
|
1671
|
-
|
|
1540
|
+
isBlockCoverage: boolean;
|
|
1672
1541
|
}
|
|
1673
1542
|
|
|
1674
|
-
|
|
1543
|
+
/**
|
|
1544
|
+
* Coverage data for a JavaScript script.
|
|
1545
|
+
*/
|
|
1546
|
+
interface ScriptCoverage {
|
|
1675
1547
|
/**
|
|
1676
|
-
*
|
|
1548
|
+
* JavaScript script id.
|
|
1677
1549
|
*/
|
|
1678
|
-
|
|
1679
|
-
}
|
|
1680
|
-
|
|
1681
|
-
interface RunScriptParameterType {
|
|
1550
|
+
scriptId: Runtime.ScriptId;
|
|
1682
1551
|
/**
|
|
1683
|
-
*
|
|
1552
|
+
* JavaScript script name or url.
|
|
1684
1553
|
*/
|
|
1685
|
-
|
|
1554
|
+
url: string;
|
|
1686
1555
|
/**
|
|
1687
|
-
*
|
|
1688
|
-
* evaluation will be performed in the context of the inspected page.
|
|
1556
|
+
* Functions contained in the script that has coverage data.
|
|
1689
1557
|
*/
|
|
1690
|
-
|
|
1558
|
+
functions: FunctionCoverage[];
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* Describes a type collected during runtime.
|
|
1563
|
+
* @experimental
|
|
1564
|
+
*/
|
|
1565
|
+
interface TypeObject {
|
|
1691
1566
|
/**
|
|
1692
|
-
*
|
|
1567
|
+
* Name of a type collected with type profiling.
|
|
1693
1568
|
*/
|
|
1694
|
-
|
|
1569
|
+
name: string;
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
/**
|
|
1573
|
+
* Source offset and types for a parameter or return value.
|
|
1574
|
+
* @experimental
|
|
1575
|
+
*/
|
|
1576
|
+
interface TypeProfileEntry {
|
|
1695
1577
|
/**
|
|
1696
|
-
*
|
|
1697
|
-
* execution. Overrides `setPauseOnException` state.
|
|
1578
|
+
* Source offset of the parameter or end of function for return values.
|
|
1698
1579
|
*/
|
|
1699
|
-
|
|
1580
|
+
offset: number;
|
|
1700
1581
|
/**
|
|
1701
|
-
*
|
|
1582
|
+
* The types for this parameter or return value.
|
|
1702
1583
|
*/
|
|
1703
|
-
|
|
1584
|
+
types: TypeObject[];
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
/**
|
|
1588
|
+
* Type profile data collected during runtime for a JavaScript script.
|
|
1589
|
+
* @experimental
|
|
1590
|
+
*/
|
|
1591
|
+
interface ScriptTypeProfile {
|
|
1704
1592
|
/**
|
|
1705
|
-
*
|
|
1593
|
+
* JavaScript script id.
|
|
1706
1594
|
*/
|
|
1707
|
-
|
|
1595
|
+
scriptId: Runtime.ScriptId;
|
|
1708
1596
|
/**
|
|
1709
|
-
*
|
|
1597
|
+
* JavaScript script name or url.
|
|
1710
1598
|
*/
|
|
1711
|
-
|
|
1599
|
+
url: string;
|
|
1712
1600
|
/**
|
|
1713
|
-
*
|
|
1714
|
-
* resolved.
|
|
1601
|
+
* Type profile entries for parameters and return values of the functions in the script.
|
|
1715
1602
|
*/
|
|
1716
|
-
|
|
1603
|
+
entries: TypeProfileEntry[];
|
|
1717
1604
|
}
|
|
1718
1605
|
|
|
1719
|
-
interface
|
|
1606
|
+
interface SetSamplingIntervalParameterType {
|
|
1720
1607
|
/**
|
|
1721
|
-
*
|
|
1722
|
-
* call stacks (default).
|
|
1608
|
+
* New sampling interval in microseconds.
|
|
1723
1609
|
*/
|
|
1724
|
-
|
|
1725
|
-
}
|
|
1726
|
-
|
|
1727
|
-
interface SetCustomObjectFormatterEnabledParameterType {
|
|
1728
|
-
enabled: boolean;
|
|
1729
|
-
}
|
|
1730
|
-
|
|
1731
|
-
interface SetMaxCallStackSizeToCaptureParameterType {
|
|
1732
|
-
size: number;
|
|
1733
|
-
}
|
|
1734
|
-
|
|
1735
|
-
interface AddBindingParameterType {
|
|
1736
|
-
name: string;
|
|
1737
|
-
executionContextId?: ExecutionContextId;
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1740
|
-
interface RemoveBindingParameterType {
|
|
1741
|
-
name: string;
|
|
1610
|
+
interval: number;
|
|
1742
1611
|
}
|
|
1743
1612
|
|
|
1744
|
-
interface
|
|
1613
|
+
interface StartPreciseCoverageParameterType {
|
|
1745
1614
|
/**
|
|
1746
|
-
*
|
|
1615
|
+
* Collect accurate call counts beyond simple 'covered' or 'not covered'.
|
|
1747
1616
|
*/
|
|
1748
|
-
|
|
1617
|
+
callCount?: boolean;
|
|
1749
1618
|
/**
|
|
1750
|
-
*
|
|
1619
|
+
* Collect block-based coverage.
|
|
1751
1620
|
*/
|
|
1752
|
-
|
|
1621
|
+
detailed?: boolean;
|
|
1753
1622
|
}
|
|
1754
1623
|
|
|
1755
|
-
interface
|
|
1624
|
+
interface StopReturnType {
|
|
1756
1625
|
/**
|
|
1757
|
-
*
|
|
1626
|
+
* Recorded profile.
|
|
1758
1627
|
*/
|
|
1759
|
-
|
|
1628
|
+
profile: Profile;
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
interface TakePreciseCoverageReturnType {
|
|
1760
1632
|
/**
|
|
1761
|
-
*
|
|
1633
|
+
* Coverage data for the current isolate.
|
|
1762
1634
|
*/
|
|
1763
|
-
|
|
1635
|
+
result: ScriptCoverage[];
|
|
1764
1636
|
}
|
|
1765
1637
|
|
|
1766
|
-
interface
|
|
1638
|
+
interface GetBestEffortCoverageReturnType {
|
|
1767
1639
|
/**
|
|
1768
|
-
*
|
|
1640
|
+
* Coverage data for the current isolate.
|
|
1769
1641
|
*/
|
|
1770
|
-
|
|
1642
|
+
result: ScriptCoverage[];
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
interface TakeTypeProfileReturnType {
|
|
1771
1646
|
/**
|
|
1772
|
-
*
|
|
1647
|
+
* Type profile for all scripts since startTypeProfile() was turned on.
|
|
1773
1648
|
*/
|
|
1774
|
-
|
|
1649
|
+
result: ScriptTypeProfile[];
|
|
1775
1650
|
}
|
|
1776
1651
|
|
|
1777
|
-
interface
|
|
1652
|
+
interface ConsoleProfileStartedEventDataType {
|
|
1653
|
+
id: string;
|
|
1778
1654
|
/**
|
|
1779
|
-
*
|
|
1655
|
+
* Location of console.profile().
|
|
1780
1656
|
*/
|
|
1781
|
-
|
|
1657
|
+
location: Debugger.Location;
|
|
1782
1658
|
/**
|
|
1783
|
-
*
|
|
1659
|
+
* Profile title passed as an argument to console.profile().
|
|
1784
1660
|
*/
|
|
1785
|
-
|
|
1661
|
+
title?: string;
|
|
1786
1662
|
}
|
|
1787
1663
|
|
|
1788
|
-
interface
|
|
1789
|
-
/**
|
|
1790
|
-
* The isolate id.
|
|
1791
|
-
*/
|
|
1664
|
+
interface ConsoleProfileFinishedEventDataType {
|
|
1792
1665
|
id: string;
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
|
-
interface GetHeapUsageReturnType {
|
|
1796
1666
|
/**
|
|
1797
|
-
*
|
|
1667
|
+
* Location of console.profileEnd().
|
|
1798
1668
|
*/
|
|
1799
|
-
|
|
1669
|
+
location: Debugger.Location;
|
|
1670
|
+
profile: Profile;
|
|
1800
1671
|
/**
|
|
1801
|
-
*
|
|
1672
|
+
* Profile title passed as an argument to console.profile().
|
|
1802
1673
|
*/
|
|
1803
|
-
|
|
1674
|
+
title?: string;
|
|
1804
1675
|
}
|
|
1676
|
+
}
|
|
1805
1677
|
|
|
1806
|
-
|
|
1678
|
+
namespace HeapProfiler {
|
|
1679
|
+
/**
|
|
1680
|
+
* Heap snapshot object id.
|
|
1681
|
+
*/
|
|
1682
|
+
type HeapSnapshotObjectId = string;
|
|
1683
|
+
|
|
1684
|
+
/**
|
|
1685
|
+
* Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
|
|
1686
|
+
*/
|
|
1687
|
+
interface SamplingHeapProfileNode {
|
|
1807
1688
|
/**
|
|
1808
|
-
*
|
|
1689
|
+
* Function location.
|
|
1809
1690
|
*/
|
|
1810
|
-
|
|
1691
|
+
callFrame: Runtime.CallFrame;
|
|
1811
1692
|
/**
|
|
1812
|
-
*
|
|
1693
|
+
* Allocations size in bytes for the node excluding children.
|
|
1813
1694
|
*/
|
|
1814
|
-
|
|
1695
|
+
selfSize: number;
|
|
1815
1696
|
/**
|
|
1816
|
-
*
|
|
1697
|
+
* Child nodes.
|
|
1817
1698
|
*/
|
|
1818
|
-
|
|
1699
|
+
children: SamplingHeapProfileNode[];
|
|
1819
1700
|
}
|
|
1820
1701
|
|
|
1821
|
-
|
|
1822
|
-
|
|
1702
|
+
/**
|
|
1703
|
+
* Profile.
|
|
1704
|
+
*/
|
|
1705
|
+
interface SamplingHeapProfile {
|
|
1706
|
+
head: SamplingHeapProfileNode;
|
|
1823
1707
|
}
|
|
1824
1708
|
|
|
1825
|
-
interface
|
|
1826
|
-
|
|
1827
|
-
* Array with objects.
|
|
1828
|
-
*/
|
|
1829
|
-
objects: RemoteObject;
|
|
1709
|
+
interface StartTrackingHeapObjectsParameterType {
|
|
1710
|
+
trackAllocations?: boolean;
|
|
1830
1711
|
}
|
|
1831
1712
|
|
|
1832
|
-
interface
|
|
1833
|
-
/**
|
|
1834
|
-
* Run result.
|
|
1835
|
-
*/
|
|
1836
|
-
result: RemoteObject;
|
|
1713
|
+
interface StopTrackingHeapObjectsParameterType {
|
|
1837
1714
|
/**
|
|
1838
|
-
*
|
|
1715
|
+
* If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped.
|
|
1839
1716
|
*/
|
|
1840
|
-
|
|
1717
|
+
reportProgress?: boolean;
|
|
1841
1718
|
}
|
|
1842
1719
|
|
|
1843
|
-
interface
|
|
1844
|
-
name: string;
|
|
1845
|
-
payload: string;
|
|
1720
|
+
interface TakeHeapSnapshotParameterType {
|
|
1846
1721
|
/**
|
|
1847
|
-
*
|
|
1722
|
+
* If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
|
|
1848
1723
|
*/
|
|
1849
|
-
|
|
1724
|
+
reportProgress?: boolean;
|
|
1850
1725
|
}
|
|
1851
1726
|
|
|
1852
|
-
interface
|
|
1853
|
-
|
|
1854
|
-
* Type of the call.
|
|
1855
|
-
*/
|
|
1856
|
-
type: string;
|
|
1857
|
-
/**
|
|
1858
|
-
* Call arguments.
|
|
1859
|
-
*/
|
|
1860
|
-
args: RemoteObject[];
|
|
1861
|
-
/**
|
|
1862
|
-
* Identifier of the context where the call was made.
|
|
1863
|
-
*/
|
|
1864
|
-
executionContextId: ExecutionContextId;
|
|
1727
|
+
interface GetObjectByHeapObjectIdParameterType {
|
|
1728
|
+
objectId: HeapSnapshotObjectId;
|
|
1865
1729
|
/**
|
|
1866
|
-
*
|
|
1730
|
+
* Symbolic group name that can be used to release multiple objects.
|
|
1867
1731
|
*/
|
|
1868
|
-
|
|
1732
|
+
objectGroup?: string;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
interface AddInspectedHeapObjectParameterType {
|
|
1869
1736
|
/**
|
|
1870
|
-
*
|
|
1737
|
+
* Heap snapshot object id to be accessible by means of $x command line API.
|
|
1871
1738
|
*/
|
|
1872
|
-
|
|
1739
|
+
heapObjectId: HeapSnapshotObjectId;
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
interface GetHeapObjectIdParameterType {
|
|
1873
1743
|
/**
|
|
1874
|
-
*
|
|
1875
|
-
* 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call
|
|
1876
|
-
* on named context.
|
|
1877
|
-
* @experimental
|
|
1744
|
+
* Identifier of the object to get heap object id for.
|
|
1878
1745
|
*/
|
|
1879
|
-
|
|
1746
|
+
objectId: Runtime.RemoteObjectId;
|
|
1880
1747
|
}
|
|
1881
1748
|
|
|
1882
|
-
interface
|
|
1749
|
+
interface StartSamplingParameterType {
|
|
1883
1750
|
/**
|
|
1884
|
-
*
|
|
1751
|
+
* Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes.
|
|
1885
1752
|
*/
|
|
1886
|
-
|
|
1753
|
+
samplingInterval?: number;
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
interface GetObjectByHeapObjectIdReturnType {
|
|
1887
1757
|
/**
|
|
1888
|
-
*
|
|
1758
|
+
* Evaluation result.
|
|
1889
1759
|
*/
|
|
1890
|
-
|
|
1760
|
+
result: Runtime.RemoteObject;
|
|
1891
1761
|
}
|
|
1892
1762
|
|
|
1893
|
-
interface
|
|
1763
|
+
interface GetHeapObjectIdReturnType {
|
|
1894
1764
|
/**
|
|
1895
|
-
*
|
|
1765
|
+
* Id of the heap snapshot object corresponding to the passed remote object id.
|
|
1896
1766
|
*/
|
|
1897
|
-
|
|
1898
|
-
exceptionDetails: ExceptionDetails;
|
|
1767
|
+
heapSnapshotObjectId: HeapSnapshotObjectId;
|
|
1899
1768
|
}
|
|
1900
1769
|
|
|
1901
|
-
interface
|
|
1770
|
+
interface StopSamplingReturnType {
|
|
1902
1771
|
/**
|
|
1903
|
-
*
|
|
1772
|
+
* Recorded sampling heap profile.
|
|
1904
1773
|
*/
|
|
1905
|
-
|
|
1774
|
+
profile: SamplingHeapProfile;
|
|
1906
1775
|
}
|
|
1907
1776
|
|
|
1908
|
-
interface
|
|
1777
|
+
interface GetSamplingProfileReturnType {
|
|
1909
1778
|
/**
|
|
1910
|
-
*
|
|
1779
|
+
* Return the sampling profile being collected.
|
|
1911
1780
|
*/
|
|
1912
|
-
|
|
1781
|
+
profile: SamplingHeapProfile;
|
|
1913
1782
|
}
|
|
1914
1783
|
|
|
1915
|
-
interface
|
|
1916
|
-
|
|
1917
|
-
hints: {};
|
|
1784
|
+
interface AddHeapSnapshotChunkEventDataType {
|
|
1785
|
+
chunk: string;
|
|
1918
1786
|
}
|
|
1919
|
-
}
|
|
1920
1787
|
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
interface Domain {
|
|
1926
|
-
/**
|
|
1927
|
-
* Domain name.
|
|
1928
|
-
*/
|
|
1929
|
-
name: string;
|
|
1930
|
-
/**
|
|
1931
|
-
* Domain version.
|
|
1932
|
-
*/
|
|
1933
|
-
version: string;
|
|
1788
|
+
interface ReportHeapSnapshotProgressEventDataType {
|
|
1789
|
+
done: number;
|
|
1790
|
+
total: number;
|
|
1791
|
+
finished?: boolean;
|
|
1934
1792
|
}
|
|
1935
1793
|
|
|
1936
|
-
interface
|
|
1794
|
+
interface LastSeenObjectIdEventDataType {
|
|
1795
|
+
lastSeenObjectId: number;
|
|
1796
|
+
timestamp: number;
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
interface HeapStatsUpdateEventDataType {
|
|
1937
1800
|
/**
|
|
1938
|
-
*
|
|
1801
|
+
* An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment.
|
|
1939
1802
|
*/
|
|
1940
|
-
|
|
1803
|
+
statsUpdate: number[];
|
|
1941
1804
|
}
|
|
1942
1805
|
}
|
|
1943
1806
|
|
|
@@ -2000,6 +1863,10 @@ declare module "inspector" {
|
|
|
2000
1863
|
waitForDebuggerOnStart: boolean;
|
|
2001
1864
|
}
|
|
2002
1865
|
|
|
1866
|
+
interface DetachParameterType {
|
|
1867
|
+
sessionId: SessionID;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
2003
1870
|
interface AttachedToWorkerEventDataType {
|
|
2004
1871
|
/**
|
|
2005
1872
|
* Identifier assigned to the session used to send/receive messages.
|
|
@@ -2025,6 +1892,12 @@ declare module "inspector" {
|
|
|
2025
1892
|
}
|
|
2026
1893
|
}
|
|
2027
1894
|
|
|
1895
|
+
namespace NodeRuntime {
|
|
1896
|
+
interface NotifyWhenWaitingForDisconnectParameterType {
|
|
1897
|
+
enabled: boolean;
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
|
|
2028
1901
|
/**
|
|
2029
1902
|
* The inspector.Session is used for dispatching messages to the V8 inspector back-end and receiving message responses and notifications.
|
|
2030
1903
|
*/
|
|
@@ -2057,135 +1930,124 @@ declare module "inspector" {
|
|
|
2057
1930
|
post(method: string, callback?: (err: Error | null, params?: {}) => void): void;
|
|
2058
1931
|
|
|
2059
1932
|
/**
|
|
2060
|
-
*
|
|
1933
|
+
* Returns supported domains.
|
|
2061
1934
|
*/
|
|
2062
|
-
post(method: "
|
|
1935
|
+
post(method: "Schema.getDomains", callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void;
|
|
2063
1936
|
|
|
2064
1937
|
/**
|
|
2065
|
-
*
|
|
1938
|
+
* Evaluates expression on global object.
|
|
2066
1939
|
*/
|
|
2067
|
-
post(method: "
|
|
1940
|
+
post(method: "Runtime.evaluate", params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
|
|
1941
|
+
post(method: "Runtime.evaluate", callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
|
|
2068
1942
|
|
|
2069
1943
|
/**
|
|
2070
|
-
*
|
|
2071
|
-
* `messageAdded` notification.
|
|
1944
|
+
* Add handler to promise with given promise object id.
|
|
2072
1945
|
*/
|
|
2073
|
-
post(method: "
|
|
1946
|
+
post(method: "Runtime.awaitPromise", params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
|
|
1947
|
+
post(method: "Runtime.awaitPromise", callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
|
|
2074
1948
|
|
|
2075
1949
|
/**
|
|
2076
|
-
*
|
|
1950
|
+
* Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
|
|
2077
1951
|
*/
|
|
2078
|
-
post(method: "
|
|
2079
|
-
post(method: "
|
|
1952
|
+
post(method: "Runtime.callFunctionOn", params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
|
|
1953
|
+
post(method: "Runtime.callFunctionOn", callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
|
|
2080
1954
|
|
|
2081
1955
|
/**
|
|
2082
|
-
*
|
|
1956
|
+
* Returns properties of a given object. Object group of the result is inherited from the target object.
|
|
2083
1957
|
*/
|
|
2084
|
-
post(method: "
|
|
1958
|
+
post(method: "Runtime.getProperties", params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
|
|
1959
|
+
post(method: "Runtime.getProperties", callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
|
|
2085
1960
|
|
|
2086
1961
|
/**
|
|
2087
|
-
*
|
|
2088
|
-
* enabled until the result for this command is received.
|
|
1962
|
+
* Releases remote object with given id.
|
|
2089
1963
|
*/
|
|
2090
|
-
post(method: "
|
|
1964
|
+
post(method: "Runtime.releaseObject", params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void;
|
|
1965
|
+
post(method: "Runtime.releaseObject", callback?: (err: Error | null) => void): void;
|
|
2091
1966
|
|
|
2092
1967
|
/**
|
|
2093
|
-
*
|
|
1968
|
+
* Releases all remote objects that belong to a given group.
|
|
2094
1969
|
*/
|
|
2095
|
-
post(method: "
|
|
2096
|
-
post(method: "
|
|
1970
|
+
post(method: "Runtime.releaseObjectGroup", params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void;
|
|
1971
|
+
post(method: "Runtime.releaseObjectGroup", callback?: (err: Error | null) => void): void;
|
|
2097
1972
|
|
|
2098
1973
|
/**
|
|
2099
|
-
*
|
|
2100
|
-
* the same.
|
|
1974
|
+
* Tells inspected instance to run if it was waiting for debugger to attach.
|
|
2101
1975
|
*/
|
|
2102
|
-
post(
|
|
2103
|
-
method: "Debugger.getPossibleBreakpoints",
|
|
2104
|
-
params?: Debugger.GetPossibleBreakpointsParameterType,
|
|
2105
|
-
callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void
|
|
2106
|
-
): void;
|
|
2107
|
-
post(method: "Debugger.getPossibleBreakpoints", callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void;
|
|
1976
|
+
post(method: "Runtime.runIfWaitingForDebugger", callback?: (err: Error | null) => void): void;
|
|
2108
1977
|
|
|
2109
1978
|
/**
|
|
2110
|
-
*
|
|
1979
|
+
* 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.
|
|
2111
1980
|
*/
|
|
2112
|
-
post(method: "
|
|
2113
|
-
post(method: "Debugger.getScriptSource", callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
|
|
1981
|
+
post(method: "Runtime.enable", callback?: (err: Error | null) => void): void;
|
|
2114
1982
|
|
|
2115
1983
|
/**
|
|
2116
|
-
*
|
|
2117
|
-
* @experimental
|
|
1984
|
+
* Disables reporting of execution contexts creation.
|
|
2118
1985
|
*/
|
|
2119
|
-
post(method: "
|
|
2120
|
-
post(method: "Debugger.getStackTrace", callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
|
|
1986
|
+
post(method: "Runtime.disable", callback?: (err: Error | null) => void): void;
|
|
2121
1987
|
|
|
2122
1988
|
/**
|
|
2123
|
-
*
|
|
1989
|
+
* Discards collected exceptions and console API calls.
|
|
2124
1990
|
*/
|
|
2125
|
-
post(method: "
|
|
1991
|
+
post(method: "Runtime.discardConsoleEntries", callback?: (err: Error | null) => void): void;
|
|
2126
1992
|
|
|
2127
1993
|
/**
|
|
2128
1994
|
* @experimental
|
|
2129
1995
|
*/
|
|
2130
|
-
post(method: "
|
|
2131
|
-
post(method: "
|
|
1996
|
+
post(method: "Runtime.setCustomObjectFormatterEnabled", params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void;
|
|
1997
|
+
post(method: "Runtime.setCustomObjectFormatterEnabled", callback?: (err: Error | null) => void): void;
|
|
2132
1998
|
|
|
2133
1999
|
/**
|
|
2134
|
-
*
|
|
2000
|
+
* Compiles expression.
|
|
2135
2001
|
*/
|
|
2136
|
-
post(method: "
|
|
2137
|
-
post(method: "
|
|
2002
|
+
post(method: "Runtime.compileScript", params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
|
|
2003
|
+
post(method: "Runtime.compileScript", callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
|
|
2138
2004
|
|
|
2139
2005
|
/**
|
|
2140
|
-
*
|
|
2006
|
+
* Runs script with given id in a given context.
|
|
2141
2007
|
*/
|
|
2142
|
-
post(method: "
|
|
2143
|
-
post(method: "
|
|
2008
|
+
post(method: "Runtime.runScript", params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
|
|
2009
|
+
post(method: "Runtime.runScript", callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
|
|
2010
|
+
|
|
2011
|
+
post(method: "Runtime.queryObjects", params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
|
|
2012
|
+
post(method: "Runtime.queryObjects", callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
|
|
2144
2013
|
|
|
2145
2014
|
/**
|
|
2146
|
-
*
|
|
2015
|
+
* Returns all let, const and class variables from global scope.
|
|
2147
2016
|
*/
|
|
2148
|
-
post(
|
|
2017
|
+
post(
|
|
2018
|
+
method: "Runtime.globalLexicalScopeNames",
|
|
2019
|
+
params?: Runtime.GlobalLexicalScopeNamesParameterType,
|
|
2020
|
+
callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void
|
|
2021
|
+
): void;
|
|
2022
|
+
post(method: "Runtime.globalLexicalScopeNames", callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void;
|
|
2149
2023
|
|
|
2150
2024
|
/**
|
|
2151
|
-
*
|
|
2152
|
-
* Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled
|
|
2153
|
-
* before next pause. Returns success when async task is actually scheduled, returns error if no
|
|
2154
|
-
* task were scheduled or another scheduleStepIntoAsync was called.
|
|
2155
|
-
* @experimental
|
|
2025
|
+
* Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
|
|
2156
2026
|
*/
|
|
2157
|
-
post(method: "Debugger.
|
|
2027
|
+
post(method: "Debugger.enable", callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void;
|
|
2158
2028
|
|
|
2159
2029
|
/**
|
|
2160
|
-
*
|
|
2030
|
+
* Disables debugger for given page.
|
|
2161
2031
|
*/
|
|
2162
|
-
post(method: "Debugger.
|
|
2163
|
-
post(method: "Debugger.searchInContent", callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
|
|
2032
|
+
post(method: "Debugger.disable", callback?: (err: Error | null) => void): void;
|
|
2164
2033
|
|
|
2165
2034
|
/**
|
|
2166
|
-
*
|
|
2035
|
+
* Activates / deactivates all breakpoints on the page.
|
|
2167
2036
|
*/
|
|
2168
|
-
post(method: "Debugger.
|
|
2169
|
-
post(method: "Debugger.
|
|
2037
|
+
post(method: "Debugger.setBreakpointsActive", params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void;
|
|
2038
|
+
post(method: "Debugger.setBreakpointsActive", callback?: (err: Error | null) => void): void;
|
|
2170
2039
|
|
|
2171
2040
|
/**
|
|
2172
|
-
*
|
|
2173
|
-
* scripts with url matching one of the patterns. VM will try to leave blackboxed script by
|
|
2174
|
-
* performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
|
|
2175
|
-
* @experimental
|
|
2041
|
+
* Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
|
|
2176
2042
|
*/
|
|
2177
|
-
post(method: "Debugger.
|
|
2178
|
-
post(method: "Debugger.
|
|
2043
|
+
post(method: "Debugger.setSkipAllPauses", params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void;
|
|
2044
|
+
post(method: "Debugger.setSkipAllPauses", callback?: (err: Error | null) => void): void;
|
|
2179
2045
|
|
|
2180
2046
|
/**
|
|
2181
|
-
*
|
|
2182
|
-
* scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
|
|
2183
|
-
* Positions array contains positions where blackbox state is changed. First interval isn't
|
|
2184
|
-
* blackboxed. Array should be sorted.
|
|
2185
|
-
* @experimental
|
|
2047
|
+
* 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.
|
|
2186
2048
|
*/
|
|
2187
|
-
post(method: "Debugger.
|
|
2188
|
-
post(method: "Debugger.
|
|
2049
|
+
post(method: "Debugger.setBreakpointByUrl", params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
|
|
2050
|
+
post(method: "Debugger.setBreakpointByUrl", callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
|
|
2189
2051
|
|
|
2190
2052
|
/**
|
|
2191
2053
|
* Sets JavaScript breakpoint at a given location.
|
|
@@ -2194,65 +2056,37 @@ declare module "inspector" {
|
|
|
2194
2056
|
post(method: "Debugger.setBreakpoint", callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
|
|
2195
2057
|
|
|
2196
2058
|
/**
|
|
2197
|
-
*
|
|
2198
|
-
* command is issued, all existing parsed scripts will have breakpoints resolved and returned in
|
|
2199
|
-
* `locations` property. Further matching script parsing will result in subsequent
|
|
2200
|
-
* `breakpointResolved` events issued. This logical breakpoint will survive page reloads.
|
|
2059
|
+
* Removes JavaScript breakpoint.
|
|
2201
2060
|
*/
|
|
2202
|
-
post(method: "Debugger.
|
|
2203
|
-
post(method: "Debugger.
|
|
2061
|
+
post(method: "Debugger.removeBreakpoint", params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void;
|
|
2062
|
+
post(method: "Debugger.removeBreakpoint", callback?: (err: Error | null) => void): void;
|
|
2204
2063
|
|
|
2205
2064
|
/**
|
|
2206
|
-
*
|
|
2207
|
-
* If another function was created from the same source as a given one,
|
|
2208
|
-
* calling it will also trigger the breakpoint.
|
|
2209
|
-
* @experimental
|
|
2065
|
+
* Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
|
|
2210
2066
|
*/
|
|
2211
2067
|
post(
|
|
2212
|
-
method: "Debugger.
|
|
2213
|
-
params?: Debugger.
|
|
2214
|
-
callback?: (err: Error | null, params: Debugger.
|
|
2068
|
+
method: "Debugger.getPossibleBreakpoints",
|
|
2069
|
+
params?: Debugger.GetPossibleBreakpointsParameterType,
|
|
2070
|
+
callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void
|
|
2215
2071
|
): void;
|
|
2216
|
-
post(method: "Debugger.
|
|
2217
|
-
|
|
2218
|
-
/**
|
|
2219
|
-
* Activates / deactivates all breakpoints on the page.
|
|
2220
|
-
*/
|
|
2221
|
-
post(method: "Debugger.setBreakpointsActive", params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void;
|
|
2222
|
-
post(method: "Debugger.setBreakpointsActive", callback?: (err: Error | null) => void): void;
|
|
2072
|
+
post(method: "Debugger.getPossibleBreakpoints", callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void;
|
|
2223
2073
|
|
|
2224
2074
|
/**
|
|
2225
|
-
*
|
|
2226
|
-
* no exceptions. Initial pause on exceptions state is `none`.
|
|
2075
|
+
* Continues execution until specific location is reached.
|
|
2227
2076
|
*/
|
|
2228
|
-
post(method: "Debugger.
|
|
2229
|
-
post(method: "Debugger.
|
|
2077
|
+
post(method: "Debugger.continueToLocation", params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void;
|
|
2078
|
+
post(method: "Debugger.continueToLocation", callback?: (err: Error | null) => void): void;
|
|
2230
2079
|
|
|
2231
2080
|
/**
|
|
2232
|
-
* Changes return value in top frame. Available only at return break position.
|
|
2233
2081
|
* @experimental
|
|
2234
2082
|
*/
|
|
2235
|
-
post(method: "Debugger.
|
|
2236
|
-
post(method: "Debugger.
|
|
2237
|
-
|
|
2238
|
-
/**
|
|
2239
|
-
* Edits JavaScript source live.
|
|
2240
|
-
*/
|
|
2241
|
-
post(method: "Debugger.setScriptSource", params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
|
|
2242
|
-
post(method: "Debugger.setScriptSource", callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
|
|
2243
|
-
|
|
2244
|
-
/**
|
|
2245
|
-
* Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
|
|
2246
|
-
*/
|
|
2247
|
-
post(method: "Debugger.setSkipAllPauses", params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void;
|
|
2248
|
-
post(method: "Debugger.setSkipAllPauses", callback?: (err: Error | null) => void): void;
|
|
2083
|
+
post(method: "Debugger.pauseOnAsyncCall", params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void;
|
|
2084
|
+
post(method: "Debugger.pauseOnAsyncCall", callback?: (err: Error | null) => void): void;
|
|
2249
2085
|
|
|
2250
2086
|
/**
|
|
2251
|
-
*
|
|
2252
|
-
* mutated manually.
|
|
2087
|
+
* Steps over the statement.
|
|
2253
2088
|
*/
|
|
2254
|
-
post(method: "Debugger.
|
|
2255
|
-
post(method: "Debugger.setVariableValue", callback?: (err: Error | null) => void): void;
|
|
2089
|
+
post(method: "Debugger.stepOver", callback?: (err: Error | null) => void): void;
|
|
2256
2090
|
|
|
2257
2091
|
/**
|
|
2258
2092
|
* Steps into the function call.
|
|
@@ -2266,256 +2100,202 @@ declare module "inspector" {
|
|
|
2266
2100
|
post(method: "Debugger.stepOut", callback?: (err: Error | null) => void): void;
|
|
2267
2101
|
|
|
2268
2102
|
/**
|
|
2269
|
-
*
|
|
2270
|
-
*/
|
|
2271
|
-
post(method: "Debugger.stepOver", callback?: (err: Error | null) => void): void;
|
|
2272
|
-
|
|
2273
|
-
/**
|
|
2274
|
-
* Enables console to refer to the node with given id via $x (see Command Line API for more details
|
|
2275
|
-
* $x functions).
|
|
2276
|
-
*/
|
|
2277
|
-
post(method: "HeapProfiler.addInspectedHeapObject", params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void;
|
|
2278
|
-
post(method: "HeapProfiler.addInspectedHeapObject", callback?: (err: Error | null) => void): void;
|
|
2279
|
-
|
|
2280
|
-
post(method: "HeapProfiler.collectGarbage", callback?: (err: Error | null) => void): void;
|
|
2281
|
-
|
|
2282
|
-
post(method: "HeapProfiler.disable", callback?: (err: Error | null) => void): void;
|
|
2283
|
-
|
|
2284
|
-
post(method: "HeapProfiler.enable", callback?: (err: Error | null) => void): void;
|
|
2285
|
-
|
|
2286
|
-
post(method: "HeapProfiler.getHeapObjectId", params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
|
|
2287
|
-
post(method: "HeapProfiler.getHeapObjectId", callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
|
|
2288
|
-
|
|
2289
|
-
post(
|
|
2290
|
-
method: "HeapProfiler.getObjectByHeapObjectId",
|
|
2291
|
-
params?: HeapProfiler.GetObjectByHeapObjectIdParameterType,
|
|
2292
|
-
callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void
|
|
2293
|
-
): void;
|
|
2294
|
-
post(method: "HeapProfiler.getObjectByHeapObjectId", callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void;
|
|
2295
|
-
|
|
2296
|
-
post(method: "HeapProfiler.getSamplingProfile", callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void;
|
|
2297
|
-
|
|
2298
|
-
post(method: "HeapProfiler.startSampling", params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void;
|
|
2299
|
-
post(method: "HeapProfiler.startSampling", callback?: (err: Error | null) => void): void;
|
|
2300
|
-
|
|
2301
|
-
post(method: "HeapProfiler.startTrackingHeapObjects", params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
|
|
2302
|
-
post(method: "HeapProfiler.startTrackingHeapObjects", callback?: (err: Error | null) => void): void;
|
|
2303
|
-
|
|
2304
|
-
post(method: "HeapProfiler.stopSampling", callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void;
|
|
2305
|
-
|
|
2306
|
-
post(method: "HeapProfiler.stopTrackingHeapObjects", params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
|
|
2307
|
-
post(method: "HeapProfiler.stopTrackingHeapObjects", callback?: (err: Error | null) => void): void;
|
|
2308
|
-
|
|
2309
|
-
post(method: "HeapProfiler.takeHeapSnapshot", params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void;
|
|
2310
|
-
post(method: "HeapProfiler.takeHeapSnapshot", callback?: (err: Error | null) => void): void;
|
|
2311
|
-
|
|
2312
|
-
post(method: "Profiler.disable", callback?: (err: Error | null) => void): void;
|
|
2313
|
-
|
|
2314
|
-
post(method: "Profiler.enable", callback?: (err: Error | null) => void): void;
|
|
2315
|
-
|
|
2316
|
-
/**
|
|
2317
|
-
* Collect coverage data for the current isolate. The coverage data may be incomplete due to
|
|
2318
|
-
* garbage collection.
|
|
2103
|
+
* Stops on the next JavaScript statement.
|
|
2319
2104
|
*/
|
|
2320
|
-
post(method: "
|
|
2105
|
+
post(method: "Debugger.pause", callback?: (err: Error | null) => void): void;
|
|
2321
2106
|
|
|
2322
2107
|
/**
|
|
2323
|
-
*
|
|
2108
|
+
* 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.
|
|
2109
|
+
* @experimental
|
|
2324
2110
|
*/
|
|
2325
|
-
post(method: "
|
|
2326
|
-
post(method: "Profiler.setSamplingInterval", callback?: (err: Error | null) => void): void;
|
|
2327
|
-
|
|
2328
|
-
post(method: "Profiler.start", callback?: (err: Error | null) => void): void;
|
|
2111
|
+
post(method: "Debugger.scheduleStepIntoAsync", callback?: (err: Error | null) => void): void;
|
|
2329
2112
|
|
|
2330
2113
|
/**
|
|
2331
|
-
*
|
|
2332
|
-
* coverage may be incomplete. Enabling prevents running optimized code and resets execution
|
|
2333
|
-
* counters.
|
|
2114
|
+
* Resumes JavaScript execution.
|
|
2334
2115
|
*/
|
|
2335
|
-
post(method: "
|
|
2336
|
-
post(method: "Profiler.startPreciseCoverage", callback?: (err: Error | null) => void): void;
|
|
2116
|
+
post(method: "Debugger.resume", callback?: (err: Error | null) => void): void;
|
|
2337
2117
|
|
|
2338
2118
|
/**
|
|
2339
|
-
*
|
|
2119
|
+
* Returns stack trace with given <code>stackTraceId</code>.
|
|
2340
2120
|
* @experimental
|
|
2341
2121
|
*/
|
|
2342
|
-
post(method: "
|
|
2343
|
-
|
|
2344
|
-
post(method: "Profiler.stop", callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void;
|
|
2345
|
-
|
|
2346
|
-
/**
|
|
2347
|
-
* Disable precise code coverage. Disabling releases unnecessary execution count records and allows
|
|
2348
|
-
* executing optimized code.
|
|
2349
|
-
*/
|
|
2350
|
-
post(method: "Profiler.stopPreciseCoverage", callback?: (err: Error | null) => void): void;
|
|
2122
|
+
post(method: "Debugger.getStackTrace", params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
|
|
2123
|
+
post(method: "Debugger.getStackTrace", callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
|
|
2351
2124
|
|
|
2352
2125
|
/**
|
|
2353
|
-
*
|
|
2354
|
-
* @experimental
|
|
2126
|
+
* Searches for given string in script content.
|
|
2355
2127
|
*/
|
|
2356
|
-
post(method: "
|
|
2128
|
+
post(method: "Debugger.searchInContent", params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
|
|
2129
|
+
post(method: "Debugger.searchInContent", callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
|
|
2357
2130
|
|
|
2358
2131
|
/**
|
|
2359
|
-
*
|
|
2360
|
-
* coverage needs to have started.
|
|
2132
|
+
* Edits JavaScript source live.
|
|
2361
2133
|
*/
|
|
2362
|
-
post(method: "
|
|
2134
|
+
post(method: "Debugger.setScriptSource", params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
|
|
2135
|
+
post(method: "Debugger.setScriptSource", callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
|
|
2363
2136
|
|
|
2364
2137
|
/**
|
|
2365
|
-
*
|
|
2366
|
-
* @experimental
|
|
2138
|
+
* Restarts particular call frame from the beginning.
|
|
2367
2139
|
*/
|
|
2368
|
-
post(method: "
|
|
2140
|
+
post(method: "Debugger.restartFrame", params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
|
|
2141
|
+
post(method: "Debugger.restartFrame", callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
|
|
2369
2142
|
|
|
2370
2143
|
/**
|
|
2371
|
-
*
|
|
2144
|
+
* Returns source for the script with given id.
|
|
2372
2145
|
*/
|
|
2373
|
-
post(method: "
|
|
2374
|
-
post(method: "
|
|
2146
|
+
post(method: "Debugger.getScriptSource", params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
|
|
2147
|
+
post(method: "Debugger.getScriptSource", callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
|
|
2375
2148
|
|
|
2376
2149
|
/**
|
|
2377
|
-
*
|
|
2378
|
-
* inherited from the target object.
|
|
2150
|
+
* 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>.
|
|
2379
2151
|
*/
|
|
2380
|
-
post(method: "
|
|
2381
|
-
post(method: "
|
|
2152
|
+
post(method: "Debugger.setPauseOnExceptions", params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void;
|
|
2153
|
+
post(method: "Debugger.setPauseOnExceptions", callback?: (err: Error | null) => void): void;
|
|
2382
2154
|
|
|
2383
2155
|
/**
|
|
2384
|
-
*
|
|
2156
|
+
* Evaluates expression on a given call frame.
|
|
2385
2157
|
*/
|
|
2386
|
-
post(method: "
|
|
2387
|
-
post(method: "
|
|
2158
|
+
post(method: "Debugger.evaluateOnCallFrame", params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
|
|
2159
|
+
post(method: "Debugger.evaluateOnCallFrame", callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
|
|
2388
2160
|
|
|
2389
2161
|
/**
|
|
2390
|
-
*
|
|
2162
|
+
* Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
|
|
2391
2163
|
*/
|
|
2392
|
-
post(method: "
|
|
2164
|
+
post(method: "Debugger.setVariableValue", params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void;
|
|
2165
|
+
post(method: "Debugger.setVariableValue", callback?: (err: Error | null) => void): void;
|
|
2393
2166
|
|
|
2394
2167
|
/**
|
|
2395
|
-
*
|
|
2168
|
+
* Changes return value in top frame. Available only at return break position.
|
|
2169
|
+
* @experimental
|
|
2396
2170
|
*/
|
|
2397
|
-
post(method: "
|
|
2171
|
+
post(method: "Debugger.setReturnValue", params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void;
|
|
2172
|
+
post(method: "Debugger.setReturnValue", callback?: (err: Error | null) => void): void;
|
|
2398
2173
|
|
|
2399
2174
|
/**
|
|
2400
|
-
* Enables
|
|
2401
|
-
* When the reporting gets enabled the event will be sent immediately for each existing execution
|
|
2402
|
-
* context.
|
|
2175
|
+
* Enables or disables async call stacks tracking.
|
|
2403
2176
|
*/
|
|
2404
|
-
post(method: "
|
|
2177
|
+
post(method: "Debugger.setAsyncCallStackDepth", params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void;
|
|
2178
|
+
post(method: "Debugger.setAsyncCallStackDepth", callback?: (err: Error | null) => void): void;
|
|
2405
2179
|
|
|
2406
2180
|
/**
|
|
2407
|
-
*
|
|
2181
|
+
* 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.
|
|
2182
|
+
* @experimental
|
|
2408
2183
|
*/
|
|
2409
|
-
post(method: "
|
|
2410
|
-
post(method: "
|
|
2184
|
+
post(method: "Debugger.setBlackboxPatterns", params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void;
|
|
2185
|
+
post(method: "Debugger.setBlackboxPatterns", callback?: (err: Error | null) => void): void;
|
|
2411
2186
|
|
|
2412
2187
|
/**
|
|
2413
|
-
*
|
|
2188
|
+
* 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.
|
|
2414
2189
|
* @experimental
|
|
2415
2190
|
*/
|
|
2416
|
-
post(method: "
|
|
2191
|
+
post(method: "Debugger.setBlackboxedRanges", params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void;
|
|
2192
|
+
post(method: "Debugger.setBlackboxedRanges", callback?: (err: Error | null) => void): void;
|
|
2417
2193
|
|
|
2418
2194
|
/**
|
|
2419
|
-
*
|
|
2420
|
-
* It is the total usage of the corresponding isolate not scoped to a particular Runtime.
|
|
2421
|
-
* @experimental
|
|
2195
|
+
* Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification.
|
|
2422
2196
|
*/
|
|
2423
|
-
post(method: "
|
|
2197
|
+
post(method: "Console.enable", callback?: (err: Error | null) => void): void;
|
|
2424
2198
|
|
|
2425
2199
|
/**
|
|
2426
|
-
*
|
|
2427
|
-
* object.
|
|
2200
|
+
* Disables console domain, prevents further console messages from being reported to the client.
|
|
2428
2201
|
*/
|
|
2429
|
-
post(method: "
|
|
2430
|
-
post(method: "Runtime.getProperties", callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
|
|
2202
|
+
post(method: "Console.disable", callback?: (err: Error | null) => void): void;
|
|
2431
2203
|
|
|
2432
2204
|
/**
|
|
2433
|
-
*
|
|
2205
|
+
* Does nothing.
|
|
2434
2206
|
*/
|
|
2435
|
-
post(
|
|
2436
|
-
method: "Runtime.globalLexicalScopeNames",
|
|
2437
|
-
params?: Runtime.GlobalLexicalScopeNamesParameterType,
|
|
2438
|
-
callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void
|
|
2439
|
-
): void;
|
|
2440
|
-
post(method: "Runtime.globalLexicalScopeNames", callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void;
|
|
2207
|
+
post(method: "Console.clearMessages", callback?: (err: Error | null) => void): void;
|
|
2441
2208
|
|
|
2442
|
-
post(method: "
|
|
2443
|
-
post(method: "Runtime.queryObjects", callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
|
|
2209
|
+
post(method: "Profiler.enable", callback?: (err: Error | null) => void): void;
|
|
2444
2210
|
|
|
2445
|
-
|
|
2446
|
-
* Releases remote object with given id.
|
|
2447
|
-
*/
|
|
2448
|
-
post(method: "Runtime.releaseObject", params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void;
|
|
2449
|
-
post(method: "Runtime.releaseObject", callback?: (err: Error | null) => void): void;
|
|
2211
|
+
post(method: "Profiler.disable", callback?: (err: Error | null) => void): void;
|
|
2450
2212
|
|
|
2451
2213
|
/**
|
|
2452
|
-
*
|
|
2214
|
+
* Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
|
|
2453
2215
|
*/
|
|
2454
|
-
post(method: "
|
|
2455
|
-
post(method: "
|
|
2216
|
+
post(method: "Profiler.setSamplingInterval", params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void;
|
|
2217
|
+
post(method: "Profiler.setSamplingInterval", callback?: (err: Error | null) => void): void;
|
|
2456
2218
|
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
post(method: "Runtime.runIfWaitingForDebugger", callback?: (err: Error | null) => void): void;
|
|
2219
|
+
post(method: "Profiler.start", callback?: (err: Error | null) => void): void;
|
|
2220
|
+
|
|
2221
|
+
post(method: "Profiler.stop", callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void;
|
|
2461
2222
|
|
|
2462
2223
|
/**
|
|
2463
|
-
*
|
|
2224
|
+
* 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.
|
|
2464
2225
|
*/
|
|
2465
|
-
post(method: "
|
|
2466
|
-
post(method: "
|
|
2226
|
+
post(method: "Profiler.startPreciseCoverage", params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void;
|
|
2227
|
+
post(method: "Profiler.startPreciseCoverage", callback?: (err: Error | null) => void): void;
|
|
2467
2228
|
|
|
2468
2229
|
/**
|
|
2469
|
-
*
|
|
2230
|
+
* Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
|
|
2470
2231
|
*/
|
|
2471
|
-
post(method: "
|
|
2472
|
-
post(method: "Runtime.setAsyncCallStackDepth", callback?: (err: Error | null) => void): void;
|
|
2232
|
+
post(method: "Profiler.stopPreciseCoverage", callback?: (err: Error | null) => void): void;
|
|
2473
2233
|
|
|
2474
2234
|
/**
|
|
2475
|
-
*
|
|
2235
|
+
* Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
|
|
2476
2236
|
*/
|
|
2477
|
-
post(method: "
|
|
2478
|
-
post(method: "Runtime.setCustomObjectFormatterEnabled", callback?: (err: Error | null) => void): void;
|
|
2237
|
+
post(method: "Profiler.takePreciseCoverage", callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void;
|
|
2479
2238
|
|
|
2480
2239
|
/**
|
|
2481
|
-
*
|
|
2240
|
+
* Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
|
|
2482
2241
|
*/
|
|
2483
|
-
post(method: "
|
|
2484
|
-
post(method: "Runtime.setMaxCallStackSizeToCapture", callback?: (err: Error | null) => void): void;
|
|
2242
|
+
post(method: "Profiler.getBestEffortCoverage", callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void;
|
|
2485
2243
|
|
|
2486
2244
|
/**
|
|
2487
|
-
*
|
|
2488
|
-
* Will cancel the termination when the outer-most script execution ends.
|
|
2245
|
+
* Enable type profile.
|
|
2489
2246
|
* @experimental
|
|
2490
2247
|
*/
|
|
2491
|
-
post(method: "
|
|
2248
|
+
post(method: "Profiler.startTypeProfile", callback?: (err: Error | null) => void): void;
|
|
2492
2249
|
|
|
2493
2250
|
/**
|
|
2494
|
-
*
|
|
2495
|
-
* global objects of all inspected contexts, including those created later,
|
|
2496
|
-
* bindings survive reloads.
|
|
2497
|
-
* If executionContextId is specified, adds binding only on global object of
|
|
2498
|
-
* given execution context.
|
|
2499
|
-
* Binding function takes exactly one argument, this argument should be string,
|
|
2500
|
-
* in case of any other input, function throws an exception.
|
|
2501
|
-
* Each binding function call produces Runtime.bindingCalled notification.
|
|
2251
|
+
* Disable type profile. Disabling releases type profile data collected so far.
|
|
2502
2252
|
* @experimental
|
|
2503
2253
|
*/
|
|
2504
|
-
post(method: "
|
|
2505
|
-
post(method: "Runtime.addBinding", callback?: (err: Error | null) => void): void;
|
|
2254
|
+
post(method: "Profiler.stopTypeProfile", callback?: (err: Error | null) => void): void;
|
|
2506
2255
|
|
|
2507
2256
|
/**
|
|
2508
|
-
*
|
|
2509
|
-
* unsubscribes current runtime agent from Runtime.bindingCalled notifications.
|
|
2257
|
+
* Collect type profile.
|
|
2510
2258
|
* @experimental
|
|
2511
2259
|
*/
|
|
2512
|
-
post(method: "
|
|
2513
|
-
|
|
2260
|
+
post(method: "Profiler.takeTypeProfile", callback?: (err: Error | null, params: Profiler.TakeTypeProfileReturnType) => void): void;
|
|
2261
|
+
|
|
2262
|
+
post(method: "HeapProfiler.enable", callback?: (err: Error | null) => void): void;
|
|
2263
|
+
|
|
2264
|
+
post(method: "HeapProfiler.disable", callback?: (err: Error | null) => void): void;
|
|
2265
|
+
|
|
2266
|
+
post(method: "HeapProfiler.startTrackingHeapObjects", params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
|
|
2267
|
+
post(method: "HeapProfiler.startTrackingHeapObjects", callback?: (err: Error | null) => void): void;
|
|
2268
|
+
|
|
2269
|
+
post(method: "HeapProfiler.stopTrackingHeapObjects", params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
|
|
2270
|
+
post(method: "HeapProfiler.stopTrackingHeapObjects", callback?: (err: Error | null) => void): void;
|
|
2271
|
+
|
|
2272
|
+
post(method: "HeapProfiler.takeHeapSnapshot", params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void;
|
|
2273
|
+
post(method: "HeapProfiler.takeHeapSnapshot", callback?: (err: Error | null) => void): void;
|
|
2274
|
+
|
|
2275
|
+
post(method: "HeapProfiler.collectGarbage", callback?: (err: Error | null) => void): void;
|
|
2276
|
+
|
|
2277
|
+
post(
|
|
2278
|
+
method: "HeapProfiler.getObjectByHeapObjectId",
|
|
2279
|
+
params?: HeapProfiler.GetObjectByHeapObjectIdParameterType,
|
|
2280
|
+
callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void
|
|
2281
|
+
): void;
|
|
2282
|
+
post(method: "HeapProfiler.getObjectByHeapObjectId", callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void;
|
|
2514
2283
|
|
|
2515
2284
|
/**
|
|
2516
|
-
*
|
|
2285
|
+
* Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
|
|
2517
2286
|
*/
|
|
2518
|
-
post(method: "
|
|
2287
|
+
post(method: "HeapProfiler.addInspectedHeapObject", params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void;
|
|
2288
|
+
post(method: "HeapProfiler.addInspectedHeapObject", callback?: (err: Error | null) => void): void;
|
|
2289
|
+
|
|
2290
|
+
post(method: "HeapProfiler.getHeapObjectId", params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
|
|
2291
|
+
post(method: "HeapProfiler.getHeapObjectId", callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
|
|
2292
|
+
|
|
2293
|
+
post(method: "HeapProfiler.startSampling", params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void;
|
|
2294
|
+
post(method: "HeapProfiler.startSampling", callback?: (err: Error | null) => void): void;
|
|
2295
|
+
|
|
2296
|
+
post(method: "HeapProfiler.stopSampling", callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void;
|
|
2297
|
+
|
|
2298
|
+
post(method: "HeapProfiler.getSamplingProfile", callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void;
|
|
2519
2299
|
|
|
2520
2300
|
/**
|
|
2521
2301
|
* Gets supported tracing categories.
|
|
@@ -2552,6 +2332,18 @@ declare module "inspector" {
|
|
|
2552
2332
|
*/
|
|
2553
2333
|
post(method: "NodeWorker.disable", callback?: (err: Error | null) => void): void;
|
|
2554
2334
|
|
|
2335
|
+
/**
|
|
2336
|
+
* Detached from the worker with given sessionId.
|
|
2337
|
+
*/
|
|
2338
|
+
post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void;
|
|
2339
|
+
post(method: "NodeWorker.detach", callback?: (err: Error | null) => void): void;
|
|
2340
|
+
|
|
2341
|
+
/**
|
|
2342
|
+
* Enable the `NodeRuntime.waitingForDisconnect`.
|
|
2343
|
+
*/
|
|
2344
|
+
post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void;
|
|
2345
|
+
post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", callback?: (err: Error | null) => void): void;
|
|
2346
|
+
|
|
2555
2347
|
// Events
|
|
2556
2348
|
|
|
2557
2349
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
@@ -2562,100 +2354,89 @@ declare module "inspector" {
|
|
|
2562
2354
|
addListener(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
|
|
2563
2355
|
|
|
2564
2356
|
/**
|
|
2565
|
-
* Issued when new
|
|
2357
|
+
* Issued when new execution context is created.
|
|
2566
2358
|
*/
|
|
2567
|
-
addListener(event: "
|
|
2359
|
+
addListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
2568
2360
|
|
|
2569
2361
|
/**
|
|
2570
|
-
*
|
|
2362
|
+
* Issued when execution context is destroyed.
|
|
2571
2363
|
*/
|
|
2572
|
-
addListener(event: "
|
|
2364
|
+
addListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
2573
2365
|
|
|
2574
2366
|
/**
|
|
2575
|
-
*
|
|
2367
|
+
* Issued when all executionContexts were cleared in browser
|
|
2576
2368
|
*/
|
|
2577
|
-
addListener(event: "
|
|
2369
|
+
addListener(event: "Runtime.executionContextsCleared", listener: () => void): this;
|
|
2578
2370
|
|
|
2579
2371
|
/**
|
|
2580
|
-
*
|
|
2372
|
+
* Issued when exception was thrown and unhandled.
|
|
2581
2373
|
*/
|
|
2582
|
-
addListener(event: "
|
|
2374
|
+
addListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
2583
2375
|
|
|
2584
2376
|
/**
|
|
2585
|
-
*
|
|
2377
|
+
* Issued when unhandled exception was revoked.
|
|
2586
2378
|
*/
|
|
2587
|
-
addListener(event: "
|
|
2379
|
+
addListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
2588
2380
|
|
|
2589
2381
|
/**
|
|
2590
|
-
*
|
|
2591
|
-
* scripts upon enabling debugger.
|
|
2382
|
+
* Issued when console API was called.
|
|
2592
2383
|
*/
|
|
2593
|
-
addListener(event: "
|
|
2594
|
-
|
|
2595
|
-
addListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2384
|
+
addListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
2596
2385
|
|
|
2597
2386
|
/**
|
|
2598
|
-
*
|
|
2387
|
+
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
2599
2388
|
*/
|
|
2600
|
-
addListener(event: "
|
|
2389
|
+
addListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
2601
2390
|
|
|
2602
2391
|
/**
|
|
2603
|
-
*
|
|
2604
|
-
* seen object id and corresponding timestamp. If the were changes in the heap since last event
|
|
2605
|
-
* then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
|
|
2392
|
+
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
2606
2393
|
*/
|
|
2607
|
-
addListener(event: "
|
|
2608
|
-
|
|
2609
|
-
addListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2610
|
-
addListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
2611
|
-
addListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2394
|
+
addListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
2612
2395
|
|
|
2613
2396
|
/**
|
|
2614
|
-
*
|
|
2397
|
+
* Fired when virtual machine fails to parse the script.
|
|
2615
2398
|
*/
|
|
2616
|
-
addListener(event: "
|
|
2399
|
+
addListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
2617
2400
|
|
|
2618
2401
|
/**
|
|
2619
|
-
*
|
|
2620
|
-
* @experimental
|
|
2402
|
+
* Fired when breakpoint is resolved to an actual script and location.
|
|
2621
2403
|
*/
|
|
2622
|
-
addListener(event: "
|
|
2404
|
+
addListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
2623
2405
|
|
|
2624
2406
|
/**
|
|
2625
|
-
*
|
|
2407
|
+
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
2626
2408
|
*/
|
|
2627
|
-
addListener(event: "
|
|
2409
|
+
addListener(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
2628
2410
|
|
|
2629
2411
|
/**
|
|
2630
|
-
*
|
|
2412
|
+
* Fired when the virtual machine resumed execution.
|
|
2631
2413
|
*/
|
|
2632
|
-
addListener(event: "
|
|
2414
|
+
addListener(event: "Debugger.resumed", listener: () => void): this;
|
|
2633
2415
|
|
|
2634
2416
|
/**
|
|
2635
|
-
* Issued when
|
|
2417
|
+
* Issued when new console message is added.
|
|
2636
2418
|
*/
|
|
2637
|
-
addListener(event: "
|
|
2419
|
+
addListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
2638
2420
|
|
|
2639
2421
|
/**
|
|
2640
|
-
*
|
|
2422
|
+
* Sent when new profile recording is started using console.profile() call.
|
|
2641
2423
|
*/
|
|
2642
|
-
addListener(event: "
|
|
2424
|
+
addListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
2643
2425
|
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
addListener(event: "
|
|
2426
|
+
addListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2427
|
+
addListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2428
|
+
addListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
2429
|
+
addListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2648
2430
|
|
|
2649
2431
|
/**
|
|
2650
|
-
*
|
|
2432
|
+
* 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.
|
|
2651
2433
|
*/
|
|
2652
|
-
addListener(event: "
|
|
2434
|
+
addListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
2653
2435
|
|
|
2654
2436
|
/**
|
|
2655
|
-
*
|
|
2656
|
-
* call).
|
|
2437
|
+
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
2657
2438
|
*/
|
|
2658
|
-
addListener(event: "
|
|
2439
|
+
addListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
2659
2440
|
|
|
2660
2441
|
/**
|
|
2661
2442
|
* Contains an bucket of collected trace events.
|
|
@@ -2684,34 +2465,42 @@ declare module "inspector" {
|
|
|
2684
2465
|
*/
|
|
2685
2466
|
addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2686
2467
|
|
|
2468
|
+
/**
|
|
2469
|
+
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2470
|
+
* enabled.
|
|
2471
|
+
* It is fired when the Node process finished all code execution and is
|
|
2472
|
+
* waiting for all frontends to disconnect.
|
|
2473
|
+
*/
|
|
2474
|
+
addListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
2475
|
+
|
|
2687
2476
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
2688
2477
|
emit(event: "inspectorNotification", message: InspectorNotification<{}>): boolean;
|
|
2689
|
-
emit(event: "
|
|
2478
|
+
emit(event: "Runtime.executionContextCreated", message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
|
|
2479
|
+
emit(event: "Runtime.executionContextDestroyed", message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>): boolean;
|
|
2480
|
+
emit(event: "Runtime.executionContextsCleared"): boolean;
|
|
2481
|
+
emit(event: "Runtime.exceptionThrown", message: InspectorNotification<Runtime.ExceptionThrownEventDataType>): boolean;
|
|
2482
|
+
emit(event: "Runtime.exceptionRevoked", message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>): boolean;
|
|
2483
|
+
emit(event: "Runtime.consoleAPICalled", message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>): boolean;
|
|
2484
|
+
emit(event: "Runtime.inspectRequested", message: InspectorNotification<Runtime.InspectRequestedEventDataType>): boolean;
|
|
2485
|
+
emit(event: "Debugger.scriptParsed", message: InspectorNotification<Debugger.ScriptParsedEventDataType>): boolean;
|
|
2486
|
+
emit(event: "Debugger.scriptFailedToParse", message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>): boolean;
|
|
2690
2487
|
emit(event: "Debugger.breakpointResolved", message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>): boolean;
|
|
2691
2488
|
emit(event: "Debugger.paused", message: InspectorNotification<Debugger.PausedEventDataType>): boolean;
|
|
2692
2489
|
emit(event: "Debugger.resumed"): boolean;
|
|
2693
|
-
emit(event: "
|
|
2694
|
-
emit(event: "
|
|
2490
|
+
emit(event: "Console.messageAdded", message: InspectorNotification<Console.MessageAddedEventDataType>): boolean;
|
|
2491
|
+
emit(event: "Profiler.consoleProfileStarted", message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>): boolean;
|
|
2492
|
+
emit(event: "Profiler.consoleProfileFinished", message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>): boolean;
|
|
2695
2493
|
emit(event: "HeapProfiler.addHeapSnapshotChunk", message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>): boolean;
|
|
2696
|
-
emit(event: "HeapProfiler.heapStatsUpdate", message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
|
|
2697
|
-
emit(event: "HeapProfiler.lastSeenObjectId", message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
|
|
2698
|
-
emit(event: "HeapProfiler.reportHeapSnapshotProgress", message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
|
|
2699
2494
|
emit(event: "HeapProfiler.resetProfiles"): boolean;
|
|
2700
|
-
emit(event: "
|
|
2701
|
-
emit(event: "
|
|
2702
|
-
emit(event: "
|
|
2703
|
-
emit(event: "Runtime.consoleAPICalled", message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>): boolean;
|
|
2704
|
-
emit(event: "Runtime.exceptionRevoked", message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>): boolean;
|
|
2705
|
-
emit(event: "Runtime.exceptionThrown", message: InspectorNotification<Runtime.ExceptionThrownEventDataType>): boolean;
|
|
2706
|
-
emit(event: "Runtime.executionContextCreated", message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
|
|
2707
|
-
emit(event: "Runtime.executionContextDestroyed", message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>): boolean;
|
|
2708
|
-
emit(event: "Runtime.executionContextsCleared"): boolean;
|
|
2709
|
-
emit(event: "Runtime.inspectRequested", message: InspectorNotification<Runtime.InspectRequestedEventDataType>): boolean;
|
|
2495
|
+
emit(event: "HeapProfiler.reportHeapSnapshotProgress", message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
|
|
2496
|
+
emit(event: "HeapProfiler.lastSeenObjectId", message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
|
|
2497
|
+
emit(event: "HeapProfiler.heapStatsUpdate", message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
|
|
2710
2498
|
emit(event: "NodeTracing.dataCollected", message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
|
|
2711
2499
|
emit(event: "NodeTracing.tracingComplete"): boolean;
|
|
2712
2500
|
emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
|
|
2713
2501
|
emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
|
|
2714
2502
|
emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
|
|
2503
|
+
emit(event: "NodeRuntime.waitingForDisconnect"): boolean;
|
|
2715
2504
|
|
|
2716
2505
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
2717
2506
|
|
|
@@ -2721,100 +2510,89 @@ declare module "inspector" {
|
|
|
2721
2510
|
on(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
|
|
2722
2511
|
|
|
2723
2512
|
/**
|
|
2724
|
-
* Issued when new
|
|
2725
|
-
*/
|
|
2726
|
-
on(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
2727
|
-
|
|
2728
|
-
/**
|
|
2729
|
-
* Fired when breakpoint is resolved to an actual script and location.
|
|
2513
|
+
* Issued when new execution context is created.
|
|
2730
2514
|
*/
|
|
2731
|
-
on(event: "
|
|
2515
|
+
on(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
2732
2516
|
|
|
2733
2517
|
/**
|
|
2734
|
-
*
|
|
2518
|
+
* Issued when execution context is destroyed.
|
|
2735
2519
|
*/
|
|
2736
|
-
on(event: "
|
|
2520
|
+
on(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
2737
2521
|
|
|
2738
2522
|
/**
|
|
2739
|
-
*
|
|
2523
|
+
* Issued when all executionContexts were cleared in browser
|
|
2740
2524
|
*/
|
|
2741
|
-
on(event: "
|
|
2525
|
+
on(event: "Runtime.executionContextsCleared", listener: () => void): this;
|
|
2742
2526
|
|
|
2743
2527
|
/**
|
|
2744
|
-
*
|
|
2528
|
+
* Issued when exception was thrown and unhandled.
|
|
2745
2529
|
*/
|
|
2746
|
-
on(event: "
|
|
2530
|
+
on(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
2747
2531
|
|
|
2748
2532
|
/**
|
|
2749
|
-
*
|
|
2750
|
-
* scripts upon enabling debugger.
|
|
2533
|
+
* Issued when unhandled exception was revoked.
|
|
2751
2534
|
*/
|
|
2752
|
-
on(event: "
|
|
2753
|
-
|
|
2754
|
-
on(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2535
|
+
on(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
2755
2536
|
|
|
2756
2537
|
/**
|
|
2757
|
-
*
|
|
2538
|
+
* Issued when console API was called.
|
|
2758
2539
|
*/
|
|
2759
|
-
on(event: "
|
|
2540
|
+
on(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
2760
2541
|
|
|
2761
2542
|
/**
|
|
2762
|
-
*
|
|
2763
|
-
* seen object id and corresponding timestamp. If the were changes in the heap since last event
|
|
2764
|
-
* then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
|
|
2543
|
+
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
2765
2544
|
*/
|
|
2766
|
-
on(event: "
|
|
2767
|
-
|
|
2768
|
-
on(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2769
|
-
on(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
2770
|
-
on(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2545
|
+
on(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
2771
2546
|
|
|
2772
2547
|
/**
|
|
2773
|
-
*
|
|
2548
|
+
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
2774
2549
|
*/
|
|
2775
|
-
on(event: "
|
|
2550
|
+
on(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
2776
2551
|
|
|
2777
2552
|
/**
|
|
2778
|
-
*
|
|
2779
|
-
* @experimental
|
|
2553
|
+
* Fired when virtual machine fails to parse the script.
|
|
2780
2554
|
*/
|
|
2781
|
-
on(event: "
|
|
2555
|
+
on(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
2782
2556
|
|
|
2783
2557
|
/**
|
|
2784
|
-
*
|
|
2558
|
+
* Fired when breakpoint is resolved to an actual script and location.
|
|
2785
2559
|
*/
|
|
2786
|
-
on(event: "
|
|
2560
|
+
on(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
2787
2561
|
|
|
2788
2562
|
/**
|
|
2789
|
-
*
|
|
2563
|
+
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
2790
2564
|
*/
|
|
2791
|
-
on(event: "
|
|
2565
|
+
on(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
2792
2566
|
|
|
2793
2567
|
/**
|
|
2794
|
-
*
|
|
2568
|
+
* Fired when the virtual machine resumed execution.
|
|
2795
2569
|
*/
|
|
2796
|
-
on(event: "
|
|
2570
|
+
on(event: "Debugger.resumed", listener: () => void): this;
|
|
2797
2571
|
|
|
2798
2572
|
/**
|
|
2799
|
-
* Issued when new
|
|
2573
|
+
* Issued when new console message is added.
|
|
2800
2574
|
*/
|
|
2801
|
-
on(event: "
|
|
2575
|
+
on(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
2802
2576
|
|
|
2803
2577
|
/**
|
|
2804
|
-
*
|
|
2578
|
+
* Sent when new profile recording is started using console.profile() call.
|
|
2805
2579
|
*/
|
|
2806
|
-
on(event: "
|
|
2580
|
+
on(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
2581
|
+
|
|
2582
|
+
on(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2583
|
+
on(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2584
|
+
on(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
2585
|
+
on(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2807
2586
|
|
|
2808
2587
|
/**
|
|
2809
|
-
*
|
|
2588
|
+
* 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.
|
|
2810
2589
|
*/
|
|
2811
|
-
on(event: "
|
|
2590
|
+
on(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
2812
2591
|
|
|
2813
2592
|
/**
|
|
2814
|
-
*
|
|
2815
|
-
* call).
|
|
2593
|
+
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
2816
2594
|
*/
|
|
2817
|
-
on(event: "
|
|
2595
|
+
on(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
2818
2596
|
|
|
2819
2597
|
/**
|
|
2820
2598
|
* Contains an bucket of collected trace events.
|
|
@@ -2843,6 +2621,14 @@ declare module "inspector" {
|
|
|
2843
2621
|
*/
|
|
2844
2622
|
on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2845
2623
|
|
|
2624
|
+
/**
|
|
2625
|
+
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2626
|
+
* enabled.
|
|
2627
|
+
* It is fired when the Node process finished all code execution and is
|
|
2628
|
+
* waiting for all frontends to disconnect.
|
|
2629
|
+
*/
|
|
2630
|
+
on(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
2631
|
+
|
|
2846
2632
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
2847
2633
|
|
|
2848
2634
|
/**
|
|
@@ -2851,100 +2637,89 @@ declare module "inspector" {
|
|
|
2851
2637
|
once(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
|
|
2852
2638
|
|
|
2853
2639
|
/**
|
|
2854
|
-
* Issued when new
|
|
2640
|
+
* Issued when new execution context is created.
|
|
2855
2641
|
*/
|
|
2856
|
-
once(event: "
|
|
2642
|
+
once(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
2857
2643
|
|
|
2858
2644
|
/**
|
|
2859
|
-
*
|
|
2645
|
+
* Issued when execution context is destroyed.
|
|
2860
2646
|
*/
|
|
2861
|
-
once(event: "
|
|
2647
|
+
once(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
2862
2648
|
|
|
2863
2649
|
/**
|
|
2864
|
-
*
|
|
2650
|
+
* Issued when all executionContexts were cleared in browser
|
|
2865
2651
|
*/
|
|
2866
|
-
once(event: "
|
|
2652
|
+
once(event: "Runtime.executionContextsCleared", listener: () => void): this;
|
|
2867
2653
|
|
|
2868
2654
|
/**
|
|
2869
|
-
*
|
|
2655
|
+
* Issued when exception was thrown and unhandled.
|
|
2870
2656
|
*/
|
|
2871
|
-
once(event: "
|
|
2657
|
+
once(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
2872
2658
|
|
|
2873
2659
|
/**
|
|
2874
|
-
*
|
|
2660
|
+
* Issued when unhandled exception was revoked.
|
|
2875
2661
|
*/
|
|
2876
|
-
once(event: "
|
|
2662
|
+
once(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
2877
2663
|
|
|
2878
2664
|
/**
|
|
2879
|
-
*
|
|
2880
|
-
* scripts upon enabling debugger.
|
|
2665
|
+
* Issued when console API was called.
|
|
2881
2666
|
*/
|
|
2882
|
-
once(event: "
|
|
2883
|
-
|
|
2884
|
-
once(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2667
|
+
once(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
2885
2668
|
|
|
2886
2669
|
/**
|
|
2887
|
-
*
|
|
2670
|
+
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
2888
2671
|
*/
|
|
2889
|
-
once(event: "
|
|
2672
|
+
once(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
2890
2673
|
|
|
2891
2674
|
/**
|
|
2892
|
-
*
|
|
2893
|
-
* seen object id and corresponding timestamp. If the were changes in the heap since last event
|
|
2894
|
-
* then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
|
|
2675
|
+
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
2895
2676
|
*/
|
|
2896
|
-
once(event: "
|
|
2897
|
-
|
|
2898
|
-
once(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2899
|
-
once(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
2900
|
-
once(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2677
|
+
once(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
2901
2678
|
|
|
2902
2679
|
/**
|
|
2903
|
-
*
|
|
2680
|
+
* Fired when virtual machine fails to parse the script.
|
|
2904
2681
|
*/
|
|
2905
|
-
once(event: "
|
|
2682
|
+
once(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
2906
2683
|
|
|
2907
2684
|
/**
|
|
2908
|
-
*
|
|
2909
|
-
* @experimental
|
|
2685
|
+
* Fired when breakpoint is resolved to an actual script and location.
|
|
2910
2686
|
*/
|
|
2911
|
-
once(event: "
|
|
2687
|
+
once(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
2912
2688
|
|
|
2913
2689
|
/**
|
|
2914
|
-
*
|
|
2690
|
+
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
2915
2691
|
*/
|
|
2916
|
-
once(event: "
|
|
2692
|
+
once(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
2917
2693
|
|
|
2918
2694
|
/**
|
|
2919
|
-
*
|
|
2695
|
+
* Fired when the virtual machine resumed execution.
|
|
2920
2696
|
*/
|
|
2921
|
-
once(event: "
|
|
2697
|
+
once(event: "Debugger.resumed", listener: () => void): this;
|
|
2922
2698
|
|
|
2923
2699
|
/**
|
|
2924
|
-
* Issued when
|
|
2700
|
+
* Issued when new console message is added.
|
|
2925
2701
|
*/
|
|
2926
|
-
once(event: "
|
|
2702
|
+
once(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
2927
2703
|
|
|
2928
2704
|
/**
|
|
2929
|
-
*
|
|
2705
|
+
* Sent when new profile recording is started using console.profile() call.
|
|
2930
2706
|
*/
|
|
2931
|
-
once(event: "
|
|
2707
|
+
once(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
2932
2708
|
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
once(event: "
|
|
2709
|
+
once(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2710
|
+
once(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2711
|
+
once(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
2712
|
+
once(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2937
2713
|
|
|
2938
2714
|
/**
|
|
2939
|
-
*
|
|
2715
|
+
* 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.
|
|
2940
2716
|
*/
|
|
2941
|
-
once(event: "
|
|
2717
|
+
once(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
2942
2718
|
|
|
2943
2719
|
/**
|
|
2944
|
-
*
|
|
2945
|
-
* call).
|
|
2720
|
+
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
2946
2721
|
*/
|
|
2947
|
-
once(event: "
|
|
2722
|
+
once(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
2948
2723
|
|
|
2949
2724
|
/**
|
|
2950
2725
|
* Contains an bucket of collected trace events.
|
|
@@ -2973,6 +2748,14 @@ declare module "inspector" {
|
|
|
2973
2748
|
*/
|
|
2974
2749
|
once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2975
2750
|
|
|
2751
|
+
/**
|
|
2752
|
+
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2753
|
+
* enabled.
|
|
2754
|
+
* It is fired when the Node process finished all code execution and is
|
|
2755
|
+
* waiting for all frontends to disconnect.
|
|
2756
|
+
*/
|
|
2757
|
+
once(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
2758
|
+
|
|
2976
2759
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
2977
2760
|
|
|
2978
2761
|
/**
|
|
@@ -2981,100 +2764,89 @@ declare module "inspector" {
|
|
|
2981
2764
|
prependListener(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
|
|
2982
2765
|
|
|
2983
2766
|
/**
|
|
2984
|
-
* Issued when new
|
|
2767
|
+
* Issued when new execution context is created.
|
|
2985
2768
|
*/
|
|
2986
|
-
prependListener(event: "
|
|
2769
|
+
prependListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
2987
2770
|
|
|
2988
2771
|
/**
|
|
2989
|
-
*
|
|
2772
|
+
* Issued when execution context is destroyed.
|
|
2990
2773
|
*/
|
|
2991
|
-
prependListener(event: "
|
|
2774
|
+
prependListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
2992
2775
|
|
|
2993
2776
|
/**
|
|
2994
|
-
*
|
|
2777
|
+
* Issued when all executionContexts were cleared in browser
|
|
2995
2778
|
*/
|
|
2996
|
-
prependListener(event: "
|
|
2779
|
+
prependListener(event: "Runtime.executionContextsCleared", listener: () => void): this;
|
|
2997
2780
|
|
|
2998
2781
|
/**
|
|
2999
|
-
*
|
|
2782
|
+
* Issued when exception was thrown and unhandled.
|
|
3000
2783
|
*/
|
|
3001
|
-
prependListener(event: "
|
|
2784
|
+
prependListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
3002
2785
|
|
|
3003
2786
|
/**
|
|
3004
|
-
*
|
|
2787
|
+
* Issued when unhandled exception was revoked.
|
|
3005
2788
|
*/
|
|
3006
|
-
prependListener(event: "
|
|
2789
|
+
prependListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
3007
2790
|
|
|
3008
2791
|
/**
|
|
3009
|
-
*
|
|
3010
|
-
* scripts upon enabling debugger.
|
|
2792
|
+
* Issued when console API was called.
|
|
3011
2793
|
*/
|
|
3012
|
-
prependListener(event: "
|
|
3013
|
-
|
|
3014
|
-
prependListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2794
|
+
prependListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
3015
2795
|
|
|
3016
2796
|
/**
|
|
3017
|
-
*
|
|
2797
|
+
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
3018
2798
|
*/
|
|
3019
|
-
prependListener(event: "
|
|
2799
|
+
prependListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
3020
2800
|
|
|
3021
2801
|
/**
|
|
3022
|
-
*
|
|
3023
|
-
* seen object id and corresponding timestamp. If the were changes in the heap since last event
|
|
3024
|
-
* then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
|
|
2802
|
+
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
3025
2803
|
*/
|
|
3026
|
-
prependListener(event: "
|
|
3027
|
-
|
|
3028
|
-
prependListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
3029
|
-
prependListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
3030
|
-
prependListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2804
|
+
prependListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
3031
2805
|
|
|
3032
2806
|
/**
|
|
3033
|
-
*
|
|
2807
|
+
* Fired when virtual machine fails to parse the script.
|
|
3034
2808
|
*/
|
|
3035
|
-
prependListener(event: "
|
|
2809
|
+
prependListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
3036
2810
|
|
|
3037
2811
|
/**
|
|
3038
|
-
*
|
|
3039
|
-
* @experimental
|
|
2812
|
+
* Fired when breakpoint is resolved to an actual script and location.
|
|
3040
2813
|
*/
|
|
3041
|
-
prependListener(event: "
|
|
2814
|
+
prependListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
3042
2815
|
|
|
3043
2816
|
/**
|
|
3044
|
-
*
|
|
2817
|
+
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
3045
2818
|
*/
|
|
3046
|
-
prependListener(event: "
|
|
2819
|
+
prependListener(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
3047
2820
|
|
|
3048
2821
|
/**
|
|
3049
|
-
*
|
|
2822
|
+
* Fired when the virtual machine resumed execution.
|
|
3050
2823
|
*/
|
|
3051
|
-
prependListener(event: "
|
|
2824
|
+
prependListener(event: "Debugger.resumed", listener: () => void): this;
|
|
3052
2825
|
|
|
3053
2826
|
/**
|
|
3054
|
-
* Issued when
|
|
2827
|
+
* Issued when new console message is added.
|
|
3055
2828
|
*/
|
|
3056
|
-
prependListener(event: "
|
|
2829
|
+
prependListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
3057
2830
|
|
|
3058
2831
|
/**
|
|
3059
|
-
*
|
|
2832
|
+
* Sent when new profile recording is started using console.profile() call.
|
|
3060
2833
|
*/
|
|
3061
|
-
prependListener(event: "
|
|
2834
|
+
prependListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
3062
2835
|
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
prependListener(event: "
|
|
2836
|
+
prependListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2837
|
+
prependListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2838
|
+
prependListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
2839
|
+
prependListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
3067
2840
|
|
|
3068
2841
|
/**
|
|
3069
|
-
*
|
|
2842
|
+
* 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.
|
|
3070
2843
|
*/
|
|
3071
|
-
prependListener(event: "
|
|
2844
|
+
prependListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
3072
2845
|
|
|
3073
2846
|
/**
|
|
3074
|
-
*
|
|
3075
|
-
* call).
|
|
2847
|
+
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
3076
2848
|
*/
|
|
3077
|
-
prependListener(event: "
|
|
2849
|
+
prependListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
3078
2850
|
|
|
3079
2851
|
/**
|
|
3080
2852
|
* Contains an bucket of collected trace events.
|
|
@@ -3103,6 +2875,14 @@ declare module "inspector" {
|
|
|
3103
2875
|
*/
|
|
3104
2876
|
prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
3105
2877
|
|
|
2878
|
+
/**
|
|
2879
|
+
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2880
|
+
* enabled.
|
|
2881
|
+
* It is fired when the Node process finished all code execution and is
|
|
2882
|
+
* waiting for all frontends to disconnect.
|
|
2883
|
+
*/
|
|
2884
|
+
prependListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
2885
|
+
|
|
3106
2886
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
3107
2887
|
|
|
3108
2888
|
/**
|
|
@@ -3111,100 +2891,89 @@ declare module "inspector" {
|
|
|
3111
2891
|
prependOnceListener(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
|
|
3112
2892
|
|
|
3113
2893
|
/**
|
|
3114
|
-
* Issued when new
|
|
2894
|
+
* Issued when new execution context is created.
|
|
3115
2895
|
*/
|
|
3116
|
-
prependOnceListener(event: "
|
|
2896
|
+
prependOnceListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
3117
2897
|
|
|
3118
2898
|
/**
|
|
3119
|
-
*
|
|
2899
|
+
* Issued when execution context is destroyed.
|
|
3120
2900
|
*/
|
|
3121
|
-
prependOnceListener(event: "
|
|
2901
|
+
prependOnceListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
3122
2902
|
|
|
3123
2903
|
/**
|
|
3124
|
-
*
|
|
2904
|
+
* Issued when all executionContexts were cleared in browser
|
|
3125
2905
|
*/
|
|
3126
|
-
prependOnceListener(event: "
|
|
2906
|
+
prependOnceListener(event: "Runtime.executionContextsCleared", listener: () => void): this;
|
|
3127
2907
|
|
|
3128
2908
|
/**
|
|
3129
|
-
*
|
|
2909
|
+
* Issued when exception was thrown and unhandled.
|
|
3130
2910
|
*/
|
|
3131
|
-
prependOnceListener(event: "
|
|
2911
|
+
prependOnceListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
3132
2912
|
|
|
3133
2913
|
/**
|
|
3134
|
-
*
|
|
2914
|
+
* Issued when unhandled exception was revoked.
|
|
3135
2915
|
*/
|
|
3136
|
-
prependOnceListener(event: "
|
|
2916
|
+
prependOnceListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
3137
2917
|
|
|
3138
2918
|
/**
|
|
3139
|
-
*
|
|
3140
|
-
* scripts upon enabling debugger.
|
|
2919
|
+
* Issued when console API was called.
|
|
3141
2920
|
*/
|
|
3142
|
-
prependOnceListener(event: "
|
|
3143
|
-
|
|
3144
|
-
prependOnceListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2921
|
+
prependOnceListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
3145
2922
|
|
|
3146
2923
|
/**
|
|
3147
|
-
*
|
|
2924
|
+
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
3148
2925
|
*/
|
|
3149
|
-
prependOnceListener(event: "
|
|
2926
|
+
prependOnceListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
3150
2927
|
|
|
3151
2928
|
/**
|
|
3152
|
-
*
|
|
3153
|
-
* seen object id and corresponding timestamp. If the were changes in the heap since last event
|
|
3154
|
-
* then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
|
|
2929
|
+
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
3155
2930
|
*/
|
|
3156
|
-
prependOnceListener(event: "
|
|
3157
|
-
|
|
3158
|
-
prependOnceListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
3159
|
-
prependOnceListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
3160
|
-
prependOnceListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2931
|
+
prependOnceListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
3161
2932
|
|
|
3162
2933
|
/**
|
|
3163
|
-
*
|
|
2934
|
+
* Fired when virtual machine fails to parse the script.
|
|
3164
2935
|
*/
|
|
3165
|
-
prependOnceListener(event: "
|
|
2936
|
+
prependOnceListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
3166
2937
|
|
|
3167
2938
|
/**
|
|
3168
|
-
*
|
|
3169
|
-
* @experimental
|
|
2939
|
+
* Fired when breakpoint is resolved to an actual script and location.
|
|
3170
2940
|
*/
|
|
3171
|
-
prependOnceListener(event: "
|
|
2941
|
+
prependOnceListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
3172
2942
|
|
|
3173
2943
|
/**
|
|
3174
|
-
*
|
|
2944
|
+
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
3175
2945
|
*/
|
|
3176
|
-
prependOnceListener(event: "
|
|
2946
|
+
prependOnceListener(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
3177
2947
|
|
|
3178
2948
|
/**
|
|
3179
|
-
*
|
|
2949
|
+
* Fired when the virtual machine resumed execution.
|
|
3180
2950
|
*/
|
|
3181
|
-
prependOnceListener(event: "
|
|
2951
|
+
prependOnceListener(event: "Debugger.resumed", listener: () => void): this;
|
|
3182
2952
|
|
|
3183
2953
|
/**
|
|
3184
|
-
* Issued when
|
|
2954
|
+
* Issued when new console message is added.
|
|
3185
2955
|
*/
|
|
3186
|
-
prependOnceListener(event: "
|
|
2956
|
+
prependOnceListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
3187
2957
|
|
|
3188
2958
|
/**
|
|
3189
|
-
*
|
|
2959
|
+
* Sent when new profile recording is started using console.profile() call.
|
|
3190
2960
|
*/
|
|
3191
|
-
prependOnceListener(event: "
|
|
2961
|
+
prependOnceListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
3192
2962
|
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
prependOnceListener(event: "
|
|
2963
|
+
prependOnceListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2964
|
+
prependOnceListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2965
|
+
prependOnceListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
|
|
2966
|
+
prependOnceListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
3197
2967
|
|
|
3198
2968
|
/**
|
|
3199
|
-
*
|
|
2969
|
+
* 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.
|
|
3200
2970
|
*/
|
|
3201
|
-
prependOnceListener(event: "
|
|
2971
|
+
prependOnceListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
3202
2972
|
|
|
3203
2973
|
/**
|
|
3204
|
-
*
|
|
3205
|
-
* call).
|
|
2974
|
+
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
3206
2975
|
*/
|
|
3207
|
-
prependOnceListener(event: "
|
|
2976
|
+
prependOnceListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
3208
2977
|
|
|
3209
2978
|
/**
|
|
3210
2979
|
* Contains an bucket of collected trace events.
|
|
@@ -3232,6 +3001,14 @@ declare module "inspector" {
|
|
|
3232
3001
|
* (session ID is provided in attachedToWorker notification).
|
|
3233
3002
|
*/
|
|
3234
3003
|
prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
3004
|
+
|
|
3005
|
+
/**
|
|
3006
|
+
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
3007
|
+
* enabled.
|
|
3008
|
+
* It is fired when the Node process finished all code execution and is
|
|
3009
|
+
* waiting for all frontends to disconnect.
|
|
3010
|
+
*/
|
|
3011
|
+
prependOnceListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
3235
3012
|
}
|
|
3236
3013
|
|
|
3237
3014
|
// Top Level API
|