@idlebox/stripe-node-types 24.0.14 → 24.0.15

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.
Files changed (85) hide show
  1. package/README.md +1 -1
  2. package/assert/strict.d.ts +98 -1
  3. package/assert.d.ts +147 -248
  4. package/async_hooks.d.ts +5 -5
  5. package/buffer.buffer.d.ts +9 -6
  6. package/buffer.d.ts +49 -169
  7. package/child_process.d.ts +102 -223
  8. package/cluster.d.ts +236 -329
  9. package/console.d.ts +45 -346
  10. package/constants.d.ts +0 -1
  11. package/crypto.d.ts +698 -1149
  12. package/dgram.d.ts +15 -50
  13. package/diagnostics_channel.d.ts +1 -3
  14. package/dns.d.ts +135 -131
  15. package/domain.d.ts +10 -14
  16. package/events.d.ts +846 -722
  17. package/fs/promises.d.ts +102 -53
  18. package/fs.d.ts +714 -484
  19. package/globals.d.ts +130 -347
  20. package/globals.typedarray.d.ts +79 -0
  21. package/http.d.ts +343 -246
  22. package/http2.d.ts +563 -711
  23. package/https.d.ts +70 -216
  24. package/index.d.ts +24 -3
  25. package/inspector/promises.d.ts +54 -0
  26. package/inspector.d.ts +167 -3938
  27. package/inspector.generated.d.ts +4242 -0
  28. package/module.d.ts +45 -95
  29. package/net.d.ts +87 -186
  30. package/os.d.ts +17 -6
  31. package/package.json +3 -8
  32. package/path/posix.d.ts +20 -0
  33. package/path/win32.d.ts +20 -0
  34. package/path.d.ts +117 -122
  35. package/perf_hooks.d.ts +295 -644
  36. package/process.d.ts +177 -138
  37. package/punycode.d.ts +2 -2
  38. package/querystring.d.ts +1 -1
  39. package/quic.d.ts +926 -0
  40. package/readline/promises.d.ts +1 -1
  41. package/readline.d.ts +65 -118
  42. package/repl.d.ts +83 -96
  43. package/sea.d.ts +10 -1
  44. package/sqlite.d.ts +262 -13
  45. package/stream/consumers.d.ts +7 -7
  46. package/stream/promises.d.ts +133 -12
  47. package/stream/web.d.ts +173 -495
  48. package/stream.d.ts +593 -490
  49. package/string_decoder.d.ts +3 -3
  50. package/test/reporters.d.ts +112 -0
  51. package/test.d.ts +223 -199
  52. package/timers/promises.d.ts +1 -1
  53. package/timers.d.ts +1 -129
  54. package/tls.d.ts +148 -163
  55. package/trace_events.d.ts +6 -6
  56. package/ts5.6/buffer.buffer.d.ts +10 -8
  57. package/ts5.6/globals.typedarray.d.ts +16 -0
  58. package/ts5.6/index.d.ts +24 -3
  59. package/ts5.7/index.d.ts +24 -3
  60. package/tty.d.ts +55 -13
  61. package/url.d.ts +92 -587
  62. package/util/types.d.ts +571 -0
  63. package/util.d.ts +143 -792
  64. package/v8.d.ts +67 -7
  65. package/vm.d.ts +252 -108
  66. package/wasi.d.ts +23 -2
  67. package/web-globals/abortcontroller.d.ts +75 -0
  68. package/web-globals/blob.d.ts +39 -0
  69. package/{ts5.1/compatibility/disposable.d.ts → web-globals/console.d.ts} +6 -9
  70. package/web-globals/crypto.d.ts +55 -0
  71. package/web-globals/domexception.d.ts +84 -0
  72. package/web-globals/encoding.d.ts +27 -0
  73. package/{dom-events.d.ts → web-globals/events.d.ts} +57 -50
  74. package/web-globals/fetch.d.ts +70 -0
  75. package/web-globals/importmeta.d.ts +29 -0
  76. package/web-globals/messaging.d.ts +39 -0
  77. package/web-globals/navigator.d.ts +41 -0
  78. package/web-globals/performance.d.ts +61 -0
  79. package/web-globals/storage.d.ts +40 -0
  80. package/web-globals/streams.d.ts +131 -0
  81. package/web-globals/timers.d.ts +60 -0
  82. package/web-globals/url.d.ts +40 -0
  83. package/worker_threads.d.ts +291 -349
  84. package/zlib.d.ts +44 -94
  85. package/ts5.1/index.d.ts +0 -115
package/inspector.d.ts CHANGED
@@ -13,1876 +13,14 @@
13
13
  ******************************************************************************/
14
14
 
15
15
 
16
- // These definitions are automatically generated by the generate-inspector script.
17
- // Do not edit this file directly.
18
- // See scripts/generate-inspector/README.md for information on how to update the protocol definitions.
19
- // Changes to the module itself should be added to the generator template (scripts/generate-inspector/inspector.d.ts.template).
20
-
21
- /**
22
- * The `node:inspector` module provides an API for interacting with the V8
23
- * inspector.
24
- * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/inspector.js)
25
- */
26
-
27
16
  /**
28
17
  * The `node:inspector` module provides an API for interacting with the V8
29
18
  * inspector.
30
- */
31
-
32
- /**
33
- * The `node:inspector/promises` module provides an API for interacting with the V8
34
- * inspector.
35
- * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/inspector/promises.js)
36
- * @since v19.0.0
37
- */
38
-
39
- /**
40
- * The `node:inspector/promises` module provides an API for interacting with the V8
41
- * inspector.
42
- * @since v19.0.0
19
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/inspector.js)
43
20
  */
44
21
 
