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