45
22
  declare module "node:inspector" {
46
- import EventEmitter = require('node:events');
47
-
48
- interface InspectorNotification<T> {
49
- method: string;
50
- params: T;
51
- }
52
-
53
- namespace Schema {
54
- /**
55
- * Description of the protocol domain.
56
- */
57
- interface Domain {
58
- /**
59
- * Domain name.
60
- */
61
- name: string;
62
- /**
63
- * Domain version.
64
- */
65
- version: string;
66
- }
67
- interface GetDomainsReturnType {
68
- /**
69
- * List of supported domains.
70
- */
71
- domains: Domain[];
72
- }
73
- }
74
- namespace Runtime {
75
- /**
76
- * Unique script identifier.
77
- */
78
- type ScriptId = string;
79
- /**
80
- * Unique object identifier.
81
- */
82
- type RemoteObjectId = string;
83
- /**
84
- * Primitive value which cannot be JSON-stringified.
85
- */
86
- type UnserializableValue = string;
87
- /**
88
- * Mirror object referencing original JavaScript object.
89
- */
90
- interface RemoteObject {
91
- /**
92
- * Object type.
93
- */
94
- type: string;
95
- /**
96
- * Object subtype hint. Specified for <code>object</code> type values only.
97
- */
98
- subtype?: string | undefined;
99
- /**
100
- * Object class (constructor) name. Specified for <code>object</code> type values only.
101
- */
102
- className?: string | undefined;
103
- /**
104
- * Remote object value in case of primitive values or JSON values (if it was requested).
105
- */
106
- value?: any;
107
- /**
108
- * Primitive value which can not be JSON-stringified does not have <code>value</code>, but gets this property.
109
- */
110
- unserializableValue?: UnserializableValue | undefined;
111
- /**
112
- * String representation of the object.
113
- */
114
- description?: string | undefined;
115
- /**
116
- * Unique object identifier (for non-primitive values).
117
- */
118
- objectId?: RemoteObjectId | undefined;
119
- /**
120
- * Preview containing abbreviated property values. Specified for <code>object</code> type values only.
121
- * @experimental
122
- */
123
- preview?: ObjectPreview | undefined;
124
- /**
125
- * @experimental
126
- */
127
- customPreview?: CustomPreview | undefined;
128
- }
129
- /**
130
- * @experimental
131
- */
132
- interface CustomPreview {
133
- header: string;
134
- hasBody: boolean;
135
- formatterObjectId: RemoteObjectId;
136
- bindRemoteObjectFunctionId: RemoteObjectId;
137
- configObjectId?: RemoteObjectId | undefined;
138
- }
139
- /**
140
- * Object containing abbreviated remote object value.
141
- * @experimental
142
- */
143
- interface ObjectPreview {
144
- /**
145
- * Object type.
146
- */
147
- type: string;
148
- /**
149
- * Object subtype hint. Specified for <code>object</code> type values only.
150
- */
151
- subtype?: string | undefined;
152
- /**
153
- * String representation of the object.
154
- */
155
- description?: string | undefined;
156
- /**
157
- * True iff some of the properties or entries of the original object did not fit.
158
- */
159
- overflow: boolean;
160
- /**
161
- * List of the properties.
162
- */
163
- properties: PropertyPreview[];
164
- /**
165
- * List of the entries. Specified for <code>map</code> and <code>set</code> subtype values only.
166
- */
167
- entries?: EntryPreview[] | undefined;
168
- }
169
- /**
170
- * @experimental
171
- */
172
- interface PropertyPreview {
173
- /**
174
- * Property name.
175
- */
176
- name: string;
177
- /**
178
- * Object type. Accessor means that the property itself is an accessor property.
179
- */
180
- type: string;
181
- /**
182
- * User-friendly property value string.
183
- */
184
- value?: string | undefined;
185
- /**
186
- * Nested value preview.
187
- */
188
- valuePreview?: ObjectPreview | undefined;
189
- /**
190
- * Object subtype hint. Specified for <code>object</code> type values only.
191
- */
192
- subtype?: string | undefined;
193
- }
194
- /**
195
- * @experimental
196
- */
197
- interface EntryPreview {
198
- /**
199
- * Preview of the key. Specified for map-like collection entries.
200
- */
201
- key?: ObjectPreview | undefined;
202
- /**
203
- * Preview of the value.
204
- */
205
- value: ObjectPreview;
206
- }
207
- /**
208
- * Object property descriptor.
209
- */
210
- interface PropertyDescriptor {
211
- /**
212
- * Property name or symbol description.
213
- */
214
- name: string;
215
- /**
216
- * The value associated with the property.
217
- */
218
- value?: RemoteObject | undefined;
219
- /**
220
- * True if the value associated with the property may be changed (data descriptors only).
221
- */
222
- writable?: boolean | undefined;
223
- /**
224
- * A function which serves as a getter for the property, or <code>undefined</code> if there is no getter (accessor descriptors only).
225
- */
226
- get?: RemoteObject | undefined;
227
- /**
228
- * A function which serves as a setter for the property, or <code>undefined</code> if there is no setter (accessor descriptors only).
229
- */
230
- set?: RemoteObject | undefined;
231
- /**
232
- * True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
233
- */
234
- configurable: boolean;
235
- /**
236
- * True if this property shows up during enumeration of the properties on the corresponding object.
237
- */
238
- enumerable: boolean;
239
- /**
240
- * True if the result was thrown during the evaluation.
241
- */
242
- wasThrown?: boolean | undefined;
243
- /**
244
- * True if the property is owned for the object.
245
- */
246
- isOwn?: boolean | undefined;
247
- /**
248
- * Property symbol object, if the property is of the <code>symbol</code> type.
249
- */
250
- symbol?: RemoteObject | undefined;
251
- }
252
- /**
253
- * Object internal property descriptor. This property isn't normally visible in JavaScript code.
254
- */
255
- interface InternalPropertyDescriptor {
256
- /**
257
- * Conventional property name.
258
- */
259
- name: string;
260
- /**
261
- * The value associated with the property.
262
- */
263
- value?: RemoteObject | undefined;
264
- }
265
- /**
266
- * 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.
267
- */
268
- interface CallArgument {
269
- /**
270
- * Primitive value or serializable javascript object.
271
- */
272
- value?: any;
273
- /**
274
- * Primitive value which can not be JSON-stringified.
275
- */
276
- unserializableValue?: UnserializableValue | undefined;
277
- /**
278
- * Remote object handle.
279
- */
280
- objectId?: RemoteObjectId | undefined;
281
- }
282
- /**
283
- * Id of an execution context.
284
- */
285
- type ExecutionContextId = number;
286
- /**
287
- * Description of an isolated world.
288
- */
289
- interface ExecutionContextDescription {
290
- /**
291
- * Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed.
292
- */
293
- id: ExecutionContextId;
294
- /**
295
- * Execution context origin.
296
- */
297
- origin: string;
298
- /**
299
- * Human readable name describing given context.
300
- */
301
- name: string;
302
- /**
303
- * Embedder-specific auxiliary data.
304
- */
305
- auxData?: {} | undefined;
306
- }
307
- /**
308
- * Detailed information about exception (or error) that was thrown during script compilation or execution.
309
- */
310
- interface ExceptionDetails {
311
- /**
312
- * Exception id.
313
- */
314
- exceptionId: number;
315
- /**
316
- * Exception text, which should be used together with exception object when available.
317
- */
318
- text: string;
319
- /**
320
- * Line number of the exception location (0-based).
321
- */
322
- lineNumber: number;
323
- /**
324
- * Column number of the exception location (0-based).
325
- */
326
- columnNumber: number;
327
- /**
328
- * Script ID of the exception location.
329
- */
330
- scriptId?: ScriptId | undefined;
331
- /**
332
- * URL of the exception location, to be used when the script was not reported.
333
- */
334
- url?: string | undefined;
335
- /**
336
- * JavaScript stack trace if available.
337
- */
338
- stackTrace?: StackTrace | undefined;
339
- /**
340
- * Exception object if available.
341
- */
342
- exception?: RemoteObject | undefined;
343
- /**
344
- * Identifier of the context where exception happened.
345
- */
346
- executionContextId?: ExecutionContextId | undefined;
347
- }
348
- /**
349
- * Number of milliseconds since epoch.
350
- */
351
- type Timestamp = number;
352
- /**
353
- * Stack entry for runtime errors and assertions.
354
- */
355
- interface CallFrame {
356
- /**
357
- * JavaScript function name.
358
- */
359
- functionName: string;
360
- /**
361
- * JavaScript script id.
362
- */
363
- scriptId: ScriptId;
364
- /**
365
- * JavaScript script name or url.
366
- */
367
- url: string;
368
- /**
369
- * JavaScript script line number (0-based).
370
- */
371
- lineNumber: number;
372
- /**
373
- * JavaScript script column number (0-based).
374
- */
375
- columnNumber: number;
376
- }
377
- /**
378
- * Call frames for assertions or error messages.
379
- */
380
- interface StackTrace {
381
- /**
382
- * String label of this stack trace. For async traces this may be a name of the function that initiated the async call.
383
- */
384
- description?: string | undefined;
385
- /**
386
- * JavaScript function name.
387
- */
388
- callFrames: CallFrame[];
389
- /**
390
- * Asynchronous JavaScript stack trace that preceded this stack, if available.
391
- */
392
- parent?: StackTrace | undefined;
393
- /**
394
- * Asynchronous JavaScript stack trace that preceded this stack, if available.
395
- * @experimental
396
- */
397
- parentId?: StackTraceId | undefined;
398
- }
399
- /**
400
- * Unique identifier of current debugger.
401
- * @experimental
402
- */
403
- type UniqueDebuggerId = string;
404
- /**
405
- * If <code>debuggerId</code> is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See <code>Runtime.StackTrace</code> and <code>Debugger.paused</code> for usages.
406
- * @experimental
407
- */
408
- interface StackTraceId {
409
- id: string;
410
- debuggerId?: UniqueDebuggerId | undefined;
411
- }
412
- interface EvaluateParameterType {
413
- /**
414
- * Expression to evaluate.
415
- */
416
- expression: string;
417
- /**
418
- * Symbolic group name that can be used to release multiple objects.
419
- */
420
- objectGroup?: string | undefined;
421
- /**
422
- * Determines whether Command Line API should be available during the evaluation.
423
- */
424
- includeCommandLineAPI?: boolean | undefined;
425
- /**
426
- * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
427
- */
428
- silent?: boolean | undefined;
429
- /**
430
- * Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
431
- */
432
- contextId?: ExecutionContextId | undefined;
433
- /**
434
- * Whether the result is expected to be a JSON object that should be sent by value.
435
- */
436
- returnByValue?: boolean | undefined;
437
- /**
438
- * Whether preview should be generated for the result.
439
- * @experimental
440
- */
441
- generatePreview?: boolean | undefined;
442
- /**
443
- * Whether execution should be treated as initiated by user in the UI.
444
- */
445
- userGesture?: boolean | undefined;
446
- /**
447
- * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
448
- */
449
- awaitPromise?: boolean | undefined;
450
- }
451
- interface AwaitPromiseParameterType {
452
- /**
453
- * Identifier of the promise.
454
- */
455
- promiseObjectId: RemoteObjectId;
456
- /**
457
- * Whether the result is expected to be a JSON object that should be sent by value.
458
- */
459
- returnByValue?: boolean | undefined;
460
- /**
461
- * Whether preview should be generated for the result.
462
- */
463
- generatePreview?: boolean | undefined;
464
- }
465
- interface CallFunctionOnParameterType {
466
- /**
467
- * Declaration of the function to call.
468
- */
469
- functionDeclaration: string;
470
- /**
471
- * Identifier of the object to call function on. Either objectId or executionContextId should be specified.
472
- */
473
- objectId?: RemoteObjectId | undefined;
474
- /**
475
- * Call arguments. All call arguments must belong to the same JavaScript world as the target object.
476
- */
477
- arguments?: CallArgument[] | undefined;
478
- /**
479
- * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
480
- */
481
- silent?: boolean | undefined;
482
- /**
483
- * Whether the result is expected to be a JSON object which should be sent by value.
484
- */
485
- returnByValue?: boolean | undefined;
486
- /**
487
- * Whether preview should be generated for the result.
488
- * @experimental
489
- */
490
- generatePreview?: boolean | undefined;
491
- /**
492
- * Whether execution should be treated as initiated by user in the UI.
493
- */
494
- userGesture?: boolean | undefined;
495
- /**
496
- * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
497
- */
498
- awaitPromise?: boolean | undefined;
499
- /**
500
- * Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.
501
- */
502
- executionContextId?: ExecutionContextId | undefined;
503
- /**
504
- * Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object.
505
- */
506
- objectGroup?: string | undefined;
507
- }
508
- interface GetPropertiesParameterType {
509
- /**
510
- * Identifier of the object to return properties for.
511
- */
512
- objectId: RemoteObjectId;
513
- /**
514
- * If true, returns properties belonging only to the element itself, not to its prototype chain.
515
- */
516
- ownProperties?: boolean | undefined;
517
- /**
518
- * If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.
519
- * @experimental
520
- */
521
- accessorPropertiesOnly?: boolean | undefined;
522
- /**
523
- * Whether preview should be generated for the results.
524
- * @experimental
525
- */
526
- generatePreview?: boolean | undefined;
527
- }
528
- interface ReleaseObjectParameterType {
529
- /**
530
- * Identifier of the object to release.
531
- */
532
- objectId: RemoteObjectId;
533
- }
534
- interface ReleaseObjectGroupParameterType {
535
- /**
536
- * Symbolic object group name.
537
- */
538
- objectGroup: string;
539
- }
540
- interface SetCustomObjectFormatterEnabledParameterType {
541
- enabled: boolean;
542
- }
543
- interface CompileScriptParameterType {
544
- /**
545
- * Expression to compile.
546
- */
547
- expression: string;
548
- /**
549
- * Source url to be set for the script.
550
- */
551
- sourceURL: string;
552
- /**
553
- * Specifies whether the compiled script should be persisted.
554
- */
555
- persistScript: boolean;
556
- /**
557
- * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
558
- */
559
- executionContextId?: ExecutionContextId | undefined;
560
- }
561
- interface RunScriptParameterType {
562
- /**
563
- * Id of the script to run.
564
- */
565
- scriptId: ScriptId;
566
- /**
567
- * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
568
- */
569
- executionContextId?: ExecutionContextId | undefined;
570
- /**
571
- * Symbolic group name that can be used to release multiple objects.
572
- */
573
- objectGroup?: string | undefined;
574
- /**
575
- * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
576
- */
577
- silent?: boolean | undefined;
578
- /**
579
- * Determines whether Command Line API should be available during the evaluation.
580
- */
581
- includeCommandLineAPI?: boolean | undefined;
582
- /**
583
- * Whether the result is expected to be a JSON object which should be sent by value.
584
- */
585
- returnByValue?: boolean | undefined;
586
- /**
587
- * Whether preview should be generated for the result.
588
- */
589
- generatePreview?: boolean | undefined;
590
- /**
591
- * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
592
- */
593
- awaitPromise?: boolean | undefined;
594
- }
595
- interface QueryObjectsParameterType {
596
- /**
597
- * Identifier of the prototype to return objects for.
598
- */
599
- prototypeObjectId: RemoteObjectId;
600
- }
601
- interface GlobalLexicalScopeNamesParameterType {
602
- /**
603
- * Specifies in which execution context to lookup global scope variables.
604
- */
605
- executionContextId?: ExecutionContextId | undefined;
606
- }
607
- interface EvaluateReturnType {
608
- /**
609
- * Evaluation result.
610
- */
611
- result: RemoteObject;
612
- /**
613
- * Exception details.
614
- */
615
- exceptionDetails?: ExceptionDetails | undefined;
616
- }
617
- interface AwaitPromiseReturnType {
618
- /**
619
- * Promise result. Will contain rejected value if promise was rejected.
620
- */
621
- result: RemoteObject;
622
- /**
623
- * Exception details if stack strace is available.
624
- */
625
- exceptionDetails?: ExceptionDetails | undefined;
626
- }
627
- interface CallFunctionOnReturnType {
628
- /**
629
- * Call result.
630
- */
631
- result: RemoteObject;
632
- /**
633
- * Exception details.
634
- */
635
- exceptionDetails?: ExceptionDetails | undefined;
636
- }
637
- interface GetPropertiesReturnType {
638
- /**
639
- * Object properties.
640
- */
641
- result: PropertyDescriptor[];
642
- /**
643
- * Internal object properties (only of the element itself).
644
- */
645
- internalProperties?: InternalPropertyDescriptor[] | undefined;
646
- /**
647
- * Exception details.
648
- */
649
- exceptionDetails?: ExceptionDetails | undefined;
650
- }
651
- interface CompileScriptReturnType {
652
- /**
653
- * Id of the script.
654
- */
655
- scriptId?: ScriptId | undefined;
656
- /**
657
- * Exception details.
658
- */
659
- exceptionDetails?: ExceptionDetails | undefined;
660
- }
661
- interface RunScriptReturnType {
662
- /**
663
- * Run result.
664
- */
665
- result: RemoteObject;
666
- /**
667
- * Exception details.
668
- */
669
- exceptionDetails?: ExceptionDetails | undefined;
670
- }
671
- interface QueryObjectsReturnType {
672
- /**
673
- * Array with objects.
674
- */
675
- objects: RemoteObject;
676
- }
677
- interface GlobalLexicalScopeNamesReturnType {
678
- names: string[];
679
- }
680
- interface ExecutionContextCreatedEventDataType {
681
- /**
682
- * A newly created execution context.
683
- */
684
- context: ExecutionContextDescription;
685
- }
686
- interface ExecutionContextDestroyedEventDataType {
687
- /**
688
- * Id of the destroyed context
689
- */
690
- executionContextId: ExecutionContextId;
691
- }
692
- interface ExceptionThrownEventDataType {
693
- /**
694
- * Timestamp of the exception.
695
- */
696
- timestamp: Timestamp;
697
- exceptionDetails: ExceptionDetails;
698
- }
699
- interface ExceptionRevokedEventDataType {
700
- /**
701
- * Reason describing why exception was revoked.
702
- */
703
- reason: string;
704
- /**
705
- * The id of revoked exception, as reported in <code>exceptionThrown</code>.
706
- */
707
- exceptionId: number;
708
- }
709
- interface ConsoleAPICalledEventDataType {
710
- /**
711
- * Type of the call.
712
- */
713
- type: string;
714
- /**
715
- * Call arguments.
716
- */
717
- args: RemoteObject[];
718
- /**
719
- * Identifier of the context where the call was made.
720
- */
721
- executionContextId: ExecutionContextId;
722
- /**
723
- * Call timestamp.
724
- */
725
- timestamp: Timestamp;
726
- /**
727
- * Stack trace captured when the call was made.
728
- */
729
- stackTrace?: StackTrace | undefined;
730
- /**
731
- * Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.
732
- * @experimental
733
- */
734
- context?: string | undefined;
735
- }
736
- interface InspectRequestedEventDataType {
737
- object: RemoteObject;
738
- hints: {};
739
- }
740
- }
741
- namespace Debugger {
742
- /**
743
- * Breakpoint identifier.
744
- */
745
- type BreakpointId = string;
746
- /**
747
- * Call frame identifier.
748
- */
749
- type CallFrameId = string;
750
- /**
751
- * Location in the source code.
752
- */
753
- interface Location {
754
- /**
755
- * Script identifier as reported in the <code>Debugger.scriptParsed</code>.
756
- */
757
- scriptId: Runtime.ScriptId;
758
- /**
759
- * Line number in the script (0-based).
760
- */
761
- lineNumber: number;
762
- /**
763
- * Column number in the script (0-based).
764
- */
765
- columnNumber?: number | undefined;
766
- }
767
- /**
768
- * Location in the source code.
769
- * @experimental
770
- */
771
- interface ScriptPosition {
772
- lineNumber: number;
773
- columnNumber: number;
774
- }
775
- /**
776
- * JavaScript call frame. Array of call frames form the call stack.
777
- */
778
- interface CallFrame {
779
- /**
780
- * Call frame identifier. This identifier is only valid while the virtual machine is paused.
781
- */
782
- callFrameId: CallFrameId;
783
- /**
784
- * Name of the JavaScript function called on this call frame.
785
- */
786
- functionName: string;
787
- /**
788
- * Location in the source code.
789
- */
790
- functionLocation?: Location | undefined;
791
- /**
792
- * Location in the source code.
793
- */
794
- location: Location;
795
- /**
796
- * JavaScript script name or url.
797
- */
798
- url: string;
799
- /**
800
- * Scope chain for this call frame.
801
- */
802
- scopeChain: Scope[];
803
- /**
804
- * <code>this</code> object for this call frame.
805
- */
806
- this: Runtime.RemoteObject;
807
- /**
808
- * The value being returned, if the function is at return point.
809
- */
810
- returnValue?: Runtime.RemoteObject | undefined;
811
- }
812
- /**
813
- * Scope description.
814
- */
815
- interface Scope {
816
- /**
817
- * Scope type.
818
- */
819
- type: string;
820
- /**
821
- * Object representing the scope. For <code>global</code> and <code>with</code> scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.
822
- */
823
- object: Runtime.RemoteObject;
824
- name?: string | undefined;
825
- /**
826
- * Location in the source code where scope starts
827
- */
828
- startLocation?: Location | undefined;
829
- /**
830
- * Location in the source code where scope ends
831
- */
832
- endLocation?: Location | undefined;
833
- }
834
- /**
835
- * Search match for resource.
836
- */
837
- interface SearchMatch {
838
- /**
839
- * Line number in resource content.
840
- */
841
- lineNumber: number;
842
- /**
843
- * Line with match content.
844
- */
845
- lineContent: string;
846
- }
847
- interface BreakLocation {
848
- /**
849
- * Script identifier as reported in the <code>Debugger.scriptParsed</code>.
850
- */
851
- scriptId: Runtime.ScriptId;
852
- /**
853
- * Line number in the script (0-based).
854
- */
855
- lineNumber: number;
856
- /**
857
- * Column number in the script (0-based).
858
- */
859
- columnNumber?: number | undefined;
860
- type?: string | undefined;
861
- }
862
- interface SetBreakpointsActiveParameterType {
863
- /**
864
- * New value for breakpoints active state.
865
- */
866
- active: boolean;
867
- }
868
- interface SetSkipAllPausesParameterType {
869
- /**
870
- * New value for skip pauses state.
871
- */
872
- skip: boolean;
873
- }
874
- interface SetBreakpointByUrlParameterType {
875
- /**
876
- * Line number to set breakpoint at.
877
- */
878
- lineNumber: number;
879
- /**
880
- * URL of the resources to set breakpoint on.
881
- */
882
- url?: string | undefined;
883
- /**
884
- * Regex pattern for the URLs of the resources to set breakpoints on. Either <code>url</code> or <code>urlRegex</code> must be specified.
885
- */
886
- urlRegex?: string | undefined;
887
- /**
888
- * Script hash of the resources to set breakpoint on.
889
- */
890
- scriptHash?: string | undefined;
891
- /**
892
- * Offset in the line to set breakpoint at.
893
- */
894
- columnNumber?: number | undefined;
895
- /**
896
- * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
897
- */
898
- condition?: string | undefined;
899
- }
900
- interface SetBreakpointParameterType {
901
- /**
902
- * Location to set breakpoint in.
903
- */
904
- location: Location;
905
- /**
906
- * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
907
- */
908
- condition?: string | undefined;
909
- }
910
- interface RemoveBreakpointParameterType {
911
- breakpointId: BreakpointId;
912
- }
913
- interface GetPossibleBreakpointsParameterType {
914
- /**
915
- * Start of range to search possible breakpoint locations in.
916
- */
917
- start: Location;
918
- /**
919
- * End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range.
920
- */
921
- end?: Location | undefined;
922
- /**
923
- * Only consider locations which are in the same (non-nested) function as start.
924
- */
925
- restrictToFunction?: boolean | undefined;
926
- }
927
- interface ContinueToLocationParameterType {
928
- /**
929
- * Location to continue to.
930
- */
931
- location: Location;
932
- targetCallFrames?: string | undefined;
933
- }
934
- interface PauseOnAsyncCallParameterType {
935
- /**
936
- * Debugger will pause when async call with given stack trace is started.
937
- */
938
- parentStackTraceId: Runtime.StackTraceId;
939
- }
940
- interface StepIntoParameterType {
941
- /**
942
- * Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause.
943
- * @experimental
944
- */
945
- breakOnAsyncCall?: boolean | undefined;
946
- }
947
- interface GetStackTraceParameterType {
948
- stackTraceId: Runtime.StackTraceId;
949
- }
950
- interface SearchInContentParameterType {
951
- /**
952
- * Id of the script to search in.
953
- */
954
- scriptId: Runtime.ScriptId;
955
- /**
956
- * String to search for.
957
- */
958
- query: string;
959
- /**
960
- * If true, search is case sensitive.
961
- */
962
- caseSensitive?: boolean | undefined;
963
- /**
964
- * If true, treats string parameter as regex.
965
- */
966
- isRegex?: boolean | undefined;
967
- }
968
- interface SetScriptSourceParameterType {
969
- /**
970
- * Id of the script to edit.
971
- */
972
- scriptId: Runtime.ScriptId;
973
- /**
974
- * New content of the script.
975
- */
976
- scriptSource: string;
977
- /**
978
- * If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.
979
- */
980
- dryRun?: boolean | undefined;
981
- }
982
- interface RestartFrameParameterType {
983
- /**
984
- * Call frame identifier to evaluate on.
985
- */
986
- callFrameId: CallFrameId;
987
- }
988
- interface GetScriptSourceParameterType {
989
- /**
990
- * Id of the script to get source for.
991
- */
992
- scriptId: Runtime.ScriptId;
993
- }
994
- interface SetPauseOnExceptionsParameterType {
995
- /**
996
- * Pause on exceptions mode.
997
- */
998
- state: string;
999
- }
1000
- interface EvaluateOnCallFrameParameterType {
1001
- /**
1002
- * Call frame identifier to evaluate on.
1003
- */
1004
- callFrameId: CallFrameId;
1005
- /**
1006
- * Expression to evaluate.
1007
- */
1008
- expression: string;
1009
- /**
1010
- * String object group name to put result into (allows rapid releasing resulting object handles using <code>releaseObjectGroup</code>).
1011
- */
1012
- objectGroup?: string | undefined;
1013
- /**
1014
- * Specifies whether command line API should be available to the evaluated expression, defaults to false.
1015
- */
1016
- includeCommandLineAPI?: boolean | undefined;
1017
- /**
1018
- * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
1019
- */
1020
- silent?: boolean | undefined;
1021
- /**
1022
- * Whether the result is expected to be a JSON object that should be sent by value.
1023
- */
1024
- returnByValue?: boolean | undefined;
1025
- /**
1026
- * Whether preview should be generated for the result.
1027
- * @experimental
1028
- */
1029
- generatePreview?: boolean | undefined;
1030
- /**
1031
- * Whether to throw an exception if side effect cannot be ruled out during evaluation.
1032
- */
1033
- throwOnSideEffect?: boolean | undefined;
1034
- }
1035
- interface SetVariableValueParameterType {
1036
- /**
1037
- * 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.
1038
- */
1039
- scopeNumber: number;
1040
- /**
1041
- * Variable name.
1042
- */
1043
- variableName: string;
1044
- /**
1045
- * New variable value.
1046
- */
1047
- newValue: Runtime.CallArgument;
1048
- /**
1049
- * Id of callframe that holds variable.
1050
- */
1051
- callFrameId: CallFrameId;
1052
- }
1053
- interface SetReturnValueParameterType {
1054
- /**
1055
- * New return value.
1056
- */
1057
- newValue: Runtime.CallArgument;
1058
- }
1059
- interface SetAsyncCallStackDepthParameterType {
1060
- /**
1061
- * Maximum depth of async call stacks. Setting to <code>0</code> will effectively disable collecting async call stacks (default).
1062
- */
1063
- maxDepth: number;
1064
- }
1065
- interface SetBlackboxPatternsParameterType {
1066
- /**
1067
- * Array of regexps that will be used to check script url for blackbox state.
1068
- */
1069
- patterns: string[];
1070
- }
1071
- interface SetBlackboxedRangesParameterType {
1072
- /**
1073
- * Id of the script.
1074
- */
1075
- scriptId: Runtime.ScriptId;
1076
- positions: ScriptPosition[];
1077
- }
1078
- interface EnableReturnType {
1079
- /**
1080
- * Unique identifier of the debugger.
1081
- * @experimental
1082
- */
1083
- debuggerId: Runtime.UniqueDebuggerId;
1084
- }
1085
- interface SetBreakpointByUrlReturnType {
1086
- /**
1087
- * Id of the created breakpoint for further reference.
1088
- */
1089
- breakpointId: BreakpointId;
1090
- /**
1091
- * List of the locations this breakpoint resolved into upon addition.
1092
- */
1093
- locations: Location[];
1094
- }
1095
- interface SetBreakpointReturnType {
1096
- /**
1097
- * Id of the created breakpoint for further reference.
1098
- */
1099
- breakpointId: BreakpointId;
1100
- /**
1101
- * Location this breakpoint resolved into.
1102
- */
1103
- actualLocation: Location;
1104
- }
1105
- interface GetPossibleBreakpointsReturnType {
1106
- /**
1107
- * List of the possible breakpoint locations.
1108
- */
1109
- locations: BreakLocation[];
1110
- }
1111
- interface GetStackTraceReturnType {
1112
- stackTrace: Runtime.StackTrace;
1113
- }
1114
- interface SearchInContentReturnType {
1115
- /**
1116
- * List of search matches.
1117
- */
1118
- result: SearchMatch[];
1119
- }
1120
- interface SetScriptSourceReturnType {
1121
- /**
1122
- * New stack trace in case editing has happened while VM was stopped.
1123
- */
1124
- callFrames?: CallFrame[] | undefined;
1125
- /**
1126
- * Whether current call stack was modified after applying the changes.
1127
- */
1128
- stackChanged?: boolean | undefined;
1129
- /**
1130
- * Async stack trace, if any.
1131
- */
1132
- asyncStackTrace?: Runtime.StackTrace | undefined;
1133
- /**
1134
- * Async stack trace, if any.
1135
- * @experimental
1136
- */
1137
- asyncStackTraceId?: Runtime.StackTraceId | undefined;
1138
- /**
1139
- * Exception details if any.
1140
- */
1141
- exceptionDetails?: Runtime.ExceptionDetails | undefined;
1142
- }
1143
- interface RestartFrameReturnType {
1144
- /**
1145
- * New stack trace.
1146
- */
1147
- callFrames: CallFrame[];
1148
- /**
1149
- * Async stack trace, if any.
1150
- */
1151
- asyncStackTrace?: Runtime.StackTrace | undefined;
1152
- /**
1153
- * Async stack trace, if any.
1154
- * @experimental
1155
- */
1156
- asyncStackTraceId?: Runtime.StackTraceId | undefined;
1157
- }
1158
- interface GetScriptSourceReturnType {
1159
- /**
1160
- * Script source.
1161
- */
1162
- scriptSource: string;
1163
- }
1164
- interface EvaluateOnCallFrameReturnType {
1165
- /**
1166
- * Object wrapper for the evaluation result.
1167
- */
1168
- result: Runtime.RemoteObject;
1169
- /**
1170
- * Exception details.
1171
- */
1172
- exceptionDetails?: Runtime.ExceptionDetails | undefined;
1173
- }
1174
- interface ScriptParsedEventDataType {
1175
- /**
1176
- * Identifier of the script parsed.
1177
- */
1178
- scriptId: Runtime.ScriptId;
1179
- /**
1180
- * URL or name of the script parsed (if any).
1181
- */
1182
- url: string;
1183
- /**
1184
- * Line offset of the script within the resource with given URL (for script tags).
1185
- */
1186
- startLine: number;
1187
- /**
1188
- * Column offset of the script within the resource with given URL.
1189
- */
1190
- startColumn: number;
1191
- /**
1192
- * Last line of the script.
1193
- */
1194
- endLine: number;
1195
- /**
1196
- * Length of the last line of the script.
1197
- */
1198
- endColumn: number;
1199
- /**
1200
- * Specifies script creation context.
1201
- */
1202
- executionContextId: Runtime.ExecutionContextId;
1203
- /**
1204
- * Content hash of the script.
1205
- */
1206
- hash: string;
1207
- /**
1208
- * Embedder-specific auxiliary data.
1209
- */
1210
- executionContextAuxData?: {} | undefined;
1211
- /**
1212
- * True, if this script is generated as a result of the live edit operation.
1213
- * @experimental
1214
- */
1215
- isLiveEdit?: boolean | undefined;
1216
- /**
1217
- * URL of source map associated with script (if any).
1218
- */
1219
- sourceMapURL?: string | undefined;
1220
- /**
1221
- * True, if this script has sourceURL.
1222
- */
1223
- hasSourceURL?: boolean | undefined;
1224
- /**
1225
- * True, if this script is ES6 module.
1226
- */
1227
- isModule?: boolean | undefined;
1228
- /**
1229
- * This script length.
1230
- */
1231
- length?: number | undefined;
1232
- /**
1233
- * JavaScript top stack frame of where the script parsed event was triggered if available.
1234
- * @experimental
1235
- */
1236
- stackTrace?: Runtime.StackTrace | undefined;
1237
- }
1238
- interface ScriptFailedToParseEventDataType {
1239
- /**
1240
- * Identifier of the script parsed.
1241
- */
1242
- scriptId: Runtime.ScriptId;
1243
- /**
1244
- * URL or name of the script parsed (if any).
1245
- */
1246
- url: string;
1247
- /**
1248
- * Line offset of the script within the resource with given URL (for script tags).
1249
- */
1250
- startLine: number;
1251
- /**
1252
- * Column offset of the script within the resource with given URL.
1253
- */
1254
- startColumn: number;
1255
- /**
1256
- * Last line of the script.
1257
- */
1258
- endLine: number;
1259
- /**
1260
- * Length of the last line of the script.
1261
- */
1262
- endColumn: number;
1263
- /**
1264
- * Specifies script creation context.
1265
- */
1266
- executionContextId: Runtime.ExecutionContextId;
1267
- /**
1268
- * Content hash of the script.
1269
- */
1270
- hash: string;
1271
- /**
1272
- * Embedder-specific auxiliary data.
1273
- */
1274
- executionContextAuxData?: {} | undefined;
1275
- /**
1276
- * URL of source map associated with script (if any).
1277
- */
1278
- sourceMapURL?: string | undefined;
1279
- /**
1280
- * True, if this script has sourceURL.
1281
- */
1282
- hasSourceURL?: boolean | undefined;
1283
- /**
1284
- * True, if this script is ES6 module.
1285
- */
1286
- isModule?: boolean | undefined;
1287
- /**
1288
- * This script length.
1289
- */
1290
- length?: number | undefined;
1291
- /**
1292
- * JavaScript top stack frame of where the script parsed event was triggered if available.
1293
- * @experimental
1294
- */
1295
- stackTrace?: Runtime.StackTrace | undefined;
1296
- }
1297
- interface BreakpointResolvedEventDataType {
1298
- /**
1299
- * Breakpoint unique identifier.
1300
- */
1301
- breakpointId: BreakpointId;
1302
- /**
1303
- * Actual breakpoint location.
1304
- */
1305
- location: Location;
1306
- }
1307
- interface PausedEventDataType {
1308
- /**
1309
- * Call stack the virtual machine stopped on.
1310
- */
1311
- callFrames: CallFrame[];
1312
- /**
1313
- * Pause reason.
1314
- */
1315
- reason: string;
1316
- /**
1317
- * Object containing break-specific auxiliary properties.
1318
- */
1319
- data?: {} | undefined;
1320
- /**
1321
- * Hit breakpoints IDs
1322
- */
1323
- hitBreakpoints?: string[] | undefined;
1324
- /**
1325
- * Async stack trace, if any.
1326
- */
1327
- asyncStackTrace?: Runtime.StackTrace | undefined;
1328
- /**
1329
- * Async stack trace, if any.
1330
- * @experimental
1331
- */
1332
- asyncStackTraceId?: Runtime.StackTraceId | undefined;
1333
- /**
1334
- * Just scheduled async call will have this stack trace as parent stack during async execution. This field is available only after <code>Debugger.stepInto</code> call with <code>breakOnAsynCall</code> flag.
1335
- * @experimental
1336
- */
1337
- asyncCallStackTraceId?: Runtime.StackTraceId | undefined;
1338
- }
1339
- }
1340
- namespace Console {
1341
- /**
1342
- * Console message.
1343
- */
1344
- interface ConsoleMessage {
1345
- /**
1346
- * Message source.
1347
- */
1348
- source: string;
1349
- /**
1350
- * Message severity.
1351
- */
1352
- level: string;
1353
- /**
1354
- * Message text.
1355
- */
1356
- text: string;
1357
- /**
1358
- * URL of the message origin.
1359
- */
1360
- url?: string | undefined;
1361
- /**
1362
- * Line number in the resource that generated this message (1-based).
1363
- */
1364
- line?: number | undefined;
1365
- /**
1366
- * Column number in the resource that generated this message (1-based).
1367
- */
1368
- column?: number | undefined;
1369
- }
1370
- interface MessageAddedEventDataType {
1371
- /**
1372
- * Console message that has been added.
1373
- */
1374
- message: ConsoleMessage;
1375
- }
1376
- }
1377
- namespace Profiler {
1378
- /**
1379
- * Profile node. Holds callsite information, execution statistics and child nodes.
1380
- */
1381
- interface ProfileNode {
1382
- /**
1383
- * Unique id of the node.
1384
- */
1385
- id: number;
1386
- /**
1387
- * Function location.
1388
- */
1389
- callFrame: Runtime.CallFrame;
1390
- /**
1391
- * Number of samples where this node was on top of the call stack.
1392
- */
1393
- hitCount?: number | undefined;
1394
- /**
1395
- * Child node ids.
1396
- */
1397
- children?: number[] | undefined;
1398
- /**
1399
- * The reason of being not optimized. The function may be deoptimized or marked as don't optimize.
1400
- */
1401
- deoptReason?: string | undefined;
1402
- /**
1403
- * An array of source position ticks.
1404
- */
1405
- positionTicks?: PositionTickInfo[] | undefined;
1406
- }
1407
- /**
1408
- * Profile.
1409
- */
1410
- interface Profile {
1411
- /**
1412
- * The list of profile nodes. First item is the root node.
1413
- */
1414
- nodes: ProfileNode[];
1415
- /**
1416
- * Profiling start timestamp in microseconds.
1417
- */
1418
- startTime: number;
1419
- /**
1420
- * Profiling end timestamp in microseconds.
1421
- */
1422
- endTime: number;
1423
- /**
1424
- * Ids of samples top nodes.
1425
- */
1426
- samples?: number[] | undefined;
1427
- /**
1428
- * Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime.
1429
- */
1430
- timeDeltas?: number[] | undefined;
1431
- }
1432
- /**
1433
- * Specifies a number of samples attributed to a certain source position.
1434
- */
1435
- interface PositionTickInfo {
1436
- /**
1437
- * Source line number (1-based).
1438
- */
1439
- line: number;
1440
- /**
1441
- * Number of samples attributed to the source line.
1442
- */
1443
- ticks: number;
1444
- }
1445
- /**
1446
- * Coverage data for a source range.
1447
- */
1448
- interface CoverageRange {
1449
- /**
1450
- * JavaScript script source offset for the range start.
1451
- */
1452
- startOffset: number;
1453
- /**
1454
- * JavaScript script source offset for the range end.
1455
- */
1456
- endOffset: number;
1457
- /**
1458
- * Collected execution count of the source range.
1459
- */
1460
- count: number;
1461
- }
1462
- /**
1463
- * Coverage data for a JavaScript function.
1464
- */
1465
- interface FunctionCoverage {
1466
- /**
1467
- * JavaScript function name.
1468
- */
1469
- functionName: string;
1470
- /**
1471
- * Source ranges inside the function with coverage data.
1472
- */
1473
- ranges: CoverageRange[];
1474
- /**
1475
- * Whether coverage data for this function has block granularity.
1476
- */
1477
- isBlockCoverage: boolean;
1478
- }
1479
- /**
1480
- * Coverage data for a JavaScript script.
1481
- */
1482
- interface ScriptCoverage {
1483
- /**
1484
- * JavaScript script id.
1485
- */
1486
- scriptId: Runtime.ScriptId;
1487
- /**
1488
- * JavaScript script name or url.
1489
- */
1490
- url: string;
1491
- /**
1492
- * Functions contained in the script that has coverage data.
1493
- */
1494
- functions: FunctionCoverage[];
1495
- }
1496
- interface SetSamplingIntervalParameterType {
1497
- /**
1498
- * New sampling interval in microseconds.
1499
- */
1500
- interval: number;
1501
- }
1502
- interface StartPreciseCoverageParameterType {
1503
- /**
1504
- * Collect accurate call counts beyond simple 'covered' or 'not covered'.
1505
- */
1506
- callCount?: boolean | undefined;
1507
- /**
1508
- * Collect block-based coverage.
1509
- */
1510
- detailed?: boolean | undefined;
1511
- }
1512
- interface StopReturnType {
1513
- /**
1514
- * Recorded profile.
1515
- */
1516
- profile: Profile;
1517
- }
1518
- interface TakePreciseCoverageReturnType {
1519
- /**
1520
- * Coverage data for the current isolate.
1521
- */
1522
- result: ScriptCoverage[];
1523
- }
1524
- interface GetBestEffortCoverageReturnType {
1525
- /**
1526
- * Coverage data for the current isolate.
1527
- */
1528
- result: ScriptCoverage[];
1529
- }
1530
- interface ConsoleProfileStartedEventDataType {
1531
- id: string;
1532
- /**
1533
- * Location of console.profile().
1534
- */
1535
- location: Debugger.Location;
1536
- /**
1537
- * Profile title passed as an argument to console.profile().
1538
- */
1539
- title?: string | undefined;
1540
- }
1541
- interface ConsoleProfileFinishedEventDataType {
1542
- id: string;
1543
- /**
1544
- * Location of console.profileEnd().
1545
- */
1546
- location: Debugger.Location;
1547
- profile: Profile;
1548
- /**
1549
- * Profile title passed as an argument to console.profile().
1550
- */
1551
- title?: string | undefined;
1552
- }
1553
- }
1554
- namespace HeapProfiler {
1555
- /**
1556
- * Heap snapshot object id.
1557
- */
1558
- type HeapSnapshotObjectId = string;
1559
- /**
1560
- * Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
1561
- */
1562
- interface SamplingHeapProfileNode {
1563
- /**
1564
- * Function location.
1565
- */
1566
- callFrame: Runtime.CallFrame;
1567
- /**
1568
- * Allocations size in bytes for the node excluding children.
1569
- */
1570
- selfSize: number;
1571
- /**
1572
- * Child nodes.
1573
- */
1574
- children: SamplingHeapProfileNode[];
1575
- }
1576
- /**
1577
- * Profile.
1578
- */
1579
- interface SamplingHeapProfile {
1580
- head: SamplingHeapProfileNode;
1581
- }
1582
- interface StartTrackingHeapObjectsParameterType {
1583
- trackAllocations?: boolean | undefined;
1584
- }
1585
- interface StopTrackingHeapObjectsParameterType {
1586
- /**
1587
- * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped.
1588
- */
1589
- reportProgress?: boolean | undefined;
1590
- }
1591
- interface TakeHeapSnapshotParameterType {
1592
- /**
1593
- * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
1594
- */
1595
- reportProgress?: boolean | undefined;
1596
- }
1597
- interface GetObjectByHeapObjectIdParameterType {
1598
- objectId: HeapSnapshotObjectId;
1599
- /**
1600
- * Symbolic group name that can be used to release multiple objects.
1601
- */
1602
- objectGroup?: string | undefined;
1603
- }
1604
- interface AddInspectedHeapObjectParameterType {
1605
- /**
1606
- * Heap snapshot object id to be accessible by means of $x command line API.
1607
- */
1608
- heapObjectId: HeapSnapshotObjectId;
1609
- }
1610
- interface GetHeapObjectIdParameterType {
1611
- /**
1612
- * Identifier of the object to get heap object id for.
1613
- */
1614
- objectId: Runtime.RemoteObjectId;
1615
- }
1616
- interface StartSamplingParameterType {
1617
- /**
1618
- * Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes.
1619
- */
1620
- samplingInterval?: number | undefined;
1621
- }
1622
- interface GetObjectByHeapObjectIdReturnType {
1623
- /**
1624
- * Evaluation result.
1625
- */
1626
- result: Runtime.RemoteObject;
1627
- }
1628
- interface GetHeapObjectIdReturnType {
1629
- /**
1630
- * Id of the heap snapshot object corresponding to the passed remote object id.
1631
- */
1632
- heapSnapshotObjectId: HeapSnapshotObjectId;
1633
- }
1634
- interface StopSamplingReturnType {
1635
- /**
1636
- * Recorded sampling heap profile.
1637
- */
1638
- profile: SamplingHeapProfile;
1639
- }
1640
- interface GetSamplingProfileReturnType {
1641
- /**
1642
- * Return the sampling profile being collected.
1643
- */
1644
- profile: SamplingHeapProfile;
1645
- }
1646
- interface AddHeapSnapshotChunkEventDataType {
1647
- chunk: string;
1648
- }
1649
- interface ReportHeapSnapshotProgressEventDataType {
1650
- done: number;
1651
- total: number;
1652
- finished?: boolean | undefined;
1653
- }
1654
- interface LastSeenObjectIdEventDataType {
1655
- lastSeenObjectId: number;
1656
- timestamp: number;
1657
- }
1658
- interface HeapStatsUpdateEventDataType {
1659
- /**
1660
- * An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment.
1661
- */
1662
- statsUpdate: number[];
1663
- }
1664
- }
1665
- namespace NodeTracing {
1666
- interface TraceConfig {
1667
- /**
1668
- * Controls how the trace buffer stores data.
1669
- */
1670
- recordMode?: string | undefined;
1671
- /**
1672
- * Included category filters.
1673
- */
1674
- includedCategories: string[];
1675
- }
1676
- interface StartParameterType {
1677
- traceConfig: TraceConfig;
1678
- }
1679
- interface GetCategoriesReturnType {
1680
- /**
1681
- * A list of supported tracing categories.
1682
- */
1683
- categories: string[];
1684
- }
1685
- interface DataCollectedEventDataType {
1686
- value: Array<{}>;
1687
- }
1688
- }
1689
- namespace NodeWorker {
1690
- type WorkerID = string;
1691
- /**
1692
- * Unique identifier of attached debugging session.
1693
- */
1694
- type SessionID = string;
1695
- interface WorkerInfo {
1696
- workerId: WorkerID;
1697
- type: string;
1698
- title: string;
1699
- url: string;
1700
- }
1701
- interface SendMessageToWorkerParameterType {
1702
- message: string;
1703
- /**
1704
- * Identifier of the session.
1705
- */
1706
- sessionId: SessionID;
1707
- }
1708
- interface EnableParameterType {
1709
- /**
1710
- * Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger`
1711
- * message to run them.
1712
- */
1713
- waitForDebuggerOnStart: boolean;
1714
- }
1715
- interface DetachParameterType {
1716
- sessionId: SessionID;
1717
- }
1718
- interface AttachedToWorkerEventDataType {
1719
- /**
1720
- * Identifier assigned to the session used to send/receive messages.
1721
- */
1722
- sessionId: SessionID;
1723
- workerInfo: WorkerInfo;
1724
- waitingForDebugger: boolean;
1725
- }
1726
- interface DetachedFromWorkerEventDataType {
1727
- /**
1728
- * Detached session identifier.
1729
- */
1730
- sessionId: SessionID;
1731
- }
1732
- interface ReceivedMessageFromWorkerEventDataType {
1733
- /**
1734
- * Identifier of a session which sends a message.
1735
- */
1736
- sessionId: SessionID;
1737
- message: string;
1738
- }
1739
- }
1740
- namespace Network {
1741
- /**
1742
- * Resource type as it was perceived by the rendering engine.
1743
- */
1744
- type ResourceType = string;
1745
- /**
1746
- * Unique request identifier.
1747
- */
1748
- type RequestId = string;
1749
- /**
1750
- * UTC time in seconds, counted from January 1, 1970.
1751
- */
1752
- type TimeSinceEpoch = number;
1753
- /**
1754
- * Monotonically increasing time in seconds since an arbitrary point in the past.
1755
- */
1756
- type MonotonicTime = number;
1757
- /**
1758
- * Information about the request initiator.
1759
- */
1760
- interface Initiator {
1761
- /**
1762
- * Type of this initiator.
1763
- */
1764
- type: string;
1765
- /**
1766
- * Initiator JavaScript stack trace, set for Script only.
1767
- * Requires the Debugger domain to be enabled.
1768
- */
1769
- stack?: Runtime.StackTrace | undefined;
1770
- /**
1771
- * Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type.
1772
- */
1773
- url?: string | undefined;
1774
- /**
1775
- * Initiator line number, set for Parser type or for Script type (when script is importing
1776
- * module) (0-based).
1777
- */
1778
- lineNumber?: number | undefined;
1779
- /**
1780
- * Initiator column number, set for Parser type or for Script type (when script is importing
1781
- * module) (0-based).
1782
- */
1783
- columnNumber?: number | undefined;
1784
- /**
1785
- * Set if another request triggered this request (e.g. preflight).
1786
- */
1787
- requestId?: RequestId | undefined;
1788
- }
1789
- /**
1790
- * HTTP request data.
1791
- */
1792
- interface Request {
1793
- url: string;
1794
- method: string;
1795
- headers: Headers;
1796
- }
1797
- /**
1798
- * HTTP response data.
1799
- */
1800
- interface Response {
1801
- url: string;
1802
- status: number;
1803
- statusText: string;
1804
- headers: Headers;
1805
- }
1806
- /**
1807
- * Request / response headers as keys / values of JSON object.
1808
- */
1809
- interface Headers {
1810
- }
1811
- interface RequestWillBeSentEventDataType {
1812
- /**
1813
- * Request identifier.
1814
- */
1815
- requestId: RequestId;
1816
- /**
1817
- * Request data.
1818
- */
1819
- request: Request;
1820
- /**
1821
- * Request initiator.
1822
- */
1823
- initiator: Initiator;
1824
- /**
1825
- * Timestamp.
1826
- */
1827
- timestamp: MonotonicTime;
1828
- /**
1829
- * Timestamp.
1830
- */
1831
- wallTime: TimeSinceEpoch;
1832
- }
1833
- interface ResponseReceivedEventDataType {
1834
- /**
1835
- * Request identifier.
1836
- */
1837
- requestId: RequestId;
1838
- /**
1839
- * Timestamp.
1840
- */
1841
- timestamp: MonotonicTime;
1842
- /**
1843
- * Resource type.
1844
- */
1845
- type: ResourceType;
1846
- /**
1847
- * Response data.
1848
- */
1849
- response: Response;
1850
- }
1851
- interface LoadingFailedEventDataType {
1852
- /**
1853
- * Request identifier.
1854
- */
1855
- requestId: RequestId;
1856
- /**
1857
- * Timestamp.
1858
- */
1859
- timestamp: MonotonicTime;
1860
- /**
1861
- * Resource type.
1862
- */
1863
- type: ResourceType;
1864
- /**
1865
- * Error message.
1866
- */
1867
- errorText: string;
1868
- }
1869
- interface LoadingFinishedEventDataType {
1870
- /**
1871
- * Request identifier.
1872
- */
1873
- requestId: RequestId;
1874
- /**
1875
- * Timestamp.
1876
- */
1877
- timestamp: MonotonicTime;
1878
- }
1879
- }
1880
- namespace NodeRuntime {
1881
- interface NotifyWhenWaitingForDisconnectParameterType {
1882
- enabled: boolean;
1883
- }
1884
- }
1885
-
23
+ import { EventEmitter } from 'node:events';
1886
24
  /**
1887
25
  * The `inspector.Session` is used for dispatching messages to the V8 inspector
1888
26
  * back-end and receiving message responses and notifications.
@@ -1893,2116 +31,207 @@ declare module "node:inspector" {
1893
31
  * The inspector session needs to be connected through `session.connect()` before the messages can be dispatched to the inspector backend.
1894
32
  */
1895
33
  constructor();
1896
-
1897
34
  /**
1898
35
  * Connects a session to the inspector back-end.
1899
36
  */
1900
37
  connect(): void;
1901
-
1902
38
  /**
1903
39
  * Connects a session to the inspector back-end.
1904
40
  * An exception will be thrown if this API was not called on a Worker thread.
1905
41
  * @since v12.11.0
1906
42
  */
1907
43
  connectToMainThread(): void;
1908
-
1909
44
  /**
1910
45
  * Immediately close the session. All pending message callbacks will be called with an error.
1911
46
  * `session.connect()` will need to be called to be able to send messages again.
1912
47
  * Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints.
1913
48
  */
1914
49
  disconnect(): void;
1915
-
50
+ }
51
+ /**
52
+ * Activate inspector on host and port. Equivalent to `node --inspect=[[host:]port]`, but can be done programmatically after node has
53
+ * started.
54
+ *
55
+ * If wait is `true`, will block until a client has connected to the inspect port
56
+ * and flow control has been passed to the debugger client.
57
+ *
58
+ * See the [security warning](https://nodejs.org/docs/latest-v25.x/api/cli.html#warning-binding-inspector-to-a-public-ipport-combination-is-insecure)
59
+ * regarding the `host` parameter usage.
60
+ * @param port Port to listen on for inspector connections. Defaults to what was specified on the CLI.
61
+ * @param host Host to listen on for inspector connections. Defaults to what was specified on the CLI.
62
+ * @param wait Block until a client has connected. Defaults to what was specified on the CLI.
63
+ * @returns Disposable that calls `inspector.close()`.
64
+ */
65
+ function open(port?: number, host?: string, wait?: boolean): Disposable;
66
+ /**
67
+ * Deactivate the inspector. Blocks until there are no active connections.
68
+ */
69
+ function close(): void;
70
+ /**
71
+ * Return the URL of the active inspector, or `undefined` if there is none.
72
+ *
73
+ * ```console
74
+ * $ node --inspect -p 'inspector.url()'
75
+ * Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
76
+ * For help, see: https://nodejs.org/en/docs/inspector
77
+ * ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
78
+ *
79
+ * $ node --inspect=localhost:3000 -p 'inspector.url()'
80
+ * Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
81
+ * For help, see: https://nodejs.org/en/docs/inspector
82
+ * ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
83
+ *
84
+ * $ node -p 'inspector.url()'
85
+ * undefined
86
+ * ```
87
+ */
88
+ function url(): string | undefined;
89
+ /**
90
+ * Blocks until a client (existing or connected later) has sent `Runtime.runIfWaitingForDebugger` command.
91
+ *
92
+ * An exception will be thrown if there is no active inspector.
93
+ * @since v12.7.0
94
+ */
95
+ function waitForDebugger(): void;
96
+ // These methods are exposed by the V8 inspector console API (inspector/v8-console.h).
97
+ // The method signatures differ from those of the Node.js console, and are deliberately
98
+ // typed permissively.
99
+ interface InspectorConsole {
100
+ debug(...data: any[]): void;
101
+ error(...data: any[]): void;
102
+ info(...data: any[]): void;
103
+ log(...data: any[]): void;
104
+ warn(...data: any[]): void;
105
+ dir(...data: any[]): void;
106
+ dirxml(...data: any[]): void;
107
+ table(...data: any[]): void;
108
+ trace(...data: any[]): void;
109
+ group(...data: any[]): void;
110
+ groupCollapsed(...data: any[]): void;
111
+ groupEnd(...data: any[]): void;
112
+ clear(...data: any[]): void;
113
+ count(label?: any): void;
114
+ countReset(label?: any): void;
115
+ assert(value?: any, ...data: any[]): void;
116
+ profile(label?: any): void;
117
+ profileEnd(label?: any): void;
118
+ time(label?: any): void;
119
+ timeLog(label?: any): void;
120
+ timeStamp(label?: any): void;
121
+ }
122
+ /**
123
+ * An object to send messages to the remote inspector console.
124
+ * @since v11.0.0
125
+ */
126
+ const console: InspectorConsole;
127
+ // DevTools protocol event broadcast methods
128
+ namespace Network {
1916
129
  /**
1917
- * Posts a message to the inspector back-end. `callback` will be notified when
1918
- * a response is received. `callback` is a function that accepts two optional
1919
- * arguments: error and message-specific result.
1920
- *
1921
- * ```js
1922
- * session.post('Runtime.evaluate', { expression: '2 + 2' },
1923
- * (error, { result }) => console.log(result));
1924
- * // Output: { type: 'number', value: 4, description: '4' }
1925
- * ```
1926
- *
1927
- * The latest version of the V8 inspector protocol is published on the
1928
- * [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/).
130
+ * This feature is only available with the `--experimental-network-inspection` flag enabled.
1929
131
  *
1930
- * Node.js inspector supports all the Chrome DevTools Protocol domains declared
1931
- * by V8. Chrome DevTools Protocol domain provides an interface for interacting
1932
- * with one of the runtime agents used to inspect the application state and listen
1933
- * to the run-time events.
132
+ * Broadcasts the `Network.requestWillBeSent` event to connected frontends. This event indicates that
133
+ * the application is about to send an HTTP request.
134
+ * @since v22.6.0
1934
135
  */
1935
- post(method: string, callback?: (err: Error | null, params?: object) => void): void;
1936
- post(method: string, params?: object, callback?: (err: Error | null, params?: object) => void): void;
136
+ function requestWillBeSent(params: RequestWillBeSentEventDataType): void;
1937
137
  /**
1938
- * Returns supported domains.
138
+ * This feature is only available with the `--experimental-network-inspection` flag enabled.
139
+ *
140
+ * Broadcasts the `Network.dataReceived` event to connected frontends, or buffers the data if
141
+ * `Network.streamResourceContent` command was not invoked for the given request yet.
142
+ *
143
+ * Also enables `Network.getResponseBody` command to retrieve the response data.
144
+ * @since v24.2.0
1939
145
  */
1940
- post(method: 'Schema.getDomains', callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void;
146
+ function dataReceived(params: DataReceivedEventDataType): void;
1941
147
  /**
1942
- * Evaluates expression on global object.
148
+ * This feature is only available with the `--experimental-network-inspection` flag enabled.
149
+ *
150
+ * Enables `Network.getRequestPostData` command to retrieve the request data.
151
+ * @since v24.3.0
1943
152
  */
1944
- post(method: 'Runtime.evaluate', params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
1945
- post(method: 'Runtime.evaluate', callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
153
+ function dataSent(params: unknown): void;
1946
154
  /**
1947
- * Add handler to promise with given promise object id.
155
+ * This feature is only available with the `--experimental-network-inspection` flag enabled.
156
+ *
157
+ * Broadcasts the `Network.responseReceived` event to connected frontends. This event indicates that
158
+ * HTTP response is available.
159
+ * @since v22.6.0
1948
160
  */
1949
- post(method: 'Runtime.awaitPromise', params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
1950
- post(method: 'Runtime.awaitPromise', callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
161
+ function responseReceived(params: ResponseReceivedEventDataType): void;
1951
162
  /**
1952
- * Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
163
+ * This feature is only available with the `--experimental-network-inspection` flag enabled.
164
+ *
165
+ * Broadcasts the `Network.loadingFinished` event to connected frontends. This event indicates that
166
+ * HTTP request has finished loading.
167
+ * @since v22.6.0
1953
168
  */
1954
- post(method: 'Runtime.callFunctionOn', params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
1955
- post(method: 'Runtime.callFunctionOn', callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
169
+ function loadingFinished(params: LoadingFinishedEventDataType): void;
1956
170
  /**
1957
- * Returns properties of a given object. Object group of the result is inherited from the target object.
171
+ * This feature is only available with the `--experimental-network-inspection` flag enabled.
172
+ *
173
+ * Broadcasts the `Network.loadingFailed` event to connected frontends. This event indicates that
174
+ * HTTP request has failed to load.
175
+ * @since v22.7.0
1958
176
  */
1959
- post(method: 'Runtime.getProperties', params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
1960
- post(method: 'Runtime.getProperties', callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
177
+ function loadingFailed(params: LoadingFailedEventDataType): void;
1961
178
  /**
1962
- * Releases remote object with given id.
179
+ * This feature is only available with the `--experimental-network-inspection` flag enabled.
180
+ *
181
+ * Broadcasts the `Network.webSocketCreated` event to connected frontends. This event indicates that
182
+ * a WebSocket connection has been initiated.
183
+ * @since v24.7.0
1963
184
  */
1964
- post(method: 'Runtime.releaseObject', params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void;
1965
- post(method: 'Runtime.releaseObject', callback?: (err: Error | null) => void): void;
185
+ function webSocketCreated(params: WebSocketCreatedEventDataType): void;
1966
186
  /**
1967
- * Releases all remote objects that belong to a given group.
187
+ * This feature is only available with the `--experimental-network-inspection` flag enabled.
188
+ *
189
+ * Broadcasts the `Network.webSocketHandshakeResponseReceived` event to connected frontends.
190
+ * This event indicates that the WebSocket handshake response has been received.
191
+ * @since v24.7.0
1968
192
  */
1969
- post(method: 'Runtime.releaseObjectGroup', params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void;
1970
- post(method: 'Runtime.releaseObjectGroup', callback?: (err: Error | null) => void): void;
193
+ function webSocketHandshakeResponseReceived(params: WebSocketHandshakeResponseReceivedEventDataType): void;
1971
194
  /**
1972
- * Tells inspected instance to run if it was waiting for debugger to attach.
195
+ * This feature is only available with the `--experimental-network-inspection` flag enabled.
196
+ *
197
+ * Broadcasts the `Network.webSocketClosed` event to connected frontends.
198
+ * This event indicates that a WebSocket connection has been closed.
199
+ * @since v24.7.0
1973
200
  */
1974
- post(method: 'Runtime.runIfWaitingForDebugger', callback?: (err: Error | null) => void): void;
201
+ function webSocketClosed(params: WebSocketClosedEventDataType): void;
202
+ }
203
+ namespace NetworkResources {
1975
204
  /**
1976
- * Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context.
205
+ * This feature is only available with the `--experimental-inspector-network-resource` flag enabled.
206
+ *
207
+ * The inspector.NetworkResources.put method is used to provide a response for a loadNetworkResource
208
+ * request issued via the Chrome DevTools Protocol (CDP).
209
+ * This is typically triggered when a source map is specified by URL, and a DevTools frontend—such as
210
+ * Chrome—requests the resource to retrieve the source map.
211
+ *
212
+ * This method allows developers to predefine the resource content to be served in response to such CDP requests.
213
+ *
214
+ * ```js
215
+ * const inspector = require('node:inspector');
216
+ * // By preemptively calling put to register the resource, a source map can be resolved when
217
+ * // a loadNetworkResource request is made from the frontend.
218
+ * async function setNetworkResources() {
219
+ * const mapUrl = 'http://localhost:3000/dist/app.js.map';
220
+ * const tsUrl = 'http://localhost:3000/src/app.ts';
221
+ * const distAppJsMap = await fetch(mapUrl).then((res) => res.text());
222
+ * const srcAppTs = await fetch(tsUrl).then((res) => res.text());
223
+ * inspector.NetworkResources.put(mapUrl, distAppJsMap);
224
+ * inspector.NetworkResources.put(tsUrl, srcAppTs);
225
+ * };
226
+ * setNetworkResources().then(() => {
227
+ * require('./dist/app');
228
+ * });
229
+ * ```
230
+ *
231
+ * For more details, see the official CDP documentation: [Network.loadNetworkResource](https://chromedevtools.github.io/devtools-protocol/tot/Network/#method-loadNetworkResource)
232
+ * @since v24.5.0
233
+ * @experimental
1977
234
  */
1978
- post(method: 'Runtime.enable', callback?: (err: Error | null) => void): void;
1979
- /**
1980
- * Disables reporting of execution contexts creation.
1981
- */
1982
- post(method: 'Runtime.disable', callback?: (err: Error | null) => void): void;
1983
- /**
1984
- * Discards collected exceptions and console API calls.
1985
- */
1986
- post(method: 'Runtime.discardConsoleEntries', callback?: (err: Error | null) => void): void;
1987
- /**
1988
- * @experimental
1989
- */
1990
- post(method: 'Runtime.setCustomObjectFormatterEnabled', params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void;
1991
- post(method: 'Runtime.setCustomObjectFormatterEnabled', callback?: (err: Error | null) => void): void;
1992
- /**
1993
- * Compiles expression.
1994
- */
1995
- post(method: 'Runtime.compileScript', params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
1996
- post(method: 'Runtime.compileScript', callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
1997
- /**
1998
- * Runs script with given id in a given context.
1999
- */
2000
- post(method: 'Runtime.runScript', params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
2001
- post(method: 'Runtime.runScript', callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
2002
- post(method: 'Runtime.queryObjects', params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
2003
- post(method: 'Runtime.queryObjects', callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
2004
- /**
2005
- * Returns all let, const and class variables from global scope.
2006
- */
2007
- post(
2008
- method: 'Runtime.globalLexicalScopeNames',
2009
- params?: Runtime.GlobalLexicalScopeNamesParameterType,
2010
- callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void
2011
- ): void;
2012
- post(method: 'Runtime.globalLexicalScopeNames', callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void;
2013
- /**
2014
- * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
2015
- */
2016
- post(method: 'Debugger.enable', callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void;
2017
- /**
2018
- * Disables debugger for given page.
2019
- */
2020
- post(method: 'Debugger.disable', callback?: (err: Error | null) => void): void;
2021
- /**
2022
- * Activates / deactivates all breakpoints on the page.
2023
- */
2024
- post(method: 'Debugger.setBreakpointsActive', params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void;
2025
- post(method: 'Debugger.setBreakpointsActive', callback?: (err: Error | null) => void): void;
2026
- /**
2027
- * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
2028
- */
2029
- post(method: 'Debugger.setSkipAllPauses', params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void;
2030
- post(method: 'Debugger.setSkipAllPauses', callback?: (err: Error | null) => void): void;
2031
- /**
2032
- * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads.
2033
- */
2034
- post(method: 'Debugger.setBreakpointByUrl', params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
2035
- post(method: 'Debugger.setBreakpointByUrl', callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
2036
- /**
2037
- * Sets JavaScript breakpoint at a given location.
2038
- */
2039
- post(method: 'Debugger.setBreakpoint', params?: Debugger.SetBreakpointParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
2040
- post(method: 'Debugger.setBreakpoint', callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
2041
- /**
2042
- * Removes JavaScript breakpoint.
2043
- */
2044
- post(method: 'Debugger.removeBreakpoint', params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void;
2045
- post(method: 'Debugger.removeBreakpoint', callback?: (err: Error | null) => void): void;
2046
- /**
2047
- * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
2048
- */
2049
- post(
2050
- method: 'Debugger.getPossibleBreakpoints',
2051
- params?: Debugger.GetPossibleBreakpointsParameterType,
2052
- callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void
2053
- ): void;
2054
- post(method: 'Debugger.getPossibleBreakpoints', callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void;
2055
- /**
2056
- * Continues execution until specific location is reached.
2057
- */
2058
- post(method: 'Debugger.continueToLocation', params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void;
2059
- post(method: 'Debugger.continueToLocation', callback?: (err: Error | null) => void): void;
2060
- /**
2061
- * @experimental
2062
- */
2063
- post(method: 'Debugger.pauseOnAsyncCall', params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void;
2064
- post(method: 'Debugger.pauseOnAsyncCall', callback?: (err: Error | null) => void): void;
2065
- /**
2066
- * Steps over the statement.
2067
- */
2068
- post(method: 'Debugger.stepOver', callback?: (err: Error | null) => void): void;
2069
- /**
2070
- * Steps into the function call.
2071
- */
2072
- post(method: 'Debugger.stepInto', params?: Debugger.StepIntoParameterType, callback?: (err: Error | null) => void): void;
2073
- post(method: 'Debugger.stepInto', callback?: (err: Error | null) => void): void;
2074
- /**
2075
- * Steps out of the function call.
2076
- */
2077
- post(method: 'Debugger.stepOut', callback?: (err: Error | null) => void): void;
2078
- /**
2079
- * Stops on the next JavaScript statement.
2080
- */
2081
- post(method: 'Debugger.pause', callback?: (err: Error | null) => void): void;
2082
- /**
2083
- * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called.
2084
- * @experimental
2085
- */
2086
- post(method: 'Debugger.scheduleStepIntoAsync', callback?: (err: Error | null) => void): void;
2087
- /**
2088
- * Resumes JavaScript execution.
2089
- */
2090
- post(method: 'Debugger.resume', callback?: (err: Error | null) => void): void;
2091
- /**
2092
- * Returns stack trace with given <code>stackTraceId</code>.
2093
- * @experimental
2094
- */
2095
- post(method: 'Debugger.getStackTrace', params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
2096
- post(method: 'Debugger.getStackTrace', callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
2097
- /**
2098
- * Searches for given string in script content.
2099
- */
2100
- post(method: 'Debugger.searchInContent', params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
2101
- post(method: 'Debugger.searchInContent', callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
2102
- /**
2103
- * Edits JavaScript source live.
2104
- */
2105
- post(method: 'Debugger.setScriptSource', params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
2106
- post(method: 'Debugger.setScriptSource', callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
2107
- /**
2108
- * Restarts particular call frame from the beginning.
2109
- */
2110
- post(method: 'Debugger.restartFrame', params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
2111
- post(method: 'Debugger.restartFrame', callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
2112
- /**
2113
- * Returns source for the script with given id.
2114
- */
2115
- post(method: 'Debugger.getScriptSource', params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
2116
- post(method: 'Debugger.getScriptSource', callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
2117
- /**
2118
- * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>.
2119
- */
2120
- post(method: 'Debugger.setPauseOnExceptions', params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void;
2121
- post(method: 'Debugger.setPauseOnExceptions', callback?: (err: Error | null) => void): void;
2122
- /**
2123
- * Evaluates expression on a given call frame.
2124
- */
2125
- post(method: 'Debugger.evaluateOnCallFrame', params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
2126
- post(method: 'Debugger.evaluateOnCallFrame', callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
2127
- /**
2128
- * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
2129
- */
2130
- post(method: 'Debugger.setVariableValue', params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void;
2131
- post(method: 'Debugger.setVariableValue', callback?: (err: Error | null) => void): void;
2132
- /**
2133
- * Changes return value in top frame. Available only at return break position.
2134
- * @experimental
2135
- */
2136
- post(method: 'Debugger.setReturnValue', params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void;
2137
- post(method: 'Debugger.setReturnValue', callback?: (err: Error | null) => void): void;
2138
- /**
2139
- * Enables or disables async call stacks tracking.
2140
- */
2141
- post(method: 'Debugger.setAsyncCallStackDepth', params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void;
2142
- post(method: 'Debugger.setAsyncCallStackDepth', callback?: (err: Error | null) => void): void;
2143
- /**
2144
- * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
2145
- * @experimental
2146
- */
2147
- post(method: 'Debugger.setBlackboxPatterns', params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void;
2148
- post(method: 'Debugger.setBlackboxPatterns', callback?: (err: Error | null) => void): void;
2149
- /**
2150
- * Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted.
2151
- * @experimental
2152
- */
2153
- post(method: 'Debugger.setBlackboxedRanges', params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void;
2154
- post(method: 'Debugger.setBlackboxedRanges', callback?: (err: Error | null) => void): void;
2155
- /**
2156
- * Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification.
2157
- */
2158
- post(method: 'Console.enable', callback?: (err: Error | null) => void): void;
2159
- /**
2160
- * Disables console domain, prevents further console messages from being reported to the client.
2161
- */
2162
- post(method: 'Console.disable', callback?: (err: Error | null) => void): void;
2163
- /**
2164
- * Does nothing.
2165
- */
2166
- post(method: 'Console.clearMessages', callback?: (err: Error | null) => void): void;
2167
- post(method: 'Profiler.enable', callback?: (err: Error | null) => void): void;
2168
- post(method: 'Profiler.disable', callback?: (err: Error | null) => void): void;
2169
- /**
2170
- * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
2171
- */
2172
- post(method: 'Profiler.setSamplingInterval', params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void;
2173
- post(method: 'Profiler.setSamplingInterval', callback?: (err: Error | null) => void): void;
2174
- post(method: 'Profiler.start', callback?: (err: Error | null) => void): void;
2175
- post(method: 'Profiler.stop', callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void;
2176
- /**
2177
- * Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.
2178
- */
2179
- post(method: 'Profiler.startPreciseCoverage', params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void;
2180
- post(method: 'Profiler.startPreciseCoverage', callback?: (err: Error | null) => void): void;
2181
- /**
2182
- * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
2183
- */
2184
- post(method: 'Profiler.stopPreciseCoverage', callback?: (err: Error | null) => void): void;
2185
- /**
2186
- * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
2187
- */
2188
- post(method: 'Profiler.takePreciseCoverage', callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void;
2189
- /**
2190
- * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
2191
- */
2192
- post(method: 'Profiler.getBestEffortCoverage', callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void;
2193
- post(method: 'HeapProfiler.enable', callback?: (err: Error | null) => void): void;
2194
- post(method: 'HeapProfiler.disable', callback?: (err: Error | null) => void): void;
2195
- post(method: 'HeapProfiler.startTrackingHeapObjects', params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
2196
- post(method: 'HeapProfiler.startTrackingHeapObjects', callback?: (err: Error | null) => void): void;
2197
- post(method: 'HeapProfiler.stopTrackingHeapObjects', params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
2198
- post(method: 'HeapProfiler.stopTrackingHeapObjects', callback?: (err: Error | null) => void): void;
2199
- post(method: 'HeapProfiler.takeHeapSnapshot', params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void;
2200
- post(method: 'HeapProfiler.takeHeapSnapshot', callback?: (err: Error | null) => void): void;
2201
- post(method: 'HeapProfiler.collectGarbage', callback?: (err: Error | null) => void): void;
2202
- post(
2203
- method: 'HeapProfiler.getObjectByHeapObjectId',
2204
- params?: HeapProfiler.GetObjectByHeapObjectIdParameterType,
2205
- callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void
2206
- ): void;
2207
- post(method: 'HeapProfiler.getObjectByHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void;
2208
- /**
2209
- * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
2210
- */
2211
- post(method: 'HeapProfiler.addInspectedHeapObject', params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void;
2212
- post(method: 'HeapProfiler.addInspectedHeapObject', callback?: (err: Error | null) => void): void;
2213
- post(method: 'HeapProfiler.getHeapObjectId', params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
2214
- post(method: 'HeapProfiler.getHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
2215
- post(method: 'HeapProfiler.startSampling', params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void;
2216
- post(method: 'HeapProfiler.startSampling', callback?: (err: Error | null) => void): void;
2217
- post(method: 'HeapProfiler.stopSampling', callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void;
2218
- post(method: 'HeapProfiler.getSamplingProfile', callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void;
2219
- /**
2220
- * Gets supported tracing categories.
2221
- */
2222
- post(method: 'NodeTracing.getCategories', callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
2223
- /**
2224
- * Start trace events collection.
2225
- */
2226
- post(method: 'NodeTracing.start', params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void;
2227
- post(method: 'NodeTracing.start', callback?: (err: Error | null) => void): void;
2228
- /**
2229
- * Stop trace events collection. Remaining collected events will be sent as a sequence of
2230
- * dataCollected events followed by tracingComplete event.
2231
- */
2232
- post(method: 'NodeTracing.stop', callback?: (err: Error | null) => void): void;
2233
- /**
2234
- * Sends protocol message over session with given id.
2235
- */
2236
- post(method: 'NodeWorker.sendMessageToWorker', params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void;
2237
- post(method: 'NodeWorker.sendMessageToWorker', callback?: (err: Error | null) => void): void;
2238
- /**
2239
- * Instructs the inspector to attach to running workers. Will also attach to new workers
2240
- * as they start
2241
- */
2242
- post(method: 'NodeWorker.enable', params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void;
2243
- post(method: 'NodeWorker.enable', callback?: (err: Error | null) => void): void;
2244
- /**
2245
- * Detaches from all running workers and disables attaching to new workers as they are started.
2246
- */
2247
- post(method: 'NodeWorker.disable', callback?: (err: Error | null) => void): void;
2248
- /**
2249
- * Detached from the worker with given sessionId.
2250
- */
2251
- post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void;
2252
- post(method: 'NodeWorker.detach', callback?: (err: Error | null) => void): void;
2253
- /**
2254
- * Disables network tracking, prevents network events from being sent to the client.
2255
- */
2256
- post(method: 'Network.disable', callback?: (err: Error | null) => void): void;
2257
- /**
2258
- * Enables network tracking, network events will now be delivered to the client.
2259
- */
2260
- post(method: 'Network.enable', callback?: (err: Error | null) => void): void;
2261
- /**
2262
- * Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`.
2263
- */
2264
- post(method: 'NodeRuntime.enable', callback?: (err: Error | null) => void): void;
2265
- /**
2266
- * Disable NodeRuntime events
2267
- */
2268
- post(method: 'NodeRuntime.disable', callback?: (err: Error | null) => void): void;
2269
- /**
2270
- * Enable the `NodeRuntime.waitingForDisconnect`.
2271
- */
2272
- post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void;
2273
- post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', callback?: (err: Error | null) => void): void;
2274
-
2275
- addListener(event: string, listener: (...args: any[]) => void): this;
2276
- /**
2277
- * Emitted when any notification from the V8 Inspector is received.
2278
- */
2279
- addListener(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
2280
- /**
2281
- * Issued when new execution context is created.
2282
- */
2283
- addListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2284
- /**
2285
- * Issued when execution context is destroyed.
2286
- */
2287
- addListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2288
- /**
2289
- * Issued when all executionContexts were cleared in browser
2290
- */
2291
- addListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2292
- /**
2293
- * Issued when exception was thrown and unhandled.
2294
- */
2295
- addListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2296
- /**
2297
- * Issued when unhandled exception was revoked.
2298
- */
2299
- addListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2300
- /**
2301
- * Issued when console API was called.
2302
- */
2303
- addListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2304
- /**
2305
- * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2306
- */
2307
- addListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2308
- /**
2309
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2310
- */
2311
- addListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2312
- /**
2313
- * Fired when virtual machine fails to parse the script.
2314
- */
2315
- addListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2316
- /**
2317
- * Fired when breakpoint is resolved to an actual script and location.
2318
- */
2319
- addListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2320
- /**
2321
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2322
- */
2323
- addListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2324
- /**
2325
- * Fired when the virtual machine resumed execution.
2326
- */
2327
- addListener(event: 'Debugger.resumed', listener: () => void): this;
2328
- /**
2329
- * Issued when new console message is added.
2330
- */
2331
- addListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2332
- /**
2333
- * Sent when new profile recording is started using console.profile() call.
2334
- */
2335
- addListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2336
- addListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2337
- addListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2338
- addListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2339
- addListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2340
- /**
2341
- * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
2342
- */
2343
- addListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2344
- /**
2345
- * If heap objects tracking has been started then backend may send update for one or more fragments
2346
- */
2347
- addListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2348
- /**
2349
- * Contains an bucket of collected trace events.
2350
- */
2351
- addListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2352
- /**
2353
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2354
- * delivered via dataCollected events.
2355
- */
2356
- addListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2357
- /**
2358
- * Issued when attached to a worker.
2359
- */
2360
- addListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2361
- /**
2362
- * Issued when detached from the worker.
2363
- */
2364
- addListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2365
- /**
2366
- * Notifies about a new protocol message received from the session
2367
- * (session ID is provided in attachedToWorker notification).
2368
- */
2369
- addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2370
- /**
2371
- * Fired when page is about to send HTTP request.
2372
- */
2373
- addListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
2374
- /**
2375
- * Fired when HTTP response is available.
2376
- */
2377
- addListener(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
2378
- addListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
2379
- addListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
2380
- /**
2381
- * This event is fired instead of `Runtime.executionContextDestroyed` when
2382
- * enabled.
2383
- * It is fired when the Node process finished all code execution and is
2384
- * waiting for all frontends to disconnect.
2385
- */
2386
- addListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2387
- /**
2388
- * This event is fired when the runtime is waiting for the debugger. For
2389
- * example, when inspector.waitingForDebugger is called
2390
- */
2391
- addListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
2392
- emit(event: string | symbol, ...args: any[]): boolean;
2393
- emit(event: 'inspectorNotification', message: InspectorNotification<object>): boolean;
2394
- emit(event: 'Runtime.executionContextCreated', message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
2395
- emit(event: 'Runtime.executionContextDestroyed', message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>): boolean;
2396
- emit(event: 'Runtime.executionContextsCleared'): boolean;
2397
- emit(event: 'Runtime.exceptionThrown', message: InspectorNotification<Runtime.ExceptionThrownEventDataType>): boolean;
2398
- emit(event: 'Runtime.exceptionRevoked', message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>): boolean;
2399
- emit(event: 'Runtime.consoleAPICalled', message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>): boolean;
2400
- emit(event: 'Runtime.inspectRequested', message: InspectorNotification<Runtime.InspectRequestedEventDataType>): boolean;
2401
- emit(event: 'Debugger.scriptParsed', message: InspectorNotification<Debugger.ScriptParsedEventDataType>): boolean;
2402
- emit(event: 'Debugger.scriptFailedToParse', message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>): 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: 'Console.messageAdded', message: InspectorNotification<Console.MessageAddedEventDataType>): boolean;
2407
- emit(event: 'Profiler.consoleProfileStarted', message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>): boolean;
2408
- emit(event: 'Profiler.consoleProfileFinished', message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>): boolean;
2409
- emit(event: 'HeapProfiler.addHeapSnapshotChunk', message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>): boolean;
2410
- emit(event: 'HeapProfiler.resetProfiles'): boolean;
2411
- emit(event: 'HeapProfiler.reportHeapSnapshotProgress', message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
2412
- emit(event: 'HeapProfiler.lastSeenObjectId', message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
2413
- emit(event: 'HeapProfiler.heapStatsUpdate', message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
2414
- emit(event: 'NodeTracing.dataCollected', message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
2415
- emit(event: 'NodeTracing.tracingComplete'): boolean;
2416
- emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
2417
- emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
2418
- emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
2419
- emit(event: 'Network.requestWillBeSent', message: InspectorNotification<Network.RequestWillBeSentEventDataType>): boolean;
2420
- emit(event: 'Network.responseReceived', message: InspectorNotification<Network.ResponseReceivedEventDataType>): boolean;
2421
- emit(event: 'Network.loadingFailed', message: InspectorNotification<Network.LoadingFailedEventDataType>): boolean;
2422
- emit(event: 'Network.loadingFinished', message: InspectorNotification<Network.LoadingFinishedEventDataType>): boolean;
2423
- emit(event: 'NodeRuntime.waitingForDisconnect'): boolean;
2424
- emit(event: 'NodeRuntime.waitingForDebugger'): boolean;
2425
- on(event: string, listener: (...args: any[]) => void): this;
2426
- /**
2427
- * Emitted when any notification from the V8 Inspector is received.
2428
- */
2429
- on(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
2430
- /**
2431
- * Issued when new execution context is created.
2432
- */
2433
- on(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2434
- /**
2435
- * Issued when execution context is destroyed.
2436
- */
2437
- on(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2438
- /**
2439
- * Issued when all executionContexts were cleared in browser
2440
- */
2441
- on(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2442
- /**
2443
- * Issued when exception was thrown and unhandled.
2444
- */
2445
- on(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2446
- /**
2447
- * Issued when unhandled exception was revoked.
2448
- */
2449
- on(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2450
- /**
2451
- * Issued when console API was called.
2452
- */
2453
- on(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2454
- /**
2455
- * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2456
- */
2457
- on(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2458
- /**
2459
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2460
- */
2461
- on(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2462
- /**
2463
- * Fired when virtual machine fails to parse the script.
2464
- */
2465
- on(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2466
- /**
2467
- * Fired when breakpoint is resolved to an actual script and location.
2468
- */
2469
- on(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2470
- /**
2471
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2472
- */
2473
- on(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2474
- /**
2475
- * Fired when the virtual machine resumed execution.
2476
- */
2477
- on(event: 'Debugger.resumed', listener: () => void): this;
2478
- /**
2479
- * Issued when new console message is added.
2480
- */
2481
- on(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2482
- /**
2483
- * Sent when new profile recording is started using console.profile() call.
2484
- */
2485
- on(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2486
- on(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2487
- on(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2488
- on(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2489
- on(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2490
- /**
2491
- * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
2492
- */
2493
- on(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2494
- /**
2495
- * If heap objects tracking has been started then backend may send update for one or more fragments
2496
- */
2497
- on(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2498
- /**
2499
- * Contains an bucket of collected trace events.
2500
- */
2501
- on(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2502
- /**
2503
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2504
- * delivered via dataCollected events.
2505
- */
2506
- on(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2507
- /**
2508
- * Issued when attached to a worker.
2509
- */
2510
- on(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2511
- /**
2512
- * Issued when detached from the worker.
2513
- */
2514
- on(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2515
- /**
2516
- * Notifies about a new protocol message received from the session
2517
- * (session ID is provided in attachedToWorker notification).
2518
- */
2519
- on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2520
- /**
2521
- * Fired when page is about to send HTTP request.
2522
- */
2523
- on(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
2524
- /**
2525
- * Fired when HTTP response is available.
2526
- */
2527
- on(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
2528
- on(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
2529
- on(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
2530
- /**
2531
- * This event is fired instead of `Runtime.executionContextDestroyed` when
2532
- * enabled.
2533
- * It is fired when the Node process finished all code execution and is
2534
- * waiting for all frontends to disconnect.
2535
- */
2536
- on(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2537
- /**
2538
- * This event is fired when the runtime is waiting for the debugger. For
2539
- * example, when inspector.waitingForDebugger is called
2540
- */
2541
- on(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
2542
- once(event: string, listener: (...args: any[]) => void): this;
2543
- /**
2544
- * Emitted when any notification from the V8 Inspector is received.
2545
- */
2546
- once(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
2547
- /**
2548
- * Issued when new execution context is created.
2549
- */
2550
- once(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2551
- /**
2552
- * Issued when execution context is destroyed.
2553
- */
2554
- once(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2555
- /**
2556
- * Issued when all executionContexts were cleared in browser
2557
- */
2558
- once(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2559
- /**
2560
- * Issued when exception was thrown and unhandled.
2561
- */
2562
- once(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2563
- /**
2564
- * Issued when unhandled exception was revoked.
2565
- */
2566
- once(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2567
- /**
2568
- * Issued when console API was called.
2569
- */
2570
- once(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2571
- /**
2572
- * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2573
- */
2574
- once(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2575
- /**
2576
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2577
- */
2578
- once(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2579
- /**
2580
- * Fired when virtual machine fails to parse the script.
2581
- */
2582
- once(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2583
- /**
2584
- * Fired when breakpoint is resolved to an actual script and location.
2585
- */
2586
- once(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2587
- /**
2588
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2589
- */
2590
- once(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2591
- /**
2592
- * Fired when the virtual machine resumed execution.
2593
- */
2594
- once(event: 'Debugger.resumed', listener: () => void): this;
2595
- /**
2596
- * Issued when new console message is added.
2597
- */
2598
- once(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2599
- /**
2600
- * Sent when new profile recording is started using console.profile() call.
2601
- */
2602
- once(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2603
- once(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2604
- once(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2605
- once(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2606
- once(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2607
- /**
2608
- * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
2609
- */
2610
- once(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2611
- /**
2612
- * If heap objects tracking has been started then backend may send update for one or more fragments
2613
- */
2614
- once(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2615
- /**
2616
- * Contains an bucket of collected trace events.
2617
- */
2618
- once(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2619
- /**
2620
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2621
- * delivered via dataCollected events.
2622
- */
2623
- once(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2624
- /**
2625
- * Issued when attached to a worker.
2626
- */
2627
- once(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2628
- /**
2629
- * Issued when detached from the worker.
2630
- */
2631
- once(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2632
- /**
2633
- * Notifies about a new protocol message received from the session
2634
- * (session ID is provided in attachedToWorker notification).
2635
- */
2636
- once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2637
- /**
2638
- * Fired when page is about to send HTTP request.
2639
- */
2640
- once(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
2641
- /**
2642
- * Fired when HTTP response is available.
2643
- */
2644
- once(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
2645
- once(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
2646
- once(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
2647
- /**
2648
- * This event is fired instead of `Runtime.executionContextDestroyed` when
2649
- * enabled.
2650
- * It is fired when the Node process finished all code execution and is
2651
- * waiting for all frontends to disconnect.
2652
- */
2653
- once(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2654
- /**
2655
- * This event is fired when the runtime is waiting for the debugger. For
2656
- * example, when inspector.waitingForDebugger is called
2657
- */
2658
- once(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
2659
- prependListener(event: string, listener: (...args: any[]) => void): this;
2660
- /**
2661
- * Emitted when any notification from the V8 Inspector is received.
2662
- */
2663
- prependListener(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
2664
- /**
2665
- * Issued when new execution context is created.
2666
- */
2667
- prependListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2668
- /**
2669
- * Issued when execution context is destroyed.
2670
- */
2671
- prependListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2672
- /**
2673
- * Issued when all executionContexts were cleared in browser
2674
- */
2675
- prependListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2676
- /**
2677
- * Issued when exception was thrown and unhandled.
2678
- */
2679
- prependListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2680
- /**
2681
- * Issued when unhandled exception was revoked.
2682
- */
2683
- prependListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2684
- /**
2685
- * Issued when console API was called.
2686
- */
2687
- prependListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2688
- /**
2689
- * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2690
- */
2691
- prependListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2692
- /**
2693
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2694
- */
2695
- prependListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2696
- /**
2697
- * Fired when virtual machine fails to parse the script.
2698
- */
2699
- prependListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2700
- /**
2701
- * Fired when breakpoint is resolved to an actual script and location.
2702
- */
2703
- prependListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2704
- /**
2705
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2706
- */
2707
- prependListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2708
- /**
2709
- * Fired when the virtual machine resumed execution.
2710
- */
2711
- prependListener(event: 'Debugger.resumed', listener: () => void): this;
2712
- /**
2713
- * Issued when new console message is added.
2714
- */
2715
- prependListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2716
- /**
2717
- * Sent when new profile recording is started using console.profile() call.
2718
- */
2719
- prependListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2720
- prependListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2721
- prependListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2722
- prependListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2723
- prependListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2724
- /**
2725
- * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
2726
- */
2727
- prependListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2728
- /**
2729
- * If heap objects tracking has been started then backend may send update for one or more fragments
2730
- */
2731
- prependListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2732
- /**
2733
- * Contains an bucket of collected trace events.
2734
- */
2735
- prependListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2736
- /**
2737
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2738
- * delivered via dataCollected events.
2739
- */
2740
- prependListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2741
- /**
2742
- * Issued when attached to a worker.
2743
- */
2744
- prependListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2745
- /**
2746
- * Issued when detached from the worker.
2747
- */
2748
- prependListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2749
- /**
2750
- * Notifies about a new protocol message received from the session
2751
- * (session ID is provided in attachedToWorker notification).
2752
- */
2753
- prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2754
- /**
2755
- * Fired when page is about to send HTTP request.
2756
- */
2757
- prependListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
2758
- /**
2759
- * Fired when HTTP response is available.
2760
- */
2761
- prependListener(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
2762
- prependListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
2763
- prependListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
2764
- /**
2765
- * This event is fired instead of `Runtime.executionContextDestroyed` when
2766
- * enabled.
2767
- * It is fired when the Node process finished all code execution and is
2768
- * waiting for all frontends to disconnect.
2769
- */
2770
- prependListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2771
- /**
2772
- * This event is fired when the runtime is waiting for the debugger. For
2773
- * example, when inspector.waitingForDebugger is called
2774
- */
2775
- prependListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
2776
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
2777
- /**
2778
- * Emitted when any notification from the V8 Inspector is received.
2779
- */
2780
- prependOnceListener(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
2781
- /**
2782
- * Issued when new execution context is created.
2783
- */
2784
- prependOnceListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2785
- /**
2786
- * Issued when execution context is destroyed.
2787
- */
2788
- prependOnceListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2789
- /**
2790
- * Issued when all executionContexts were cleared in browser
2791
- */
2792
- prependOnceListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2793
- /**
2794
- * Issued when exception was thrown and unhandled.
2795
- */
2796
- prependOnceListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2797
- /**
2798
- * Issued when unhandled exception was revoked.
2799
- */
2800
- prependOnceListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2801
- /**
2802
- * Issued when console API was called.
2803
- */
2804
- prependOnceListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2805
- /**
2806
- * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2807
- */
2808
- prependOnceListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2809
- /**
2810
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2811
- */
2812
- prependOnceListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2813
- /**
2814
- * Fired when virtual machine fails to parse the script.
2815
- */
2816
- prependOnceListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2817
- /**
2818
- * Fired when breakpoint is resolved to an actual script and location.
2819
- */
2820
- prependOnceListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2821
- /**
2822
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2823
- */
2824
- prependOnceListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2825
- /**
2826
- * Fired when the virtual machine resumed execution.
2827
- */
2828
- prependOnceListener(event: 'Debugger.resumed', listener: () => void): this;
2829
- /**
2830
- * Issued when new console message is added.
2831
- */
2832
- prependOnceListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2833
- /**
2834
- * Sent when new profile recording is started using console.profile() call.
2835
- */
2836
- prependOnceListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2837
- prependOnceListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2838
- prependOnceListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2839
- prependOnceListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2840
- prependOnceListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2841
- /**
2842
- * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
2843
- */
2844
- prependOnceListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2845
- /**
2846
- * If heap objects tracking has been started then backend may send update for one or more fragments
2847
- */
2848
- prependOnceListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2849
- /**
2850
- * Contains an bucket of collected trace events.
2851
- */
2852
- prependOnceListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2853
- /**
2854
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2855
- * delivered via dataCollected events.
2856
- */
2857
- prependOnceListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2858
- /**
2859
- * Issued when attached to a worker.
2860
- */
2861
- prependOnceListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2862
- /**
2863
- * Issued when detached from the worker.
2864
- */
2865
- prependOnceListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2866
- /**
2867
- * Notifies about a new protocol message received from the session
2868
- * (session ID is provided in attachedToWorker notification).
2869
- */
2870
- prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2871
- /**
2872
- * Fired when page is about to send HTTP request.
2873
- */
2874
- prependOnceListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
2875
- /**
2876
- * Fired when HTTP response is available.
2877
- */
2878
- prependOnceListener(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
2879
- prependOnceListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
2880
- prependOnceListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
2881
- /**
2882
- * This event is fired instead of `Runtime.executionContextDestroyed` when
2883
- * enabled.
2884
- * It is fired when the Node process finished all code execution and is
2885
- * waiting for all frontends to disconnect.
2886
- */
2887
- prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2888
- /**
2889
- * This event is fired when the runtime is waiting for the debugger. For
2890
- * example, when inspector.waitingForDebugger is called
2891
- */
2892
- prependOnceListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
2893
- }
2894
-
2895
- /**
2896
- * Activate inspector on host and port. Equivalent to `node --inspect=[[host:]port]`, but can be done programmatically after node has
2897
- * started.
2898
- *
2899
- * If wait is `true`, will block until a client has connected to the inspect port
2900
- * and flow control has been passed to the debugger client.
2901
- *
2902
- * See the [security warning](https://nodejs.org/docs/latest-v24.x/api/cli.html#warning-binding-inspector-to-a-public-ipport-combination-is-insecure)
2903
- * regarding the `host` parameter usage.
2904
- * @param port Port to listen on for inspector connections. Defaults to what was specified on the CLI.
2905
- * @param host Host to listen on for inspector connections. Defaults to what was specified on the CLI.
2906
- * @param wait Block until a client has connected. Defaults to what was specified on the CLI.
2907
- * @returns Disposable that calls `inspector.close()`.
2908
- */
2909
- function open(port?: number, host?: string, wait?: boolean): Disposable;
2910
-
2911
- /**
2912
- * Deactivate the inspector. Blocks until there are no active connections.
2913
- */
2914
- function close(): void;
2915
-
2916
- /**
2917
- * Return the URL of the active inspector, or `undefined` if there is none.
2918
- *
2919
- * ```console
2920
- * $ node --inspect -p 'inspector.url()'
2921
- * Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
2922
- * For help, see: https://nodejs.org/en/docs/inspector
2923
- * ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
2924
- *
2925
- * $ node --inspect=localhost:3000 -p 'inspector.url()'
2926
- * Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
2927
- * For help, see: https://nodejs.org/en/docs/inspector
2928
- * ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
2929
- *
2930
- * $ node -p 'inspector.url()'
2931
- * undefined
2932
- * ```
2933
- */
2934
- function url(): string | undefined;
2935
-
2936
- /**
2937
- * Blocks until a client (existing or connected later) has sent `Runtime.runIfWaitingForDebugger` command.
2938
- *
2939
- * An exception will be thrown if there is no active inspector.
2940
- * @since v12.7.0
2941
- */
2942
- function waitForDebugger(): void;
2943
-
2944
- // These methods are exposed by the V8 inspector console API (inspector/v8-console.h).
2945
- // The method signatures differ from those of the Node.js console, and are deliberately
2946
- // typed permissively.
2947
- interface InspectorConsole {
2948
- debug(...data: any[]): void;
2949
- error(...data: any[]): void;
2950
- info(...data: any[]): void;
2951
- log(...data: any[]): void;
2952
- warn(...data: any[]): void;
2953
- dir(...data: any[]): void;
2954
- dirxml(...data: any[]): void;
2955
- table(...data: any[]): void;
2956
- trace(...data: any[]): void;
2957
- group(...data: any[]): void;
2958
- groupCollapsed(...data: any[]): void;
2959
- groupEnd(...data: any[]): void;
2960
- clear(...data: any[]): void;
2961
- count(label?: any): void;
2962
- countReset(label?: any): void;
2963
- assert(value?: any, ...data: any[]): void;
2964
- profile(label?: any): void;
2965
- profileEnd(label?: any): void;
2966
- time(label?: any): void;
2967
- timeLog(label?: any): void;
2968
- timeStamp(label?: any): void;
2969
- }
2970
-
2971
- /**
2972
- * An object to send messages to the remote inspector console.
2973
- * @since v11.0.0
2974
- */
2975
- const console: InspectorConsole;
2976
-
2977
- // DevTools protocol event broadcast methods
2978
- namespace Network {
2979
- /**
2980
- * This feature is only available with the `--experimental-network-inspection` flag enabled.
2981
- *
2982
- * Broadcasts the `Network.requestWillBeSent` event to connected frontends. This event indicates that
2983
- * the application is about to send an HTTP request.
2984
- * @since v22.6.0
2985
- */
2986
- function requestWillBeSent(params: RequestWillBeSentEventDataType): void;
2987
- /**
2988
- * This feature is only available with the `--experimental-network-inspection` flag enabled.
2989
- *
2990
- * Broadcasts the `Network.responseReceived` event to connected frontends. This event indicates that
2991
- * HTTP response is available.
2992
- * @since v22.6.0
2993
- */
2994
- function responseReceived(params: ResponseReceivedEventDataType): void;
2995
- /**
2996
- * This feature is only available with the `--experimental-network-inspection` flag enabled.
2997
- *
2998
- * Broadcasts the `Network.loadingFinished` event to connected frontends. This event indicates that
2999
- * HTTP request has finished loading.
3000
- * @since v22.6.0
3001
- */
3002
- function loadingFinished(params: LoadingFinishedEventDataType): void;
3003
- /**
3004
- * This feature is only available with the `--experimental-network-inspection` flag enabled.
3005
- *
3006
- * Broadcasts the `Network.loadingFailed` event to connected frontends. This event indicates that
3007
- * HTTP request has failed to load.
3008
- * @since v22.7.0
3009
- */
3010
- function loadingFailed(params: LoadingFailedEventDataType): void;
3011
- }
3012
- }
3013
- declare module "node:inspector/promises" {
3014
- import EventEmitter = require('node:events');
3015
- import {
3016
- open,
3017
- close,
3018
- url,
3019
- waitForDebugger,
3020
- console,
3021
- InspectorNotification,
3022
- Schema,
3023
- Runtime,
3024
- Debugger,
3025
- Console,
3026
- Profiler,
3027
- HeapProfiler,
3028
- NodeTracing,
3029
- NodeWorker,
3030
- Network,
3031
- NodeRuntime,
3032
- } from 'node:inspector';
3033
-
3034
- /**
3035
- * The `inspector.Session` is used for dispatching messages to the V8 inspector
3036
- * back-end and receiving message responses and notifications.
3037
- * @since v19.0.0
3038
- */
3039
- class Session extends EventEmitter {
3040
- /**
3041
- * Create a new instance of the `inspector.Session` class.
3042
- * The inspector session needs to be connected through `session.connect()` before the messages can be dispatched to the inspector backend.
3043
- */
3044
- constructor();
3045
-
3046
- /**
3047
- * Connects a session to the inspector back-end.
3048
- */
3049
- connect(): void;
3050
-
3051
- /**
3052
- * Connects a session to the inspector back-end.
3053
- * An exception will be thrown if this API was not called on a Worker thread.
3054
- */
3055
- connectToMainThread(): void;
3056
-
3057
- /**
3058
- * Immediately close the session. All pending message callbacks will be called with an error.
3059
- * `session.connect()` will need to be called to be able to send messages again.
3060
- * Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints.
3061
- */
3062
- disconnect(): void;
3063
-
3064
- /**
3065
- * Posts a message to the inspector back-end.
3066
- *
3067
- * ```js
3068
- * import { Session } from 'node:inspector/promises';
3069
- * try {
3070
- * const session = new Session();
3071
- * session.connect();
3072
- * const result = await session.post('Runtime.evaluate', { expression: '2 + 2' });
3073
- * console.log(result);
3074
- * } catch (error) {
3075
- * console.error(error);
3076
- * }
3077
- * // Output: { result: { type: 'number', value: 4, description: '4' } }
3078
- * ```
3079
- *
3080
- * The latest version of the V8 inspector protocol is published on the
3081
- * [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/).
3082
- *
3083
- * Node.js inspector supports all the Chrome DevTools Protocol domains declared
3084
- * by V8. Chrome DevTools Protocol domain provides an interface for interacting
3085
- * with one of the runtime agents used to inspect the application state and listen
3086
- * to the run-time events.
3087
- */
3088
- post(method: string, params?: object): Promise<void>;
3089
- /**
3090
- * Returns supported domains.
3091
- */
3092
- post(method: 'Schema.getDomains'): Promise<Schema.GetDomainsReturnType>;
3093
- /**
3094
- * Evaluates expression on global object.
3095
- */
3096
- post(method: 'Runtime.evaluate', params?: Runtime.EvaluateParameterType): Promise<Runtime.EvaluateReturnType>;
3097
- /**
3098
- * Add handler to promise with given promise object id.
3099
- */
3100
- post(method: 'Runtime.awaitPromise', params?: Runtime.AwaitPromiseParameterType): Promise<Runtime.AwaitPromiseReturnType>;
3101
- /**
3102
- * Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
3103
- */
3104
- post(method: 'Runtime.callFunctionOn', params?: Runtime.CallFunctionOnParameterType): Promise<Runtime.CallFunctionOnReturnType>;
3105
- /**
3106
- * Returns properties of a given object. Object group of the result is inherited from the target object.
3107
- */
3108
- post(method: 'Runtime.getProperties', params?: Runtime.GetPropertiesParameterType): Promise<Runtime.GetPropertiesReturnType>;
3109
- /**
3110
- * Releases remote object with given id.
3111
- */
3112
- post(method: 'Runtime.releaseObject', params?: Runtime.ReleaseObjectParameterType): Promise<void>;
3113
- /**
3114
- * Releases all remote objects that belong to a given group.
3115
- */
3116
- post(method: 'Runtime.releaseObjectGroup', params?: Runtime.ReleaseObjectGroupParameterType): Promise<void>;
3117
- /**
3118
- * Tells inspected instance to run if it was waiting for debugger to attach.
3119
- */
3120
- post(method: 'Runtime.runIfWaitingForDebugger'): Promise<void>;
3121
- /**
3122
- * Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context.
3123
- */
3124
- post(method: 'Runtime.enable'): Promise<void>;
3125
- /**
3126
- * Disables reporting of execution contexts creation.
3127
- */
3128
- post(method: 'Runtime.disable'): Promise<void>;
3129
- /**
3130
- * Discards collected exceptions and console API calls.
3131
- */
3132
- post(method: 'Runtime.discardConsoleEntries'): Promise<void>;
3133
- /**
3134
- * @experimental
3135
- */
3136
- post(method: 'Runtime.setCustomObjectFormatterEnabled', params?: Runtime.SetCustomObjectFormatterEnabledParameterType): Promise<void>;
3137
- /**
3138
- * Compiles expression.
3139
- */
3140
- post(method: 'Runtime.compileScript', params?: Runtime.CompileScriptParameterType): Promise<Runtime.CompileScriptReturnType>;
3141
- /**
3142
- * Runs script with given id in a given context.
3143
- */
3144
- post(method: 'Runtime.runScript', params?: Runtime.RunScriptParameterType): Promise<Runtime.RunScriptReturnType>;
3145
- post(method: 'Runtime.queryObjects', params?: Runtime.QueryObjectsParameterType): Promise<Runtime.QueryObjectsReturnType>;
3146
- /**
3147
- * Returns all let, const and class variables from global scope.
3148
- */
3149
- post(method: 'Runtime.globalLexicalScopeNames', params?: Runtime.GlobalLexicalScopeNamesParameterType): Promise<Runtime.GlobalLexicalScopeNamesReturnType>;
3150
- /**
3151
- * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
3152
- */
3153
- post(method: 'Debugger.enable'): Promise<Debugger.EnableReturnType>;
3154
- /**
3155
- * Disables debugger for given page.
3156
- */
3157
- post(method: 'Debugger.disable'): Promise<void>;
3158
- /**
3159
- * Activates / deactivates all breakpoints on the page.
3160
- */
3161
- post(method: 'Debugger.setBreakpointsActive', params?: Debugger.SetBreakpointsActiveParameterType): Promise<void>;
3162
- /**
3163
- * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
3164
- */
3165
- post(method: 'Debugger.setSkipAllPauses', params?: Debugger.SetSkipAllPausesParameterType): Promise<void>;
3166
- /**
3167
- * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads.
3168
- */
3169
- post(method: 'Debugger.setBreakpointByUrl', params?: Debugger.SetBreakpointByUrlParameterType): Promise<Debugger.SetBreakpointByUrlReturnType>;
3170
- /**
3171
- * Sets JavaScript breakpoint at a given location.
3172
- */
3173
- post(method: 'Debugger.setBreakpoint', params?: Debugger.SetBreakpointParameterType): Promise<Debugger.SetBreakpointReturnType>;
3174
- /**
3175
- * Removes JavaScript breakpoint.
3176
- */
3177
- post(method: 'Debugger.removeBreakpoint', params?: Debugger.RemoveBreakpointParameterType): Promise<void>;
3178
- /**
3179
- * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
3180
- */
3181
- post(method: 'Debugger.getPossibleBreakpoints', params?: Debugger.GetPossibleBreakpointsParameterType): Promise<Debugger.GetPossibleBreakpointsReturnType>;
3182
- /**
3183
- * Continues execution until specific location is reached.
3184
- */
3185
- post(method: 'Debugger.continueToLocation', params?: Debugger.ContinueToLocationParameterType): Promise<void>;
3186
- /**
3187
- * @experimental
3188
- */
3189
- post(method: 'Debugger.pauseOnAsyncCall', params?: Debugger.PauseOnAsyncCallParameterType): Promise<void>;
3190
- /**
3191
- * Steps over the statement.
3192
- */
3193
- post(method: 'Debugger.stepOver'): Promise<void>;
3194
- /**
3195
- * Steps into the function call.
3196
- */
3197
- post(method: 'Debugger.stepInto', params?: Debugger.StepIntoParameterType): Promise<void>;
3198
- /**
3199
- * Steps out of the function call.
3200
- */
3201
- post(method: 'Debugger.stepOut'): Promise<void>;
3202
- /**
3203
- * Stops on the next JavaScript statement.
3204
- */
3205
- post(method: 'Debugger.pause'): Promise<void>;
3206
- /**
3207
- * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called.
3208
- * @experimental
3209
- */
3210
- post(method: 'Debugger.scheduleStepIntoAsync'): Promise<void>;
3211
- /**
3212
- * Resumes JavaScript execution.
3213
- */
3214
- post(method: 'Debugger.resume'): Promise<void>;
3215
- /**
3216
- * Returns stack trace with given <code>stackTraceId</code>.
3217
- * @experimental
3218
- */
3219
- post(method: 'Debugger.getStackTrace', params?: Debugger.GetStackTraceParameterType): Promise<Debugger.GetStackTraceReturnType>;
3220
- /**
3221
- * Searches for given string in script content.
3222
- */
3223
- post(method: 'Debugger.searchInContent', params?: Debugger.SearchInContentParameterType): Promise<Debugger.SearchInContentReturnType>;
3224
- /**
3225
- * Edits JavaScript source live.
3226
- */
3227
- post(method: 'Debugger.setScriptSource', params?: Debugger.SetScriptSourceParameterType): Promise<Debugger.SetScriptSourceReturnType>;
3228
- /**
3229
- * Restarts particular call frame from the beginning.
3230
- */
3231
- post(method: 'Debugger.restartFrame', params?: Debugger.RestartFrameParameterType): Promise<Debugger.RestartFrameReturnType>;
3232
- /**
3233
- * Returns source for the script with given id.
3234
- */
3235
- post(method: 'Debugger.getScriptSource', params?: Debugger.GetScriptSourceParameterType): Promise<Debugger.GetScriptSourceReturnType>;
3236
- /**
3237
- * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>.
3238
- */
3239
- post(method: 'Debugger.setPauseOnExceptions', params?: Debugger.SetPauseOnExceptionsParameterType): Promise<void>;
3240
- /**
3241
- * Evaluates expression on a given call frame.
3242
- */
3243
- post(method: 'Debugger.evaluateOnCallFrame', params?: Debugger.EvaluateOnCallFrameParameterType): Promise<Debugger.EvaluateOnCallFrameReturnType>;
3244
- /**
3245
- * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
3246
- */
3247
- post(method: 'Debugger.setVariableValue', params?: Debugger.SetVariableValueParameterType): Promise<void>;
3248
- /**
3249
- * Changes return value in top frame. Available only at return break position.
3250
- * @experimental
3251
- */
3252
- post(method: 'Debugger.setReturnValue', params?: Debugger.SetReturnValueParameterType): Promise<void>;
3253
- /**
3254
- * Enables or disables async call stacks tracking.
3255
- */
3256
- post(method: 'Debugger.setAsyncCallStackDepth', params?: Debugger.SetAsyncCallStackDepthParameterType): Promise<void>;
3257
- /**
3258
- * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
3259
- * @experimental
3260
- */
3261
- post(method: 'Debugger.setBlackboxPatterns', params?: Debugger.SetBlackboxPatternsParameterType): Promise<void>;
3262
- /**
3263
- * Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted.
3264
- * @experimental
3265
- */
3266
- post(method: 'Debugger.setBlackboxedRanges', params?: Debugger.SetBlackboxedRangesParameterType): Promise<void>;
3267
- /**
3268
- * Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification.
3269
- */
3270
- post(method: 'Console.enable'): Promise<void>;
3271
- /**
3272
- * Disables console domain, prevents further console messages from being reported to the client.
3273
- */
3274
- post(method: 'Console.disable'): Promise<void>;
3275
- /**
3276
- * Does nothing.
3277
- */
3278
- post(method: 'Console.clearMessages'): Promise<void>;
3279
- post(method: 'Profiler.enable'): Promise<void>;
3280
- post(method: 'Profiler.disable'): Promise<void>;
3281
- /**
3282
- * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
3283
- */
3284
- post(method: 'Profiler.setSamplingInterval', params?: Profiler.SetSamplingIntervalParameterType): Promise<void>;
3285
- post(method: 'Profiler.start'): Promise<void>;
3286
- post(method: 'Profiler.stop'): Promise<Profiler.StopReturnType>;
3287
- /**
3288
- * Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.
3289
- */
3290
- post(method: 'Profiler.startPreciseCoverage', params?: Profiler.StartPreciseCoverageParameterType): Promise<void>;
3291
- /**
3292
- * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
3293
- */
3294
- post(method: 'Profiler.stopPreciseCoverage'): Promise<void>;
3295
- /**
3296
- * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
3297
- */
3298
- post(method: 'Profiler.takePreciseCoverage'): Promise<Profiler.TakePreciseCoverageReturnType>;
3299
- /**
3300
- * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
3301
- */
3302
- post(method: 'Profiler.getBestEffortCoverage'): Promise<Profiler.GetBestEffortCoverageReturnType>;
3303
- post(method: 'HeapProfiler.enable'): Promise<void>;
3304
- post(method: 'HeapProfiler.disable'): Promise<void>;
3305
- post(method: 'HeapProfiler.startTrackingHeapObjects', params?: HeapProfiler.StartTrackingHeapObjectsParameterType): Promise<void>;
3306
- post(method: 'HeapProfiler.stopTrackingHeapObjects', params?: HeapProfiler.StopTrackingHeapObjectsParameterType): Promise<void>;
3307
- post(method: 'HeapProfiler.takeHeapSnapshot', params?: HeapProfiler.TakeHeapSnapshotParameterType): Promise<void>;
3308
- post(method: 'HeapProfiler.collectGarbage'): Promise<void>;
3309
- post(method: 'HeapProfiler.getObjectByHeapObjectId', params?: HeapProfiler.GetObjectByHeapObjectIdParameterType): Promise<HeapProfiler.GetObjectByHeapObjectIdReturnType>;
3310
- /**
3311
- * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
3312
- */
3313
- post(method: 'HeapProfiler.addInspectedHeapObject', params?: HeapProfiler.AddInspectedHeapObjectParameterType): Promise<void>;
3314
- post(method: 'HeapProfiler.getHeapObjectId', params?: HeapProfiler.GetHeapObjectIdParameterType): Promise<HeapProfiler.GetHeapObjectIdReturnType>;
3315
- post(method: 'HeapProfiler.startSampling', params?: HeapProfiler.StartSamplingParameterType): Promise<void>;
3316
- post(method: 'HeapProfiler.stopSampling'): Promise<HeapProfiler.StopSamplingReturnType>;
3317
- post(method: 'HeapProfiler.getSamplingProfile'): Promise<HeapProfiler.GetSamplingProfileReturnType>;
3318
- /**
3319
- * Gets supported tracing categories.
3320
- */
3321
- post(method: 'NodeTracing.getCategories'): Promise<NodeTracing.GetCategoriesReturnType>;
3322
- /**
3323
- * Start trace events collection.
3324
- */
3325
- post(method: 'NodeTracing.start', params?: NodeTracing.StartParameterType): Promise<void>;
3326
- /**
3327
- * Stop trace events collection. Remaining collected events will be sent as a sequence of
3328
- * dataCollected events followed by tracingComplete event.
3329
- */
3330
- post(method: 'NodeTracing.stop'): Promise<void>;
3331
- /**
3332
- * Sends protocol message over session with given id.
3333
- */
3334
- post(method: 'NodeWorker.sendMessageToWorker', params?: NodeWorker.SendMessageToWorkerParameterType): Promise<void>;
3335
- /**
3336
- * Instructs the inspector to attach to running workers. Will also attach to new workers
3337
- * as they start
3338
- */
3339
- post(method: 'NodeWorker.enable', params?: NodeWorker.EnableParameterType): Promise<void>;
3340
- /**
3341
- * Detaches from all running workers and disables attaching to new workers as they are started.
3342
- */
3343
- post(method: 'NodeWorker.disable'): Promise<void>;
3344
- /**
3345
- * Detached from the worker with given sessionId.
3346
- */
3347
- post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType): Promise<void>;
3348
- /**
3349
- * Disables network tracking, prevents network events from being sent to the client.
3350
- */
3351
- post(method: 'Network.disable'): Promise<void>;
3352
- /**
3353
- * Enables network tracking, network events will now be delivered to the client.
3354
- */
3355
- post(method: 'Network.enable'): Promise<void>;
3356
- /**
3357
- * Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`.
3358
- */
3359
- post(method: 'NodeRuntime.enable'): Promise<void>;
3360
- /**
3361
- * Disable NodeRuntime events
3362
- */
3363
- post(method: 'NodeRuntime.disable'): Promise<void>;
3364
- /**
3365
- * Enable the `NodeRuntime.waitingForDisconnect`.
3366
- */
3367
- post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType): Promise<void>;
3368
-
3369
- addListener(event: string, listener: (...args: any[]) => void): this;
3370
- /**
3371
- * Emitted when any notification from the V8 Inspector is received.
3372
- */
3373
- addListener(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
3374
- /**
3375
- * Issued when new execution context is created.
3376
- */
3377
- addListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
3378
- /**
3379
- * Issued when execution context is destroyed.
3380
- */
3381
- addListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
3382
- /**
3383
- * Issued when all executionContexts were cleared in browser
3384
- */
3385
- addListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
3386
- /**
3387
- * Issued when exception was thrown and unhandled.
3388
- */
3389
- addListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
3390
- /**
3391
- * Issued when unhandled exception was revoked.
3392
- */
3393
- addListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
3394
- /**
3395
- * Issued when console API was called.
3396
- */
3397
- addListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
3398
- /**
3399
- * Issued when object should be inspected (for example, as a result of inspect() command line API call).
3400
- */
3401
- addListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
3402
- /**
3403
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
3404
- */
3405
- addListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
3406
- /**
3407
- * Fired when virtual machine fails to parse the script.
3408
- */
3409
- addListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
3410
- /**
3411
- * Fired when breakpoint is resolved to an actual script and location.
3412
- */
3413
- addListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
3414
- /**
3415
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
3416
- */
3417
- addListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
3418
- /**
3419
- * Fired when the virtual machine resumed execution.
3420
- */
3421
- addListener(event: 'Debugger.resumed', listener: () => void): this;
3422
- /**
3423
- * Issued when new console message is added.
3424
- */
3425
- addListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
3426
- /**
3427
- * Sent when new profile recording is started using console.profile() call.
3428
- */
3429
- addListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
3430
- addListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
3431
- addListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
3432
- addListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
3433
- addListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
3434
- /**
3435
- * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
3436
- */
3437
- addListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
3438
- /**
3439
- * If heap objects tracking has been started then backend may send update for one or more fragments
3440
- */
3441
- addListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
3442
- /**
3443
- * Contains an bucket of collected trace events.
3444
- */
3445
- addListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3446
- /**
3447
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3448
- * delivered via dataCollected events.
3449
- */
3450
- addListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
3451
- /**
3452
- * Issued when attached to a worker.
3453
- */
3454
- addListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3455
- /**
3456
- * Issued when detached from the worker.
3457
- */
3458
- addListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3459
- /**
3460
- * Notifies about a new protocol message received from the session
3461
- * (session ID is provided in attachedToWorker notification).
3462
- */
3463
- addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3464
- /**
3465
- * Fired when page is about to send HTTP request.
3466
- */
3467
- addListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
3468
- /**
3469
- * Fired when HTTP response is available.
3470
- */
3471
- addListener(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
3472
- addListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
3473
- addListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
3474
- /**
3475
- * This event is fired instead of `Runtime.executionContextDestroyed` when
3476
- * enabled.
3477
- * It is fired when the Node process finished all code execution and is
3478
- * waiting for all frontends to disconnect.
3479
- */
3480
- addListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
3481
- /**
3482
- * This event is fired when the runtime is waiting for the debugger. For
3483
- * example, when inspector.waitingForDebugger is called
3484
- */
3485
- addListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
3486
- emit(event: string | symbol, ...args: any[]): boolean;
3487
- emit(event: 'inspectorNotification', message: InspectorNotification<object>): boolean;
3488
- emit(event: 'Runtime.executionContextCreated', message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
3489
- emit(event: 'Runtime.executionContextDestroyed', message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>): boolean;
3490
- emit(event: 'Runtime.executionContextsCleared'): boolean;
3491
- emit(event: 'Runtime.exceptionThrown', message: InspectorNotification<Runtime.ExceptionThrownEventDataType>): boolean;
3492
- emit(event: 'Runtime.exceptionRevoked', message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>): boolean;
3493
- emit(event: 'Runtime.consoleAPICalled', message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>): boolean;
3494
- emit(event: 'Runtime.inspectRequested', message: InspectorNotification<Runtime.InspectRequestedEventDataType>): boolean;
3495
- emit(event: 'Debugger.scriptParsed', message: InspectorNotification<Debugger.ScriptParsedEventDataType>): boolean;
3496
- emit(event: 'Debugger.scriptFailedToParse', message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>): boolean;
3497
- emit(event: 'Debugger.breakpointResolved', message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>): boolean;
3498
- emit(event: 'Debugger.paused', message: InspectorNotification<Debugger.PausedEventDataType>): boolean;
3499
- emit(event: 'Debugger.resumed'): boolean;
3500
- emit(event: 'Console.messageAdded', message: InspectorNotification<Console.MessageAddedEventDataType>): boolean;
3501
- emit(event: 'Profiler.consoleProfileStarted', message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>): boolean;
3502
- emit(event: 'Profiler.consoleProfileFinished', message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>): boolean;
3503
- emit(event: 'HeapProfiler.addHeapSnapshotChunk', message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>): boolean;
3504
- emit(event: 'HeapProfiler.resetProfiles'): boolean;
3505
- emit(event: 'HeapProfiler.reportHeapSnapshotProgress', message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
3506
- emit(event: 'HeapProfiler.lastSeenObjectId', message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
3507
- emit(event: 'HeapProfiler.heapStatsUpdate', message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
3508
- emit(event: 'NodeTracing.dataCollected', message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
3509
- emit(event: 'NodeTracing.tracingComplete'): boolean;
3510
- emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
3511
- emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
3512
- emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
3513
- emit(event: 'Network.requestWillBeSent', message: InspectorNotification<Network.RequestWillBeSentEventDataType>): boolean;
3514
- emit(event: 'Network.responseReceived', message: InspectorNotification<Network.ResponseReceivedEventDataType>): boolean;
3515
- emit(event: 'Network.loadingFailed', message: InspectorNotification<Network.LoadingFailedEventDataType>): boolean;
3516
- emit(event: 'Network.loadingFinished', message: InspectorNotification<Network.LoadingFinishedEventDataType>): boolean;
3517
- emit(event: 'NodeRuntime.waitingForDisconnect'): boolean;
3518
- emit(event: 'NodeRuntime.waitingForDebugger'): boolean;
3519
- on(event: string, listener: (...args: any[]) => void): this;
3520
- /**
3521
- * Emitted when any notification from the V8 Inspector is received.
3522
- */
3523
- on(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
3524
- /**
3525
- * Issued when new execution context is created.
3526
- */
3527
- on(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
3528
- /**
3529
- * Issued when execution context is destroyed.
3530
- */
3531
- on(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
3532
- /**
3533
- * Issued when all executionContexts were cleared in browser
3534
- */
3535
- on(event: 'Runtime.executionContextsCleared', listener: () => void): this;
3536
- /**
3537
- * Issued when exception was thrown and unhandled.
3538
- */
3539
- on(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
3540
- /**
3541
- * Issued when unhandled exception was revoked.
3542
- */
3543
- on(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
3544
- /**
3545
- * Issued when console API was called.
3546
- */
3547
- on(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
3548
- /**
3549
- * Issued when object should be inspected (for example, as a result of inspect() command line API call).
3550
- */
3551
- on(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
3552
- /**
3553
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
3554
- */
3555
- on(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
3556
- /**
3557
- * Fired when virtual machine fails to parse the script.
3558
- */
3559
- on(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
3560
- /**
3561
- * Fired when breakpoint is resolved to an actual script and location.
3562
- */
3563
- on(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
3564
- /**
3565
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
3566
- */
3567
- on(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
3568
- /**
3569
- * Fired when the virtual machine resumed execution.
3570
- */
3571
- on(event: 'Debugger.resumed', listener: () => void): this;
3572
- /**
3573
- * Issued when new console message is added.
3574
- */
3575
- on(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
3576
- /**
3577
- * Sent when new profile recording is started using console.profile() call.
3578
- */
3579
- on(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
3580
- on(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
3581
- on(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
3582
- on(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
3583
- on(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
3584
- /**
3585
- * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
3586
- */
3587
- on(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
3588
- /**
3589
- * If heap objects tracking has been started then backend may send update for one or more fragments
3590
- */
3591
- on(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
3592
- /**
3593
- * Contains an bucket of collected trace events.
3594
- */
3595
- on(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3596
- /**
3597
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3598
- * delivered via dataCollected events.
3599
- */
3600
- on(event: 'NodeTracing.tracingComplete', listener: () => void): this;
3601
- /**
3602
- * Issued when attached to a worker.
3603
- */
3604
- on(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3605
- /**
3606
- * Issued when detached from the worker.
3607
- */
3608
- on(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3609
- /**
3610
- * Notifies about a new protocol message received from the session
3611
- * (session ID is provided in attachedToWorker notification).
3612
- */
3613
- on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3614
- /**
3615
- * Fired when page is about to send HTTP request.
3616
- */
3617
- on(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
3618
- /**
3619
- * Fired when HTTP response is available.
3620
- */
3621
- on(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
3622
- on(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
3623
- on(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
3624
- /**
3625
- * This event is fired instead of `Runtime.executionContextDestroyed` when
3626
- * enabled.
3627
- * It is fired when the Node process finished all code execution and is
3628
- * waiting for all frontends to disconnect.
3629
- */
3630
- on(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
3631
- /**
3632
- * This event is fired when the runtime is waiting for the debugger. For
3633
- * example, when inspector.waitingForDebugger is called
3634
- */
3635
- on(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
3636
- once(event: string, listener: (...args: any[]) => void): this;
3637
- /**
3638
- * Emitted when any notification from the V8 Inspector is received.
3639
- */
3640
- once(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
3641
- /**
3642
- * Issued when new execution context is created.
3643
- */
3644
- once(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
3645
- /**
3646
- * Issued when execution context is destroyed.
3647
- */
3648
- once(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
3649
- /**
3650
- * Issued when all executionContexts were cleared in browser
3651
- */
3652
- once(event: 'Runtime.executionContextsCleared', listener: () => void): this;
3653
- /**
3654
- * Issued when exception was thrown and unhandled.
3655
- */
3656
- once(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
3657
- /**
3658
- * Issued when unhandled exception was revoked.
3659
- */
3660
- once(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
3661
- /**
3662
- * Issued when console API was called.
3663
- */
3664
- once(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
3665
- /**
3666
- * Issued when object should be inspected (for example, as a result of inspect() command line API call).
3667
- */
3668
- once(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
3669
- /**
3670
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
3671
- */
3672
- once(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
3673
- /**
3674
- * Fired when virtual machine fails to parse the script.
3675
- */
3676
- once(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
3677
- /**
3678
- * Fired when breakpoint is resolved to an actual script and location.
3679
- */
3680
- once(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
3681
- /**
3682
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
3683
- */
3684
- once(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
3685
- /**
3686
- * Fired when the virtual machine resumed execution.
3687
- */
3688
- once(event: 'Debugger.resumed', listener: () => void): this;
3689
- /**
3690
- * Issued when new console message is added.
3691
- */
3692
- once(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
3693
- /**
3694
- * Sent when new profile recording is started using console.profile() call.
3695
- */
3696
- once(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
3697
- once(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
3698
- once(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
3699
- once(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
3700
- once(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
3701
- /**
3702
- * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
3703
- */
3704
- once(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
3705
- /**
3706
- * If heap objects tracking has been started then backend may send update for one or more fragments
3707
- */
3708
- once(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
3709
- /**
3710
- * Contains an bucket of collected trace events.
3711
- */
3712
- once(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3713
- /**
3714
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3715
- * delivered via dataCollected events.
3716
- */
3717
- once(event: 'NodeTracing.tracingComplete', listener: () => void): this;
3718
- /**
3719
- * Issued when attached to a worker.
3720
- */
3721
- once(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3722
- /**
3723
- * Issued when detached from the worker.
3724
- */
3725
- once(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3726
- /**
3727
- * Notifies about a new protocol message received from the session
3728
- * (session ID is provided in attachedToWorker notification).
3729
- */
3730
- once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3731
- /**
3732
- * Fired when page is about to send HTTP request.
3733
- */
3734
- once(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
3735
- /**
3736
- * Fired when HTTP response is available.
3737
- */
3738
- once(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
3739
- once(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
3740
- once(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
3741
- /**
3742
- * This event is fired instead of `Runtime.executionContextDestroyed` when
3743
- * enabled.
3744
- * It is fired when the Node process finished all code execution and is
3745
- * waiting for all frontends to disconnect.
3746
- */
3747
- once(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
3748
- /**
3749
- * This event is fired when the runtime is waiting for the debugger. For
3750
- * example, when inspector.waitingForDebugger is called
3751
- */
3752
- once(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
3753
- prependListener(event: string, listener: (...args: any[]) => void): this;
3754
- /**
3755
- * Emitted when any notification from the V8 Inspector is received.
3756
- */
3757
- prependListener(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
3758
- /**
3759
- * Issued when new execution context is created.
3760
- */
3761
- prependListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
3762
- /**
3763
- * Issued when execution context is destroyed.
3764
- */
3765
- prependListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
3766
- /**
3767
- * Issued when all executionContexts were cleared in browser
3768
- */
3769
- prependListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
3770
- /**
3771
- * Issued when exception was thrown and unhandled.
3772
- */
3773
- prependListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
3774
- /**
3775
- * Issued when unhandled exception was revoked.
3776
- */
3777
- prependListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
3778
- /**
3779
- * Issued when console API was called.
3780
- */
3781
- prependListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
3782
- /**
3783
- * Issued when object should be inspected (for example, as a result of inspect() command line API call).
3784
- */
3785
- prependListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
3786
- /**
3787
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
3788
- */
3789
- prependListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
3790
- /**
3791
- * Fired when virtual machine fails to parse the script.
3792
- */
3793
- prependListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
3794
- /**
3795
- * Fired when breakpoint is resolved to an actual script and location.
3796
- */
3797
- prependListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
3798
- /**
3799
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
3800
- */
3801
- prependListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
3802
- /**
3803
- * Fired when the virtual machine resumed execution.
3804
- */
3805
- prependListener(event: 'Debugger.resumed', listener: () => void): this;
3806
- /**
3807
- * Issued when new console message is added.
3808
- */
3809
- prependListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
3810
- /**
3811
- * Sent when new profile recording is started using console.profile() call.
3812
- */
3813
- prependListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
3814
- prependListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
3815
- prependListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
3816
- prependListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
3817
- prependListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
3818
- /**
3819
- * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
3820
- */
3821
- prependListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
3822
- /**
3823
- * If heap objects tracking has been started then backend may send update for one or more fragments
3824
- */
3825
- prependListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
3826
- /**
3827
- * Contains an bucket of collected trace events.
3828
- */
3829
- prependListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3830
- /**
3831
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3832
- * delivered via dataCollected events.
3833
- */
3834
- prependListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
3835
- /**
3836
- * Issued when attached to a worker.
3837
- */
3838
- prependListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3839
- /**
3840
- * Issued when detached from the worker.
3841
- */
3842
- prependListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3843
- /**
3844
- * Notifies about a new protocol message received from the session
3845
- * (session ID is provided in attachedToWorker notification).
3846
- */
3847
- prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3848
- /**
3849
- * Fired when page is about to send HTTP request.
3850
- */
3851
- prependListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
3852
- /**
3853
- * Fired when HTTP response is available.
3854
- */
3855
- prependListener(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
3856
- prependListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
3857
- prependListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
3858
- /**
3859
- * This event is fired instead of `Runtime.executionContextDestroyed` when
3860
- * enabled.
3861
- * It is fired when the Node process finished all code execution and is
3862
- * waiting for all frontends to disconnect.
3863
- */
3864
- prependListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
3865
- /**
3866
- * This event is fired when the runtime is waiting for the debugger. For
3867
- * example, when inspector.waitingForDebugger is called
3868
- */
3869
- prependListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
3870
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
3871
- /**
3872
- * Emitted when any notification from the V8 Inspector is received.
3873
- */
3874
- prependOnceListener(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
3875
- /**
3876
- * Issued when new execution context is created.
3877
- */
3878
- prependOnceListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
3879
- /**
3880
- * Issued when execution context is destroyed.
3881
- */
3882
- prependOnceListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
3883
- /**
3884
- * Issued when all executionContexts were cleared in browser
3885
- */
3886
- prependOnceListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
3887
- /**
3888
- * Issued when exception was thrown and unhandled.
3889
- */
3890
- prependOnceListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
3891
- /**
3892
- * Issued when unhandled exception was revoked.
3893
- */
3894
- prependOnceListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
3895
- /**
3896
- * Issued when console API was called.
3897
- */
3898
- prependOnceListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
3899
- /**
3900
- * Issued when object should be inspected (for example, as a result of inspect() command line API call).
3901
- */
3902
- prependOnceListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
3903
- /**
3904
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
3905
- */
3906
- prependOnceListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
3907
- /**
3908
- * Fired when virtual machine fails to parse the script.
3909
- */
3910
- prependOnceListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
3911
- /**
3912
- * Fired when breakpoint is resolved to an actual script and location.
3913
- */
3914
- prependOnceListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
3915
- /**
3916
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
3917
- */
3918
- prependOnceListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
3919
- /**
3920
- * Fired when the virtual machine resumed execution.
3921
- */
3922
- prependOnceListener(event: 'Debugger.resumed', listener: () => void): this;
3923
- /**
3924
- * Issued when new console message is added.
3925
- */
3926
- prependOnceListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
3927
- /**
3928
- * Sent when new profile recording is started using console.profile() call.
3929
- */
3930
- prependOnceListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
3931
- prependOnceListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
3932
- prependOnceListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
3933
- prependOnceListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
3934
- prependOnceListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
3935
- /**
3936
- * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
3937
- */
3938
- prependOnceListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
3939
- /**
3940
- * If heap objects tracking has been started then backend may send update for one or more fragments
3941
- */
3942
- prependOnceListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
3943
- /**
3944
- * Contains an bucket of collected trace events.
3945
- */
3946
- prependOnceListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3947
- /**
3948
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3949
- * delivered via dataCollected events.
3950
- */
3951
- prependOnceListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
3952
- /**
3953
- * Issued when attached to a worker.
3954
- */
3955
- prependOnceListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3956
- /**
3957
- * Issued when detached from the worker.
3958
- */
3959
- prependOnceListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3960
- /**
3961
- * Notifies about a new protocol message received from the session
3962
- * (session ID is provided in attachedToWorker notification).
3963
- */
3964
- prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3965
- /**
3966
- * Fired when page is about to send HTTP request.
3967
- */
3968
- prependOnceListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
3969
- /**
3970
- * Fired when HTTP response is available.
3971
- */
3972
- prependOnceListener(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
3973
- prependOnceListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
3974
- prependOnceListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
3975
- /**
3976
- * This event is fired instead of `Runtime.executionContextDestroyed` when
3977
- * enabled.
3978
- * It is fired when the Node process finished all code execution and is
3979
- * waiting for all frontends to disconnect.
3980
- */
3981
- prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
3982
- /**
3983
- * This event is fired when the runtime is waiting for the debugger. For
3984
- * example, when inspector.waitingForDebugger is called
3985
- */
3986
- prependOnceListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
235
+ function put(url: string, data: string): void;
3987
236
  }
3988
-
3989
- export {
3990
- Session,
3991
- open,
3992
- close,
3993
- url,
3994
- waitForDebugger,
3995
- console,
3996
- InspectorNotification,
3997
- Schema,
3998
- Runtime,
3999
- Debugger,
4000
- Console,
4001
- Profiler,
4002
- HeapProfiler,
4003
- NodeTracing,
4004
- NodeWorker,
4005
- Network,
4006
- NodeRuntime,
4007
- };
4008
237
  }