@types/node 16.4.1 → 16.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
node/inspector.d.ts CHANGED
@@ -8,16 +8,22 @@
8
8
  // tslint:disable:max-line-length
9
9
 
10
10
  /**
11
- * The inspector module provides an API for interacting with the V8 inspector.
11
+ * The `inspector` module provides an API for interacting with the V8 inspector.
12
+ *
13
+ * It can be accessed using:
14
+ *
15
+ * ```js
16
+ * const inspector = require('inspector');
17
+ * ```
18
+ * @experimental
19
+ * @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/inspector.js)
12
20
  */
13
21
  declare module 'inspector' {
14
22
  import EventEmitter = require('node:events');
15
-
16
23
  interface InspectorNotification<T> {
17
24
  method: string;
18
25
  params: T;
19
26
  }
20
-
21
27
  namespace Schema {
22
28
  /**
23
29
  * Description of the protocol domain.
@@ -32,7 +38,6 @@ declare module 'inspector' {
32
38
  */
33
39
  version: string;
34
40
  }
35
-
36
41
  interface GetDomainsReturnType {
37
42
  /**
38
43
  * List of supported domains.
@@ -40,23 +45,19 @@ declare module 'inspector' {
40
45
  domains: Domain[];
41
46
  }
42
47
  }
43
-
44
48
  namespace Runtime {
45
49
  /**
46
50
  * Unique script identifier.
47
51
  */
48
52
  type ScriptId = string;
49
-
50
53
  /**
51
54
  * Unique object identifier.
52
55
  */
53
56
  type RemoteObjectId = string;
54
-
55
57
  /**
56
58
  * Primitive value which cannot be JSON-stringified.
57
59
  */
58
60
  type UnserializableValue = string;
59
-
60
61
  /**
61
62
  * Mirror object referencing original JavaScript object.
62
63
  */
@@ -99,7 +100,6 @@ declare module 'inspector' {
99
100
  */
100
101
  customPreview?: CustomPreview | undefined;
101
102
  }
102
-
103
103
  /**
104
104
  * @experimental
105
105
  */
@@ -110,7 +110,6 @@ declare module 'inspector' {
110
110
  bindRemoteObjectFunctionId: RemoteObjectId;
111
111
  configObjectId?: RemoteObjectId | undefined;
112
112
  }
113
-
114
113
  /**
115
114
  * Object containing abbreviated remote object value.
116
115
  * @experimental
@@ -141,7 +140,6 @@ declare module 'inspector' {
141
140
  */
142
141
  entries?: EntryPreview[] | undefined;
143
142
  }
144
-
145
143
  /**
146
144
  * @experimental
147
145
  */
@@ -167,7 +165,6 @@ declare module 'inspector' {
167
165
  */
168
166
  subtype?: string | undefined;
169
167
  }
170
-
171
168
  /**
172
169
  * @experimental
173
170
  */
@@ -181,7 +178,6 @@ declare module 'inspector' {
181
178
  */
182
179
  value: ObjectPreview;
183
180
  }
184
-
185
181
  /**
186
182
  * Object property descriptor.
187
183
  */
@@ -227,7 +223,6 @@ declare module 'inspector' {
227
223
  */
228
224
  symbol?: RemoteObject | undefined;
229
225
  }
230
-
231
226
  /**
232
227
  * Object internal property descriptor. This property isn't normally visible in JavaScript code.
233
228
  */
@@ -241,7 +236,6 @@ declare module 'inspector' {
241
236
  */
242
237
  value?: RemoteObject | undefined;
243
238
  }
244
-
245
239
  /**
246
240
  * Represents function call argument. Either remote object id <code>objectId</code>, primitive <code>value</code>, unserializable primitive value or neither of (for undefined) them should be specified.
247
241
  */
@@ -259,12 +253,10 @@ declare module 'inspector' {
259
253
  */
260
254
  objectId?: RemoteObjectId | undefined;
261
255
  }
262
-
263
256
  /**
264
257
  * Id of an execution context.
265
258
  */
266
259
  type ExecutionContextId = number;
267
-
268
260
  /**
269
261
  * Description of an isolated world.
270
262
  */
@@ -286,7 +278,6 @@ declare module 'inspector' {
286
278
  */
287
279
  auxData?: {} | undefined;
288
280
  }
289
-
290
281
  /**
291
282
  * Detailed information about exception (or error) that was thrown during script compilation or execution.
292
283
  */
@@ -328,12 +319,10 @@ declare module 'inspector' {
328
319
  */
329
320
  executionContextId?: ExecutionContextId | undefined;
330
321
  }
331
-
332
322
  /**
333
323
  * Number of milliseconds since epoch.
334
324
  */
335
325
  type Timestamp = number;
336
-
337
326
  /**
338
327
  * Stack entry for runtime errors and assertions.
339
328
  */
@@ -359,7 +348,6 @@ declare module 'inspector' {
359
348
  */
360
349
  columnNumber: number;
361
350
  }
362
-
363
351
  /**
364
352
  * Call frames for assertions or error messages.
365
353
  */
@@ -382,13 +370,11 @@ declare module 'inspector' {
382
370
  */
383
371
  parentId?: StackTraceId | undefined;
384
372
  }
385
-
386
373
  /**
387
374
  * Unique identifier of current debugger.
388
375
  * @experimental
389
376
  */
390
377
  type UniqueDebuggerId = string;
391
-
392
378
  /**
393
379
  * If <code>debuggerId</code> is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See <code>Runtime.StackTrace</code> and <code>Debugger.paused</code> for usages.
394
380
  * @experimental
@@ -397,7 +383,6 @@ declare module 'inspector' {
397
383
  id: string;
398
384
  debuggerId?: UniqueDebuggerId | undefined;
399
385
  }
400
-
401
386
  interface EvaluateParameterType {
402
387
  /**
403
388
  * Expression to evaluate.
@@ -437,7 +422,6 @@ declare module 'inspector' {
437
422
  */
438
423
  awaitPromise?: boolean | undefined;
439
424
  }
440
-
441
425
  interface AwaitPromiseParameterType {
442
426
  /**
443
427
  * Identifier of the promise.
@@ -452,7 +436,6 @@ declare module 'inspector' {
452
436
  */
453
437
  generatePreview?: boolean | undefined;
454
438
  }
455
-
456
439
  interface CallFunctionOnParameterType {
457
440
  /**
458
441
  * Declaration of the function to call.
@@ -496,7 +479,6 @@ declare module 'inspector' {
496
479
  */
497
480
  objectGroup?: string | undefined;
498
481
  }
499
-
500
482
  interface GetPropertiesParameterType {
501
483
  /**
502
484
  * Identifier of the object to return properties for.
@@ -517,25 +499,21 @@ declare module 'inspector' {
517
499
  */
518
500
  generatePreview?: boolean | undefined;
519
501
  }
520
-
521
502
  interface ReleaseObjectParameterType {
522
503
  /**
523
504
  * Identifier of the object to release.
524
505
  */
525
506
  objectId: RemoteObjectId;
526
507
  }
527
-
528
508
  interface ReleaseObjectGroupParameterType {
529
509
  /**
530
510
  * Symbolic object group name.
531
511
  */
532
512
  objectGroup: string;
533
513
  }
534
-
535
514
  interface SetCustomObjectFormatterEnabledParameterType {
536
515
  enabled: boolean;
537
516
  }
538
-
539
517
  interface CompileScriptParameterType {
540
518
  /**
541
519
  * Expression to compile.
@@ -554,7 +532,6 @@ declare module 'inspector' {
554
532
  */
555
533
  executionContextId?: ExecutionContextId | undefined;
556
534
  }
557
-
558
535
  interface RunScriptParameterType {
559
536
  /**
560
537
  * Id of the script to run.
@@ -589,21 +566,18 @@ declare module 'inspector' {
589
566
  */
590
567
  awaitPromise?: boolean | undefined;
591
568
  }
592
-
593
569
  interface QueryObjectsParameterType {
594
570
  /**
595
571
  * Identifier of the prototype to return objects for.
596
572
  */
597
573
  prototypeObjectId: RemoteObjectId;
598
574
  }
599
-
600
575
  interface GlobalLexicalScopeNamesParameterType {
601
576
  /**
602
577
  * Specifies in which execution context to lookup global scope variables.
603
578
  */
604
579
  executionContextId?: ExecutionContextId | undefined;
605
580
  }
606
-
607
581
  interface EvaluateReturnType {
608
582
  /**
609
583
  * Evaluation result.
@@ -614,7 +588,6 @@ declare module 'inspector' {
614
588
  */
615
589
  exceptionDetails?: ExceptionDetails | undefined;
616
590
  }
617
-
618
591
  interface AwaitPromiseReturnType {
619
592
  /**
620
593
  * Promise result. Will contain rejected value if promise was rejected.
@@ -625,7 +598,6 @@ declare module 'inspector' {
625
598
  */
626
599
  exceptionDetails?: ExceptionDetails | undefined;
627
600
  }
628
-
629
601
  interface CallFunctionOnReturnType {
630
602
  /**
631
603
  * Call result.
@@ -636,7 +608,6 @@ declare module 'inspector' {
636
608
  */
637
609
  exceptionDetails?: ExceptionDetails | undefined;
638
610
  }
639
-
640
611
  interface GetPropertiesReturnType {
641
612
  /**
642
613
  * Object properties.
@@ -651,7 +622,6 @@ declare module 'inspector' {
651
622
  */
652
623
  exceptionDetails?: ExceptionDetails | undefined;
653
624
  }
654
-
655
625
  interface CompileScriptReturnType {
656
626
  /**
657
627
  * Id of the script.
@@ -662,7 +632,6 @@ declare module 'inspector' {
662
632
  */
663
633
  exceptionDetails?: ExceptionDetails | undefined;
664
634
  }
665
-
666
635
  interface RunScriptReturnType {
667
636
  /**
668
637
  * Run result.
@@ -673,32 +642,27 @@ declare module 'inspector' {
673
642
  */
674
643
  exceptionDetails?: ExceptionDetails | undefined;
675
644
  }
676
-
677
645
  interface QueryObjectsReturnType {
678
646
  /**
679
647
  * Array with objects.
680
648
  */
681
649
  objects: RemoteObject;
682
650
  }
683
-
684
651
  interface GlobalLexicalScopeNamesReturnType {
685
652
  names: string[];
686
653
  }
687
-
688
654
  interface ExecutionContextCreatedEventDataType {
689
655
  /**
690
656
  * A newly created execution context.
691
657
  */
692
658
  context: ExecutionContextDescription;
693
659
  }
694
-
695
660
  interface ExecutionContextDestroyedEventDataType {
696
661
  /**
697
662
  * Id of the destroyed context
698
663
  */
699
664
  executionContextId: ExecutionContextId;
700
665
  }
701
-
702
666
  interface ExceptionThrownEventDataType {
703
667
  /**
704
668
  * Timestamp of the exception.
@@ -706,7 +670,6 @@ declare module 'inspector' {
706
670
  timestamp: Timestamp;
707
671
  exceptionDetails: ExceptionDetails;
708
672
  }
709
-
710
673
  interface ExceptionRevokedEventDataType {
711
674
  /**
712
675
  * Reason describing why exception was revoked.
@@ -717,7 +680,6 @@ declare module 'inspector' {
717
680
  */
718
681
  exceptionId: number;
719
682
  }
720
-
721
683
  interface ConsoleAPICalledEventDataType {
722
684
  /**
723
685
  * Type of the call.
@@ -745,24 +707,20 @@ declare module 'inspector' {
745
707
  */
746
708
  context?: string | undefined;
747
709
  }
748
-
749
710
  interface InspectRequestedEventDataType {
750
711
  object: RemoteObject;
751
712
  hints: {};
752
713
  }
753
714
  }
754
-
755
715
  namespace Debugger {
756
716
  /**
757
717
  * Breakpoint identifier.
758
718
  */
759
719
  type BreakpointId = string;
760
-
761
720
  /**
762
721
  * Call frame identifier.
763
722
  */
764
723
  type CallFrameId = string;
765
-
766
724
  /**
767
725
  * Location in the source code.
768
726
  */
@@ -780,7 +738,6 @@ declare module 'inspector' {
780
738
  */
781
739
  columnNumber?: number | undefined;
782
740
  }
783
-
784
741
  /**
785
742
  * Location in the source code.
786
743
  * @experimental
@@ -789,7 +746,6 @@ declare module 'inspector' {
789
746
  lineNumber: number;
790
747
  columnNumber: number;
791
748
  }
792
-
793
749
  /**
794
750
  * JavaScript call frame. Array of call frames form the call stack.
795
751
  */
@@ -827,7 +783,6 @@ declare module 'inspector' {
827
783
  */
828
784
  returnValue?: Runtime.RemoteObject | undefined;
829
785
  }
830
-
831
786
  /**
832
787
  * Scope description.
833
788
  */
@@ -850,7 +805,6 @@ declare module 'inspector' {
850
805
  */
851
806
  endLocation?: Location | undefined;
852
807
  }
853
-
854
808
  /**
855
809
  * Search match for resource.
856
810
  */
@@ -864,7 +818,6 @@ declare module 'inspector' {
864
818
  */
865
819
  lineContent: string;
866
820
  }
867
-
868
821
  interface BreakLocation {
869
822
  /**
870
823
  * Script identifier as reported in the <code>Debugger.scriptParsed</code>.
@@ -880,21 +833,18 @@ declare module 'inspector' {
880
833
  columnNumber?: number | undefined;
881
834
  type?: string | undefined;
882
835
  }
883
-
884
836
  interface SetBreakpointsActiveParameterType {
885
837
  /**
886
838
  * New value for breakpoints active state.
887
839
  */
888
840
  active: boolean;
889
841
  }
890
-
891
842
  interface SetSkipAllPausesParameterType {
892
843
  /**
893
844
  * New value for skip pauses state.
894
845
  */
895
846
  skip: boolean;
896
847
  }
897
-
898
848
  interface SetBreakpointByUrlParameterType {
899
849
  /**
900
850
  * Line number to set breakpoint at.
@@ -921,7 +871,6 @@ declare module 'inspector' {
921
871
  */
922
872
  condition?: string | undefined;
923
873
  }
924
-
925
874
  interface SetBreakpointParameterType {
926
875
  /**
927
876
  * Location to set breakpoint in.
@@ -932,11 +881,9 @@ declare module 'inspector' {
932
881
  */
933
882
  condition?: string | undefined;
934
883
  }
935
-
936
884
  interface RemoveBreakpointParameterType {
937
885
  breakpointId: BreakpointId;
938
886
  }
939
-
940
887
  interface GetPossibleBreakpointsParameterType {
941
888
  /**
942
889
  * Start of range to search possible breakpoint locations in.
@@ -951,7 +898,6 @@ declare module 'inspector' {
951
898
  */
952
899
  restrictToFunction?: boolean | undefined;
953
900
  }
954
-
955
901
  interface ContinueToLocationParameterType {
956
902
  /**
957
903
  * Location to continue to.
@@ -959,14 +905,12 @@ declare module 'inspector' {
959
905
  location: Location;
960
906
  targetCallFrames?: string | undefined;
961
907
  }
962
-
963
908
  interface PauseOnAsyncCallParameterType {
964
909
  /**
965
910
  * Debugger will pause when async call with given stack trace is started.
966
911
  */
967
912
  parentStackTraceId: Runtime.StackTraceId;
968
913
  }
969
-
970
914
  interface StepIntoParameterType {
971
915
  /**
972
916
  * Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause.
@@ -974,11 +918,9 @@ declare module 'inspector' {
974
918
  */
975
919
  breakOnAsyncCall?: boolean | undefined;
976
920
  }
977
-
978
921
  interface GetStackTraceParameterType {
979
922
  stackTraceId: Runtime.StackTraceId;
980
923
  }
981
-
982
924
  interface SearchInContentParameterType {
983
925
  /**
984
926
  * Id of the script to search in.
@@ -997,7 +939,6 @@ declare module 'inspector' {
997
939
  */
998
940
  isRegex?: boolean | undefined;
999
941
  }
1000
-
1001
942
  interface SetScriptSourceParameterType {
1002
943
  /**
1003
944
  * Id of the script to edit.
@@ -1012,28 +953,24 @@ declare module 'inspector' {
1012
953
  */
1013
954
  dryRun?: boolean | undefined;
1014
955
  }
1015
-
1016
956
  interface RestartFrameParameterType {
1017
957
  /**
1018
958
  * Call frame identifier to evaluate on.
1019
959
  */
1020
960
  callFrameId: CallFrameId;
1021
961
  }
1022
-
1023
962
  interface GetScriptSourceParameterType {
1024
963
  /**
1025
964
  * Id of the script to get source for.
1026
965
  */
1027
966
  scriptId: Runtime.ScriptId;
1028
967
  }
1029
-
1030
968
  interface SetPauseOnExceptionsParameterType {
1031
969
  /**
1032
970
  * Pause on exceptions mode.
1033
971
  */
1034
972
  state: string;
1035
973
  }
1036
-
1037
974
  interface EvaluateOnCallFrameParameterType {
1038
975
  /**
1039
976
  * Call frame identifier to evaluate on.
@@ -1069,7 +1006,6 @@ declare module 'inspector' {
1069
1006
  */
1070
1007
  throwOnSideEffect?: boolean | undefined;
1071
1008
  }
1072
-
1073
1009
  interface SetVariableValueParameterType {
1074
1010
  /**
1075
1011
  * 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.
@@ -1088,28 +1024,24 @@ declare module 'inspector' {
1088
1024
  */
1089
1025
  callFrameId: CallFrameId;
1090
1026
  }
1091
-
1092
1027
  interface SetReturnValueParameterType {
1093
1028
  /**
1094
1029
  * New return value.
1095
1030
  */
1096
1031
  newValue: Runtime.CallArgument;
1097
1032
  }
1098
-
1099
1033
  interface SetAsyncCallStackDepthParameterType {
1100
1034
  /**
1101
1035
  * Maximum depth of async call stacks. Setting to <code>0</code> will effectively disable collecting async call stacks (default).
1102
1036
  */
1103
1037
  maxDepth: number;
1104
1038
  }
1105
-
1106
1039
  interface SetBlackboxPatternsParameterType {
1107
1040
  /**
1108
1041
  * Array of regexps that will be used to check script url for blackbox state.
1109
1042
  */
1110
1043
  patterns: string[];
1111
1044
  }
1112
-
1113
1045
  interface SetBlackboxedRangesParameterType {
1114
1046
  /**
1115
1047
  * Id of the script.
@@ -1117,7 +1049,6 @@ declare module 'inspector' {
1117
1049
  scriptId: Runtime.ScriptId;
1118
1050
  positions: ScriptPosition[];
1119
1051
  }
1120
-
1121
1052
  interface EnableReturnType {
1122
1053
  /**
1123
1054
  * Unique identifier of the debugger.
@@ -1125,7 +1056,6 @@ declare module 'inspector' {
1125
1056
  */
1126
1057
  debuggerId: Runtime.UniqueDebuggerId;
1127
1058
  }
1128
-
1129
1059
  interface SetBreakpointByUrlReturnType {
1130
1060
  /**
1131
1061
  * Id of the created breakpoint for further reference.
@@ -1136,7 +1066,6 @@ declare module 'inspector' {
1136
1066
  */
1137
1067
  locations: Location[];
1138
1068
  }
1139
-
1140
1069
  interface SetBreakpointReturnType {
1141
1070
  /**
1142
1071
  * Id of the created breakpoint for further reference.
@@ -1147,25 +1076,21 @@ declare module 'inspector' {
1147
1076
  */
1148
1077
  actualLocation: Location;
1149
1078
  }
1150
-
1151
1079
  interface GetPossibleBreakpointsReturnType {
1152
1080
  /**
1153
1081
  * List of the possible breakpoint locations.
1154
1082
  */
1155
1083
  locations: BreakLocation[];
1156
1084
  }
1157
-
1158
1085
  interface GetStackTraceReturnType {
1159
1086
  stackTrace: Runtime.StackTrace;
1160
1087
  }
1161
-
1162
1088
  interface SearchInContentReturnType {
1163
1089
  /**
1164
1090
  * List of search matches.
1165
1091
  */
1166
1092
  result: SearchMatch[];
1167
1093
  }
1168
-
1169
1094
  interface SetScriptSourceReturnType {
1170
1095
  /**
1171
1096
  * New stack trace in case editing has happened while VM was stopped.
@@ -1189,7 +1114,6 @@ declare module 'inspector' {
1189
1114
  */
1190
1115
  exceptionDetails?: Runtime.ExceptionDetails | undefined;
1191
1116
  }
1192
-
1193
1117
  interface RestartFrameReturnType {
1194
1118
  /**
1195
1119
  * New stack trace.
@@ -1205,14 +1129,12 @@ declare module 'inspector' {
1205
1129
  */
1206
1130
  asyncStackTraceId?: Runtime.StackTraceId | undefined;
1207
1131
  }
1208
-
1209
1132
  interface GetScriptSourceReturnType {
1210
1133
  /**
1211
1134
  * Script source.
1212
1135
  */
1213
1136
  scriptSource: string;
1214
1137
  }
1215
-
1216
1138
  interface EvaluateOnCallFrameReturnType {
1217
1139
  /**
1218
1140
  * Object wrapper for the evaluation result.
@@ -1223,7 +1145,6 @@ declare module 'inspector' {
1223
1145
  */
1224
1146
  exceptionDetails?: Runtime.ExceptionDetails | undefined;
1225
1147
  }
1226
-
1227
1148
  interface ScriptParsedEventDataType {
1228
1149
  /**
1229
1150
  * Identifier of the script parsed.
@@ -1288,7 +1209,6 @@ declare module 'inspector' {
1288
1209
  */
1289
1210
  stackTrace?: Runtime.StackTrace | undefined;
1290
1211
  }
1291
-
1292
1212
  interface ScriptFailedToParseEventDataType {
1293
1213
  /**
1294
1214
  * Identifier of the script parsed.
@@ -1348,7 +1268,6 @@ declare module 'inspector' {
1348
1268
  */
1349
1269
  stackTrace?: Runtime.StackTrace | undefined;
1350
1270
  }
1351
-
1352
1271
  interface BreakpointResolvedEventDataType {
1353
1272
  /**
1354
1273
  * Breakpoint unique identifier.
@@ -1359,7 +1278,6 @@ declare module 'inspector' {
1359
1278
  */
1360
1279
  location: Location;
1361
1280
  }
1362
-
1363
1281
  interface PausedEventDataType {
1364
1282
  /**
1365
1283
  * Call stack the virtual machine stopped on.
@@ -1393,7 +1311,6 @@ declare module 'inspector' {
1393
1311
  asyncCallStackTraceId?: Runtime.StackTraceId | undefined;
1394
1312
  }
1395
1313
  }
1396
-
1397
1314
  namespace Console {
1398
1315
  /**
1399
1316
  * Console message.
@@ -1424,7 +1341,6 @@ declare module 'inspector' {
1424
1341
  */
1425
1342
  column?: number | undefined;
1426
1343
  }
1427
-
1428
1344
  interface MessageAddedEventDataType {
1429
1345
  /**
1430
1346
  * Console message that has been added.
@@ -1432,7 +1348,6 @@ declare module 'inspector' {
1432
1348
  message: ConsoleMessage;
1433
1349
  }
1434
1350
  }
1435
-
1436
1351
  namespace Profiler {
1437
1352
  /**
1438
1353
  * Profile node. Holds callsite information, execution statistics and child nodes.
@@ -1463,7 +1378,6 @@ declare module 'inspector' {
1463
1378
  */
1464
1379
  positionTicks?: PositionTickInfo[] | undefined;
1465
1380
  }
1466
-
1467
1381
  /**
1468
1382
  * Profile.
1469
1383
  */
@@ -1489,7 +1403,6 @@ declare module 'inspector' {
1489
1403
  */
1490
1404
  timeDeltas?: number[] | undefined;
1491
1405
  }
1492
-
1493
1406
  /**
1494
1407
  * Specifies a number of samples attributed to a certain source position.
1495
1408
  */
@@ -1503,7 +1416,6 @@ declare module 'inspector' {
1503
1416
  */
1504
1417
  ticks: number;
1505
1418
  }
1506
-
1507
1419
  /**
1508
1420
  * Coverage data for a source range.
1509
1421
  */
@@ -1521,7 +1433,6 @@ declare module 'inspector' {
1521
1433
  */
1522
1434
  count: number;
1523
1435
  }
1524
-
1525
1436
  /**
1526
1437
  * Coverage data for a JavaScript function.
1527
1438
  */
@@ -1539,7 +1450,6 @@ declare module 'inspector' {
1539
1450
  */
1540
1451
  isBlockCoverage: boolean;
1541
1452
  }
1542
-
1543
1453
  /**
1544
1454
  * Coverage data for a JavaScript script.
1545
1455
  */
@@ -1557,7 +1467,6 @@ declare module 'inspector' {
1557
1467
  */
1558
1468
  functions: FunctionCoverage[];
1559
1469
  }
1560
-
1561
1470
  /**
1562
1471
  * Describes a type collected during runtime.
1563
1472
  * @experimental
@@ -1568,7 +1477,6 @@ declare module 'inspector' {
1568
1477
  */
1569
1478
  name: string;
1570
1479
  }
1571
-
1572
1480
  /**
1573
1481
  * Source offset and types for a parameter or return value.
1574
1482
  * @experimental
@@ -1583,7 +1491,6 @@ declare module 'inspector' {
1583
1491
  */
1584
1492
  types: TypeObject[];
1585
1493
  }
1586
-
1587
1494
  /**
1588
1495
  * Type profile data collected during runtime for a JavaScript script.
1589
1496
  * @experimental
@@ -1602,14 +1509,12 @@ declare module 'inspector' {
1602
1509
  */
1603
1510
  entries: TypeProfileEntry[];
1604
1511
  }
1605
-
1606
1512
  interface SetSamplingIntervalParameterType {
1607
1513
  /**
1608
1514
  * New sampling interval in microseconds.
1609
1515
  */
1610
1516
  interval: number;
1611
1517
  }
1612
-
1613
1518
  interface StartPreciseCoverageParameterType {
1614
1519
  /**
1615
1520
  * Collect accurate call counts beyond simple 'covered' or 'not covered'.
@@ -1620,35 +1525,30 @@ declare module 'inspector' {
1620
1525
  */
1621
1526
  detailed?: boolean | undefined;
1622
1527
  }
1623
-
1624
1528
  interface StopReturnType {
1625
1529
  /**
1626
1530
  * Recorded profile.
1627
1531
  */
1628
1532
  profile: Profile;
1629
1533
  }
1630
-
1631
1534
  interface TakePreciseCoverageReturnType {
1632
1535
  /**
1633
1536
  * Coverage data for the current isolate.
1634
1537
  */
1635
1538
  result: ScriptCoverage[];
1636
1539
  }
1637
-
1638
1540
  interface GetBestEffortCoverageReturnType {
1639
1541
  /**
1640
1542
  * Coverage data for the current isolate.
1641
1543
  */
1642
1544
  result: ScriptCoverage[];
1643
1545
  }
1644
-
1645
1546
  interface TakeTypeProfileReturnType {
1646
1547
  /**
1647
1548
  * Type profile for all scripts since startTypeProfile() was turned on.
1648
1549
  */
1649
1550
  result: ScriptTypeProfile[];
1650
1551
  }
1651
-
1652
1552
  interface ConsoleProfileStartedEventDataType {
1653
1553
  id: string;
1654
1554
  /**
@@ -1660,7 +1560,6 @@ declare module 'inspector' {
1660
1560
  */
1661
1561
  title?: string | undefined;
1662
1562
  }
1663
-
1664
1563
  interface ConsoleProfileFinishedEventDataType {
1665
1564
  id: string;
1666
1565
  /**
@@ -1674,13 +1573,11 @@ declare module 'inspector' {
1674
1573
  title?: string | undefined;
1675
1574
  }
1676
1575
  }
1677
-
1678
1576
  namespace HeapProfiler {
1679
1577
  /**
1680
1578
  * Heap snapshot object id.
1681
1579
  */
1682
1580
  type HeapSnapshotObjectId = string;
1683
-
1684
1581
  /**
1685
1582
  * Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
1686
1583
  */
@@ -1698,32 +1595,27 @@ declare module 'inspector' {
1698
1595
  */
1699
1596
  children: SamplingHeapProfileNode[];
1700
1597
  }
1701
-
1702
1598
  /**
1703
1599
  * Profile.
1704
1600
  */
1705
1601
  interface SamplingHeapProfile {
1706
1602
  head: SamplingHeapProfileNode;
1707
1603
  }
1708
-
1709
1604
  interface StartTrackingHeapObjectsParameterType {
1710
1605
  trackAllocations?: boolean | undefined;
1711
1606
  }
1712
-
1713
1607
  interface StopTrackingHeapObjectsParameterType {
1714
1608
  /**
1715
1609
  * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped.
1716
1610
  */
1717
1611
  reportProgress?: boolean | undefined;
1718
1612
  }
1719
-
1720
1613
  interface TakeHeapSnapshotParameterType {
1721
1614
  /**
1722
1615
  * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
1723
1616
  */
1724
1617
  reportProgress?: boolean | undefined;
1725
1618
  }
1726
-
1727
1619
  interface GetObjectByHeapObjectIdParameterType {
1728
1620
  objectId: HeapSnapshotObjectId;
1729
1621
  /**
@@ -1731,71 +1623,60 @@ declare module 'inspector' {
1731
1623
  */
1732
1624
  objectGroup?: string | undefined;
1733
1625
  }
1734
-
1735
1626
  interface AddInspectedHeapObjectParameterType {
1736
1627
  /**
1737
1628
  * Heap snapshot object id to be accessible by means of $x command line API.
1738
1629
  */
1739
1630
  heapObjectId: HeapSnapshotObjectId;
1740
1631
  }
1741
-
1742
1632
  interface GetHeapObjectIdParameterType {
1743
1633
  /**
1744
1634
  * Identifier of the object to get heap object id for.
1745
1635
  */
1746
1636
  objectId: Runtime.RemoteObjectId;
1747
1637
  }
1748
-
1749
1638
  interface StartSamplingParameterType {
1750
1639
  /**
1751
1640
  * Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes.
1752
1641
  */
1753
1642
  samplingInterval?: number | undefined;
1754
1643
  }
1755
-
1756
1644
  interface GetObjectByHeapObjectIdReturnType {
1757
1645
  /**
1758
1646
  * Evaluation result.
1759
1647
  */
1760
1648
  result: Runtime.RemoteObject;
1761
1649
  }
1762
-
1763
1650
  interface GetHeapObjectIdReturnType {
1764
1651
  /**
1765
1652
  * Id of the heap snapshot object corresponding to the passed remote object id.
1766
1653
  */
1767
1654
  heapSnapshotObjectId: HeapSnapshotObjectId;
1768
1655
  }
1769
-
1770
1656
  interface StopSamplingReturnType {
1771
1657
  /**
1772
1658
  * Recorded sampling heap profile.
1773
1659
  */
1774
1660
  profile: SamplingHeapProfile;
1775
1661
  }
1776
-
1777
1662
  interface GetSamplingProfileReturnType {
1778
1663
  /**
1779
1664
  * Return the sampling profile being collected.
1780
1665
  */
1781
1666
  profile: SamplingHeapProfile;
1782
1667
  }
1783
-
1784
1668
  interface AddHeapSnapshotChunkEventDataType {
1785
1669
  chunk: string;
1786
1670
  }
1787
-
1788
1671
  interface ReportHeapSnapshotProgressEventDataType {
1789
1672
  done: number;
1790
1673
  total: number;
1791
1674
  finished?: boolean | undefined;
1792
1675
  }
1793
-
1794
1676
  interface LastSeenObjectIdEventDataType {
1795
1677
  lastSeenObjectId: number;
1796
1678
  timestamp: number;
1797
1679
  }
1798
-
1799
1680
  interface HeapStatsUpdateEventDataType {
1800
1681
  /**
1801
1682
  * 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.
@@ -1803,7 +1684,6 @@ declare module 'inspector' {
1803
1684
  statsUpdate: number[];
1804
1685
  }
1805
1686
  }
1806
-
1807
1687
  namespace NodeTracing {
1808
1688
  interface TraceConfig {
1809
1689
  /**
@@ -1815,38 +1695,31 @@ declare module 'inspector' {
1815
1695
  */
1816
1696
  includedCategories: string[];
1817
1697
  }
1818
-
1819
1698
  interface StartParameterType {
1820
1699
  traceConfig: TraceConfig;
1821
1700
  }
1822
-
1823
1701
  interface GetCategoriesReturnType {
1824
1702
  /**
1825
1703
  * A list of supported tracing categories.
1826
1704
  */
1827
1705
  categories: string[];
1828
1706
  }
1829
-
1830
1707
  interface DataCollectedEventDataType {
1831
1708
  value: Array<{}>;
1832
1709
  }
1833
1710
  }
1834
-
1835
1711
  namespace NodeWorker {
1836
1712
  type WorkerID = string;
1837
-
1838
1713
  /**
1839
1714
  * Unique identifier of attached debugging session.
1840
1715
  */
1841
1716
  type SessionID = string;
1842
-
1843
1717
  interface WorkerInfo {
1844
1718
  workerId: WorkerID;
1845
1719
  type: string;
1846
1720
  title: string;
1847
1721
  url: string;
1848
1722
  }
1849
-
1850
1723
  interface SendMessageToWorkerParameterType {
1851
1724
  message: string;
1852
1725
  /**
@@ -1854,7 +1727,6 @@ declare module 'inspector' {
1854
1727
  */
1855
1728
  sessionId: SessionID;
1856
1729
  }
1857
-
1858
1730
  interface EnableParameterType {
1859
1731
  /**
1860
1732
  * Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger`
@@ -1862,11 +1734,9 @@ declare module 'inspector' {
1862
1734
  */
1863
1735
  waitForDebuggerOnStart: boolean;
1864
1736
  }
1865
-
1866
1737
  interface DetachParameterType {
1867
1738
  sessionId: SessionID;
1868
1739
  }
1869
-
1870
1740
  interface AttachedToWorkerEventDataType {
1871
1741
  /**
1872
1742
  * Identifier assigned to the session used to send/receive messages.
@@ -1875,14 +1745,12 @@ declare module 'inspector' {
1875
1745
  workerInfo: WorkerInfo;
1876
1746
  waitingForDebugger: boolean;
1877
1747
  }
1878
-
1879
1748
  interface DetachedFromWorkerEventDataType {
1880
1749
  /**
1881
1750
  * Detached session identifier.
1882
1751
  */
1883
1752
  sessionId: SessionID;
1884
1753
  }
1885
-
1886
1754
  interface ReceivedMessageFromWorkerEventDataType {
1887
1755
  /**
1888
1756
  * Identifier of a session which sends a message.
@@ -1891,15 +1759,14 @@ declare module 'inspector' {
1891
1759
  message: string;
1892
1760
  }
1893
1761
  }
1894
-
1895
1762
  namespace NodeRuntime {
1896
1763
  interface NotifyWhenWaitingForDisconnectParameterType {
1897
1764
  enabled: boolean;
1898
1765
  }
1899
1766
  }
1900
-
1901
1767
  /**
1902
- * The inspector.Session is used for dispatching messages to the V8 inspector back-end and receiving message responses and notifications.
1768
+ * The `inspector.Session` is used for dispatching messages to the V8 inspector
1769
+ * back-end and receiving message responses and notifications.
1903
1770
  */
1904
1771
  class Session extends EventEmitter {
1905
1772
  /**
@@ -1907,1139 +1774,965 @@ declare module 'inspector' {
1907
1774
  * The inspector session needs to be connected through session.connect() before the messages can be dispatched to the inspector backend.
1908
1775
  */
1909
1776
  constructor();
1910
-
1911
1777
  /**
1912
1778
  * Connects a session to the inspector back-end.
1913
- * An exception will be thrown if there is already a connected session established either
1914
- * through the API or by a front-end connected to the Inspector WebSocket port.
1779
+ * @since v8.0.0
1915
1780
  */
1916
1781
  connect(): void;
1917
-
1918
1782
  /**
1919
- * Immediately close the session. All pending message callbacks will be called with an error.
1920
- * session.connect() will need to be called to be able to send messages again.
1921
- * Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints.
1783
+ * Immediately close the session. All pending message callbacks will be called
1784
+ * with an error. `session.connect()` will need to be called to be able to send
1785
+ * messages again. Reconnected session will lose all inspector state, such as
1786
+ * enabled agents or configured breakpoints.
1787
+ * @since v8.0.0
1922
1788
  */
1923
1789
  disconnect(): void;
1924
-
1925
1790
  /**
1926
- * Posts a message to the inspector back-end. callback will be notified when a response is received.
1927
- * callback is a function that accepts two optional arguments - error and message-specific result.
1791
+ * Posts a message to the inspector back-end. `callback` will be notified when
1792
+ * a response is received. `callback` is a function that accepts two optional
1793
+ * arguments: error and message-specific result.
1794
+ *
1795
+ * ```js
1796
+ * session.post('Runtime.evaluate', { expression: '2 + 2' },
1797
+ * (error, { result }) => console.log(result));
1798
+ * // Output: { type: 'number', value: 4, description: '4' }
1799
+ * ```
1800
+ *
1801
+ * The latest version of the V8 inspector protocol is published on the[Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/).
1802
+ *
1803
+ * Node.js inspector supports all the Chrome DevTools Protocol domains declared
1804
+ * by V8\. Chrome DevTools Protocol domain provides an interface for interacting
1805
+ * with one of the runtime agents used to inspect the application state and listen
1806
+ * to the run-time events.
1807
+ *
1808
+ * ## Example usage
1809
+ *
1810
+ * Apart from the debugger, various V8 Profilers are available through the DevTools
1811
+ * protocol.
1812
+ * @since v8.0.0
1928
1813
  */
1929
1814
  post(method: string, params?: {}, callback?: (err: Error | null, params?: {}) => void): void;
1930
1815
  post(method: string, callback?: (err: Error | null, params?: {}) => void): void;
1931
-
1932
1816
  /**
1933
1817
  * Returns supported domains.
1934
1818
  */
1935
- post(method: "Schema.getDomains", callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void;
1936
-
1819
+ post(method: 'Schema.getDomains', callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void;
1937
1820
  /**
1938
1821
  * Evaluates expression on global object.
1939
1822
  */
1940
- post(method: "Runtime.evaluate", params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
1941
- post(method: "Runtime.evaluate", callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
1942
-
1823
+ post(method: 'Runtime.evaluate', params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
1824
+ post(method: 'Runtime.evaluate', callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
1943
1825
  /**
1944
1826
  * Add handler to promise with given promise object id.
1945
1827
  */
1946
- post(method: "Runtime.awaitPromise", params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
1947
- post(method: "Runtime.awaitPromise", callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
1948
-
1828
+ post(method: 'Runtime.awaitPromise', params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
1829
+ post(method: 'Runtime.awaitPromise', callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
1949
1830
  /**
1950
1831
  * Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
1951
1832
  */
1952
- post(method: "Runtime.callFunctionOn", params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
1953
- post(method: "Runtime.callFunctionOn", callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
1954
-
1833
+ post(method: 'Runtime.callFunctionOn', params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
1834
+ post(method: 'Runtime.callFunctionOn', callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
1955
1835
  /**
1956
1836
  * Returns properties of a given object. Object group of the result is inherited from the target object.
1957
1837
  */
1958
- post(method: "Runtime.getProperties", params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
1959
- post(method: "Runtime.getProperties", callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
1960
-
1838
+ post(method: 'Runtime.getProperties', params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
1839
+ post(method: 'Runtime.getProperties', callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
1961
1840
  /**
1962
1841
  * Releases remote object with given id.
1963
1842
  */
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;
1966
-
1843
+ post(method: 'Runtime.releaseObject', params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void;
1844
+ post(method: 'Runtime.releaseObject', callback?: (err: Error | null) => void): void;
1967
1845
  /**
1968
1846
  * Releases all remote objects that belong to a given group.
1969
1847
  */
1970
- post(method: "Runtime.releaseObjectGroup", params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void;
1971
- post(method: "Runtime.releaseObjectGroup", callback?: (err: Error | null) => void): void;
1972
-
1848
+ post(method: 'Runtime.releaseObjectGroup', params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void;
1849
+ post(method: 'Runtime.releaseObjectGroup', callback?: (err: Error | null) => void): void;
1973
1850
  /**
1974
1851
  * Tells inspected instance to run if it was waiting for debugger to attach.
1975
1852
  */
1976
- post(method: "Runtime.runIfWaitingForDebugger", callback?: (err: Error | null) => void): void;
1977
-
1853
+ post(method: 'Runtime.runIfWaitingForDebugger', callback?: (err: Error | null) => void): void;
1978
1854
  /**
1979
1855
  * 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.
1980
1856
  */
1981
- post(method: "Runtime.enable", callback?: (err: Error | null) => void): void;
1982
-
1857
+ post(method: 'Runtime.enable', callback?: (err: Error | null) => void): void;
1983
1858
  /**
1984
1859
  * Disables reporting of execution contexts creation.
1985
1860
  */
1986
- post(method: "Runtime.disable", callback?: (err: Error | null) => void): void;
1987
-
1861
+ post(method: 'Runtime.disable', callback?: (err: Error | null) => void): void;
1988
1862
  /**
1989
1863
  * Discards collected exceptions and console API calls.
1990
1864
  */
1991
- post(method: "Runtime.discardConsoleEntries", callback?: (err: Error | null) => void): void;
1992
-
1865
+ post(method: 'Runtime.discardConsoleEntries', callback?: (err: Error | null) => void): void;
1993
1866
  /**
1994
1867
  * @experimental
1995
1868
  */
1996
- post(method: "Runtime.setCustomObjectFormatterEnabled", params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void;
1997
- post(method: "Runtime.setCustomObjectFormatterEnabled", callback?: (err: Error | null) => void): void;
1998
-
1869
+ post(method: 'Runtime.setCustomObjectFormatterEnabled', params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void;
1870
+ post(method: 'Runtime.setCustomObjectFormatterEnabled', callback?: (err: Error | null) => void): void;
1999
1871
  /**
2000
1872
  * Compiles expression.
2001
1873
  */
2002
- post(method: "Runtime.compileScript", params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
2003
- post(method: "Runtime.compileScript", callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
2004
-
1874
+ post(method: 'Runtime.compileScript', params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
1875
+ post(method: 'Runtime.compileScript', callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
2005
1876
  /**
2006
1877
  * Runs script with given id in a given context.
2007
1878
  */
2008
- post(method: "Runtime.runScript", params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
2009
- post(method: "Runtime.runScript", callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
2010
-
2011
- post(method: "Runtime.queryObjects", params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
2012
- post(method: "Runtime.queryObjects", callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
2013
-
1879
+ post(method: 'Runtime.runScript', params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
1880
+ post(method: 'Runtime.runScript', callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
1881
+ post(method: 'Runtime.queryObjects', params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
1882
+ post(method: 'Runtime.queryObjects', callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
2014
1883
  /**
2015
1884
  * Returns all let, const and class variables from global scope.
2016
1885
  */
2017
1886
  post(
2018
- method: "Runtime.globalLexicalScopeNames",
1887
+ method: 'Runtime.globalLexicalScopeNames',
2019
1888
  params?: Runtime.GlobalLexicalScopeNamesParameterType,
2020
1889
  callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void
2021
1890
  ): void;
2022
- post(method: "Runtime.globalLexicalScopeNames", callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void;
2023
-
1891
+ post(method: 'Runtime.globalLexicalScopeNames', callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void;
2024
1892
  /**
2025
1893
  * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
2026
1894
  */
2027
- post(method: "Debugger.enable", callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void;
2028
-
1895
+ post(method: 'Debugger.enable', callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void;
2029
1896
  /**
2030
1897
  * Disables debugger for given page.
2031
1898
  */
2032
- post(method: "Debugger.disable", callback?: (err: Error | null) => void): void;
2033
-
1899
+ post(method: 'Debugger.disable', callback?: (err: Error | null) => void): void;
2034
1900
  /**
2035
1901
  * Activates / deactivates all breakpoints on the page.
2036
1902
  */
2037
- post(method: "Debugger.setBreakpointsActive", params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void;
2038
- post(method: "Debugger.setBreakpointsActive", callback?: (err: Error | null) => void): void;
2039
-
1903
+ post(method: 'Debugger.setBreakpointsActive', params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void;
1904
+ post(method: 'Debugger.setBreakpointsActive', callback?: (err: Error | null) => void): void;
2040
1905
  /**
2041
1906
  * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
2042
1907
  */
2043
- post(method: "Debugger.setSkipAllPauses", params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void;
2044
- post(method: "Debugger.setSkipAllPauses", callback?: (err: Error | null) => void): void;
2045
-
1908
+ post(method: 'Debugger.setSkipAllPauses', params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void;
1909
+ post(method: 'Debugger.setSkipAllPauses', callback?: (err: Error | null) => void): void;
2046
1910
  /**
2047
1911
  * 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.
2048
1912
  */
2049
- post(method: "Debugger.setBreakpointByUrl", params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
2050
- post(method: "Debugger.setBreakpointByUrl", callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
2051
-
1913
+ post(method: 'Debugger.setBreakpointByUrl', params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
1914
+ post(method: 'Debugger.setBreakpointByUrl', callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
2052
1915
  /**
2053
1916
  * Sets JavaScript breakpoint at a given location.
2054
1917
  */
2055
- post(method: "Debugger.setBreakpoint", params?: Debugger.SetBreakpointParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
2056
- post(method: "Debugger.setBreakpoint", callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
2057
-
1918
+ post(method: 'Debugger.setBreakpoint', params?: Debugger.SetBreakpointParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
1919
+ post(method: 'Debugger.setBreakpoint', callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
2058
1920
  /**
2059
1921
  * Removes JavaScript breakpoint.
2060
1922
  */
2061
- post(method: "Debugger.removeBreakpoint", params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void;
2062
- post(method: "Debugger.removeBreakpoint", callback?: (err: Error | null) => void): void;
2063
-
1923
+ post(method: 'Debugger.removeBreakpoint', params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void;
1924
+ post(method: 'Debugger.removeBreakpoint', callback?: (err: Error | null) => void): void;
2064
1925
  /**
2065
1926
  * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
2066
1927
  */
2067
1928
  post(
2068
- method: "Debugger.getPossibleBreakpoints",
1929
+ method: 'Debugger.getPossibleBreakpoints',
2069
1930
  params?: Debugger.GetPossibleBreakpointsParameterType,
2070
1931
  callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void
2071
1932
  ): void;
2072
- post(method: "Debugger.getPossibleBreakpoints", callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void;
2073
-
1933
+ post(method: 'Debugger.getPossibleBreakpoints', callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void;
2074
1934
  /**
2075
1935
  * Continues execution until specific location is reached.
2076
1936
  */
2077
- post(method: "Debugger.continueToLocation", params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void;
2078
- post(method: "Debugger.continueToLocation", callback?: (err: Error | null) => void): void;
2079
-
1937
+ post(method: 'Debugger.continueToLocation', params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void;
1938
+ post(method: 'Debugger.continueToLocation', callback?: (err: Error | null) => void): void;
2080
1939
  /**
2081
1940
  * @experimental
2082
1941
  */
2083
- post(method: "Debugger.pauseOnAsyncCall", params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void;
2084
- post(method: "Debugger.pauseOnAsyncCall", callback?: (err: Error | null) => void): void;
2085
-
1942
+ post(method: 'Debugger.pauseOnAsyncCall', params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void;
1943
+ post(method: 'Debugger.pauseOnAsyncCall', callback?: (err: Error | null) => void): void;
2086
1944
  /**
2087
1945
  * Steps over the statement.
2088
1946
  */
2089
- post(method: "Debugger.stepOver", callback?: (err: Error | null) => void): void;
2090
-
1947
+ post(method: 'Debugger.stepOver', callback?: (err: Error | null) => void): void;
2091
1948
  /**
2092
1949
  * Steps into the function call.
2093
1950
  */
2094
- post(method: "Debugger.stepInto", params?: Debugger.StepIntoParameterType, callback?: (err: Error | null) => void): void;
2095
- post(method: "Debugger.stepInto", callback?: (err: Error | null) => void): void;
2096
-
1951
+ post(method: 'Debugger.stepInto', params?: Debugger.StepIntoParameterType, callback?: (err: Error | null) => void): void;
1952
+ post(method: 'Debugger.stepInto', callback?: (err: Error | null) => void): void;
2097
1953
  /**
2098
1954
  * Steps out of the function call.
2099
1955
  */
2100
- post(method: "Debugger.stepOut", callback?: (err: Error | null) => void): void;
2101
-
1956
+ post(method: 'Debugger.stepOut', callback?: (err: Error | null) => void): void;
2102
1957
  /**
2103
1958
  * Stops on the next JavaScript statement.
2104
1959
  */
2105
- post(method: "Debugger.pause", callback?: (err: Error | null) => void): void;
2106
-
1960
+ post(method: 'Debugger.pause', callback?: (err: Error | null) => void): void;
2107
1961
  /**
2108
1962
  * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called.
2109
1963
  * @experimental
2110
1964
  */
2111
- post(method: "Debugger.scheduleStepIntoAsync", callback?: (err: Error | null) => void): void;
2112
-
1965
+ post(method: 'Debugger.scheduleStepIntoAsync', callback?: (err: Error | null) => void): void;
2113
1966
  /**
2114
1967
  * Resumes JavaScript execution.
2115
1968
  */
2116
- post(method: "Debugger.resume", callback?: (err: Error | null) => void): void;
2117
-
1969
+ post(method: 'Debugger.resume', callback?: (err: Error | null) => void): void;
2118
1970
  /**
2119
1971
  * Returns stack trace with given <code>stackTraceId</code>.
2120
1972
  * @experimental
2121
1973
  */
2122
- post(method: "Debugger.getStackTrace", params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
2123
- post(method: "Debugger.getStackTrace", callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
2124
-
1974
+ post(method: 'Debugger.getStackTrace', params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
1975
+ post(method: 'Debugger.getStackTrace', callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
2125
1976
  /**
2126
1977
  * Searches for given string in script content.
2127
1978
  */
2128
- post(method: "Debugger.searchInContent", params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
2129
- post(method: "Debugger.searchInContent", callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
2130
-
1979
+ post(method: 'Debugger.searchInContent', params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
1980
+ post(method: 'Debugger.searchInContent', callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
2131
1981
  /**
2132
1982
  * Edits JavaScript source live.
2133
1983
  */
2134
- post(method: "Debugger.setScriptSource", params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
2135
- post(method: "Debugger.setScriptSource", callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
2136
-
1984
+ post(method: 'Debugger.setScriptSource', params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
1985
+ post(method: 'Debugger.setScriptSource', callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
2137
1986
  /**
2138
1987
  * Restarts particular call frame from the beginning.
2139
1988
  */
2140
- post(method: "Debugger.restartFrame", params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
2141
- post(method: "Debugger.restartFrame", callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
2142
-
1989
+ post(method: 'Debugger.restartFrame', params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
1990
+ post(method: 'Debugger.restartFrame', callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
2143
1991
  /**
2144
1992
  * Returns source for the script with given id.
2145
1993
  */
2146
- post(method: "Debugger.getScriptSource", params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
2147
- post(method: "Debugger.getScriptSource", callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
2148
-
1994
+ post(method: 'Debugger.getScriptSource', params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
1995
+ post(method: 'Debugger.getScriptSource', callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
2149
1996
  /**
2150
1997
  * 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>.
2151
1998
  */
2152
- post(method: "Debugger.setPauseOnExceptions", params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void;
2153
- post(method: "Debugger.setPauseOnExceptions", callback?: (err: Error | null) => void): void;
2154
-
1999
+ post(method: 'Debugger.setPauseOnExceptions', params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void;
2000
+ post(method: 'Debugger.setPauseOnExceptions', callback?: (err: Error | null) => void): void;
2155
2001
  /**
2156
2002
  * Evaluates expression on a given call frame.
2157
2003
  */
2158
- post(method: "Debugger.evaluateOnCallFrame", params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
2159
- post(method: "Debugger.evaluateOnCallFrame", callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
2160
-
2004
+ post(method: 'Debugger.evaluateOnCallFrame', params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
2005
+ post(method: 'Debugger.evaluateOnCallFrame', callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
2161
2006
  /**
2162
2007
  * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
2163
2008
  */
2164
- post(method: "Debugger.setVariableValue", params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void;
2165
- post(method: "Debugger.setVariableValue", callback?: (err: Error | null) => void): void;
2166
-
2009
+ post(method: 'Debugger.setVariableValue', params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void;
2010
+ post(method: 'Debugger.setVariableValue', callback?: (err: Error | null) => void): void;
2167
2011
  /**
2168
2012
  * Changes return value in top frame. Available only at return break position.
2169
2013
  * @experimental
2170
2014
  */
2171
- post(method: "Debugger.setReturnValue", params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void;
2172
- post(method: "Debugger.setReturnValue", callback?: (err: Error | null) => void): void;
2173
-
2015
+ post(method: 'Debugger.setReturnValue', params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void;
2016
+ post(method: 'Debugger.setReturnValue', callback?: (err: Error | null) => void): void;
2174
2017
  /**
2175
2018
  * Enables or disables async call stacks tracking.
2176
2019
  */
2177
- post(method: "Debugger.setAsyncCallStackDepth", params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void;
2178
- post(method: "Debugger.setAsyncCallStackDepth", callback?: (err: Error | null) => void): void;
2179
-
2020
+ post(method: 'Debugger.setAsyncCallStackDepth', params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void;
2021
+ post(method: 'Debugger.setAsyncCallStackDepth', callback?: (err: Error | null) => void): void;
2180
2022
  /**
2181
2023
  * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
2182
2024
  * @experimental
2183
2025
  */
2184
- post(method: "Debugger.setBlackboxPatterns", params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void;
2185
- post(method: "Debugger.setBlackboxPatterns", callback?: (err: Error | null) => void): void;
2186
-
2026
+ post(method: 'Debugger.setBlackboxPatterns', params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void;
2027
+ post(method: 'Debugger.setBlackboxPatterns', callback?: (err: Error | null) => void): void;
2187
2028
  /**
2188
2029
  * 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.
2189
2030
  * @experimental
2190
2031
  */
2191
- post(method: "Debugger.setBlackboxedRanges", params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void;
2192
- post(method: "Debugger.setBlackboxedRanges", callback?: (err: Error | null) => void): void;
2193
-
2032
+ post(method: 'Debugger.setBlackboxedRanges', params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void;
2033
+ post(method: 'Debugger.setBlackboxedRanges', callback?: (err: Error | null) => void): void;
2194
2034
  /**
2195
2035
  * Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification.
2196
2036
  */
2197
- post(method: "Console.enable", callback?: (err: Error | null) => void): void;
2198
-
2037
+ post(method: 'Console.enable', callback?: (err: Error | null) => void): void;
2199
2038
  /**
2200
2039
  * Disables console domain, prevents further console messages from being reported to the client.
2201
2040
  */
2202
- post(method: "Console.disable", callback?: (err: Error | null) => void): void;
2203
-
2041
+ post(method: 'Console.disable', callback?: (err: Error | null) => void): void;
2204
2042
  /**
2205
2043
  * Does nothing.
2206
2044
  */
2207
- post(method: "Console.clearMessages", callback?: (err: Error | null) => void): void;
2208
-
2209
- post(method: "Profiler.enable", callback?: (err: Error | null) => void): void;
2210
-
2211
- post(method: "Profiler.disable", callback?: (err: Error | null) => void): void;
2212
-
2045
+ post(method: 'Console.clearMessages', callback?: (err: Error | null) => void): void;
2046
+ post(method: 'Profiler.enable', callback?: (err: Error | null) => void): void;
2047
+ post(method: 'Profiler.disable', callback?: (err: Error | null) => void): void;
2213
2048
  /**
2214
2049
  * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
2215
2050
  */
2216
- post(method: "Profiler.setSamplingInterval", params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void;
2217
- post(method: "Profiler.setSamplingInterval", callback?: (err: Error | null) => void): void;
2218
-
2219
- post(method: "Profiler.start", callback?: (err: Error | null) => void): void;
2220
-
2221
- post(method: "Profiler.stop", callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void;
2222
-
2051
+ post(method: 'Profiler.setSamplingInterval', params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void;
2052
+ post(method: 'Profiler.setSamplingInterval', callback?: (err: Error | null) => void): void;
2053
+ post(method: 'Profiler.start', callback?: (err: Error | null) => void): void;
2054
+ post(method: 'Profiler.stop', callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void;
2223
2055
  /**
2224
2056
  * 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.
2225
2057
  */
2226
- post(method: "Profiler.startPreciseCoverage", params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void;
2227
- post(method: "Profiler.startPreciseCoverage", callback?: (err: Error | null) => void): void;
2228
-
2058
+ post(method: 'Profiler.startPreciseCoverage', params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void;
2059
+ post(method: 'Profiler.startPreciseCoverage', callback?: (err: Error | null) => void): void;
2229
2060
  /**
2230
2061
  * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
2231
2062
  */
2232
- post(method: "Profiler.stopPreciseCoverage", callback?: (err: Error | null) => void): void;
2233
-
2063
+ post(method: 'Profiler.stopPreciseCoverage', callback?: (err: Error | null) => void): void;
2234
2064
  /**
2235
2065
  * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
2236
2066
  */
2237
- post(method: "Profiler.takePreciseCoverage", callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void;
2238
-
2067
+ post(method: 'Profiler.takePreciseCoverage', callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void;
2239
2068
  /**
2240
2069
  * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
2241
2070
  */
2242
- post(method: "Profiler.getBestEffortCoverage", callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void;
2243
-
2071
+ post(method: 'Profiler.getBestEffortCoverage', callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void;
2244
2072
  /**
2245
2073
  * Enable type profile.
2246
2074
  * @experimental
2247
2075
  */
2248
- post(method: "Profiler.startTypeProfile", callback?: (err: Error | null) => void): void;
2249
-
2076
+ post(method: 'Profiler.startTypeProfile', callback?: (err: Error | null) => void): void;
2250
2077
  /**
2251
2078
  * Disable type profile. Disabling releases type profile data collected so far.
2252
2079
  * @experimental
2253
2080
  */
2254
- post(method: "Profiler.stopTypeProfile", callback?: (err: Error | null) => void): void;
2255
-
2081
+ post(method: 'Profiler.stopTypeProfile', callback?: (err: Error | null) => void): void;
2256
2082
  /**
2257
2083
  * Collect type profile.
2258
2084
  * @experimental
2259
2085
  */
2260
- post(method: "Profiler.takeTypeProfile", callback?: (err: Error | null, params: Profiler.TakeTypeProfileReturnType) => void): void;
2261
-
2262
- post(method: "HeapProfiler.enable", callback?: (err: Error | null) => void): void;
2263
-
2264
- post(method: "HeapProfiler.disable", callback?: (err: Error | null) => void): void;
2265
-
2266
- post(method: "HeapProfiler.startTrackingHeapObjects", params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
2267
- post(method: "HeapProfiler.startTrackingHeapObjects", callback?: (err: Error | null) => void): void;
2268
-
2269
- post(method: "HeapProfiler.stopTrackingHeapObjects", params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
2270
- post(method: "HeapProfiler.stopTrackingHeapObjects", callback?: (err: Error | null) => void): void;
2271
-
2272
- post(method: "HeapProfiler.takeHeapSnapshot", params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void;
2273
- post(method: "HeapProfiler.takeHeapSnapshot", callback?: (err: Error | null) => void): void;
2274
-
2275
- post(method: "HeapProfiler.collectGarbage", callback?: (err: Error | null) => void): void;
2276
-
2086
+ post(method: 'Profiler.takeTypeProfile', callback?: (err: Error | null, params: Profiler.TakeTypeProfileReturnType) => void): void;
2087
+ post(method: 'HeapProfiler.enable', callback?: (err: Error | null) => void): void;
2088
+ post(method: 'HeapProfiler.disable', callback?: (err: Error | null) => void): void;
2089
+ post(method: 'HeapProfiler.startTrackingHeapObjects', params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
2090
+ post(method: 'HeapProfiler.startTrackingHeapObjects', callback?: (err: Error | null) => void): void;
2091
+ post(method: 'HeapProfiler.stopTrackingHeapObjects', params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
2092
+ post(method: 'HeapProfiler.stopTrackingHeapObjects', callback?: (err: Error | null) => void): void;
2093
+ post(method: 'HeapProfiler.takeHeapSnapshot', params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void;
2094
+ post(method: 'HeapProfiler.takeHeapSnapshot', callback?: (err: Error | null) => void): void;
2095
+ post(method: 'HeapProfiler.collectGarbage', callback?: (err: Error | null) => void): void;
2277
2096
  post(
2278
- method: "HeapProfiler.getObjectByHeapObjectId",
2097
+ method: 'HeapProfiler.getObjectByHeapObjectId',
2279
2098
  params?: HeapProfiler.GetObjectByHeapObjectIdParameterType,
2280
2099
  callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void
2281
2100
  ): void;
2282
- post(method: "HeapProfiler.getObjectByHeapObjectId", callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void;
2283
-
2101
+ post(method: 'HeapProfiler.getObjectByHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void;
2284
2102
  /**
2285
2103
  * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
2286
2104
  */
2287
- post(method: "HeapProfiler.addInspectedHeapObject", params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void;
2288
- post(method: "HeapProfiler.addInspectedHeapObject", callback?: (err: Error | null) => void): void;
2289
-
2290
- post(method: "HeapProfiler.getHeapObjectId", params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
2291
- post(method: "HeapProfiler.getHeapObjectId", callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
2292
-
2293
- post(method: "HeapProfiler.startSampling", params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void;
2294
- post(method: "HeapProfiler.startSampling", callback?: (err: Error | null) => void): void;
2295
-
2296
- post(method: "HeapProfiler.stopSampling", callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void;
2297
-
2298
- post(method: "HeapProfiler.getSamplingProfile", callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void;
2299
-
2105
+ post(method: 'HeapProfiler.addInspectedHeapObject', params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void;
2106
+ post(method: 'HeapProfiler.addInspectedHeapObject', callback?: (err: Error | null) => void): void;
2107
+ post(method: 'HeapProfiler.getHeapObjectId', params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
2108
+ post(method: 'HeapProfiler.getHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
2109
+ post(method: 'HeapProfiler.startSampling', params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void;
2110
+ post(method: 'HeapProfiler.startSampling', callback?: (err: Error | null) => void): void;
2111
+ post(method: 'HeapProfiler.stopSampling', callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void;
2112
+ post(method: 'HeapProfiler.getSamplingProfile', callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void;
2300
2113
  /**
2301
2114
  * Gets supported tracing categories.
2302
2115
  */
2303
- post(method: "NodeTracing.getCategories", callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
2304
-
2116
+ post(method: 'NodeTracing.getCategories', callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
2305
2117
  /**
2306
2118
  * Start trace events collection.
2307
2119
  */
2308
- post(method: "NodeTracing.start", params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void;
2309
- post(method: "NodeTracing.start", callback?: (err: Error | null) => void): void;
2310
-
2120
+ post(method: 'NodeTracing.start', params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void;
2121
+ post(method: 'NodeTracing.start', callback?: (err: Error | null) => void): void;
2311
2122
  /**
2312
2123
  * Stop trace events collection. Remaining collected events will be sent as a sequence of
2313
2124
  * dataCollected events followed by tracingComplete event.
2314
2125
  */
2315
- post(method: "NodeTracing.stop", callback?: (err: Error | null) => void): void;
2316
-
2126
+ post(method: 'NodeTracing.stop', callback?: (err: Error | null) => void): void;
2317
2127
  /**
2318
2128
  * Sends protocol message over session with given id.
2319
2129
  */
2320
- post(method: "NodeWorker.sendMessageToWorker", params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void;
2321
- post(method: "NodeWorker.sendMessageToWorker", callback?: (err: Error | null) => void): void;
2322
-
2130
+ post(method: 'NodeWorker.sendMessageToWorker', params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void;
2131
+ post(method: 'NodeWorker.sendMessageToWorker', callback?: (err: Error | null) => void): void;
2323
2132
  /**
2324
2133
  * Instructs the inspector to attach to running workers. Will also attach to new workers
2325
2134
  * as they start
2326
2135
  */
2327
- post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void;
2328
- post(method: "NodeWorker.enable", callback?: (err: Error | null) => void): void;
2329
-
2136
+ post(method: 'NodeWorker.enable', params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void;
2137
+ post(method: 'NodeWorker.enable', callback?: (err: Error | null) => void): void;
2330
2138
  /**
2331
2139
  * Detaches from all running workers and disables attaching to new workers as they are started.
2332
2140
  */
2333
- post(method: "NodeWorker.disable", callback?: (err: Error | null) => void): void;
2334
-
2141
+ post(method: 'NodeWorker.disable', callback?: (err: Error | null) => void): void;
2335
2142
  /**
2336
2143
  * Detached from the worker with given sessionId.
2337
2144
  */
2338
- post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void;
2339
- post(method: "NodeWorker.detach", callback?: (err: Error | null) => void): void;
2340
-
2145
+ post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void;
2146
+ post(method: 'NodeWorker.detach', callback?: (err: Error | null) => void): void;
2341
2147
  /**
2342
2148
  * Enable the `NodeRuntime.waitingForDisconnect`.
2343
2149
  */
2344
- post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void;
2345
- post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", callback?: (err: Error | null) => void): void;
2346
-
2150
+ post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void;
2151
+ post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', callback?: (err: Error | null) => void): void;
2347
2152
  // Events
2348
-
2349
2153
  addListener(event: string, listener: (...args: any[]) => void): this;
2350
-
2351
2154
  /**
2352
2155
  * Emitted when any notification from the V8 Inspector is received.
2353
2156
  */
2354
- addListener(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
2355
-
2157
+ addListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2356
2158
  /**
2357
2159
  * Issued when new execution context is created.
2358
2160
  */
2359
- addListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2360
-
2161
+ addListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2361
2162
  /**
2362
2163
  * Issued when execution context is destroyed.
2363
2164
  */
2364
- addListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2365
-
2165
+ addListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2366
2166
  /**
2367
2167
  * Issued when all executionContexts were cleared in browser
2368
2168
  */
2369
- addListener(event: "Runtime.executionContextsCleared", listener: () => void): this;
2370
-
2169
+ addListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2371
2170
  /**
2372
2171
  * Issued when exception was thrown and unhandled.
2373
2172
  */
2374
- addListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2375
-
2173
+ addListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2376
2174
  /**
2377
2175
  * Issued when unhandled exception was revoked.
2378
2176
  */
2379
- addListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2380
-
2177
+ addListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2381
2178
  /**
2382
2179
  * Issued when console API was called.
2383
2180
  */
2384
- addListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2385
-
2181
+ addListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2386
2182
  /**
2387
2183
  * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2388
2184
  */
2389
- addListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2390
-
2185
+ addListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2391
2186
  /**
2392
2187
  * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2393
2188
  */
2394
- addListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2395
-
2189
+ addListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2396
2190
  /**
2397
2191
  * Fired when virtual machine fails to parse the script.
2398
2192
  */
2399
- addListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2400
-
2193
+ addListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2401
2194
  /**
2402
2195
  * Fired when breakpoint is resolved to an actual script and location.
2403
2196
  */
2404
- addListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2405
-
2197
+ addListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2406
2198
  /**
2407
2199
  * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2408
2200
  */
2409
- addListener(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2410
-
2201
+ addListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2411
2202
  /**
2412
2203
  * Fired when the virtual machine resumed execution.
2413
2204
  */
2414
- addListener(event: "Debugger.resumed", listener: () => void): this;
2415
-
2205
+ addListener(event: 'Debugger.resumed', listener: () => void): this;
2416
2206
  /**
2417
2207
  * Issued when new console message is added.
2418
2208
  */
2419
- addListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2420
-
2209
+ addListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2421
2210
  /**
2422
2211
  * Sent when new profile recording is started using console.profile() call.
2423
2212
  */
2424
- addListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2425
-
2426
- addListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2427
- addListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2428
- addListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
2429
- addListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2430
-
2213
+ addListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2214
+ addListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2215
+ addListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2216
+ addListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2217
+ addListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2431
2218
  /**
2432
2219
  * 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.
2433
2220
  */
2434
- addListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2435
-
2221
+ addListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2436
2222
  /**
2437
2223
  * If heap objects tracking has been started then backend may send update for one or more fragments
2438
2224
  */
2439
- addListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2440
-
2225
+ addListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2441
2226
  /**
2442
2227
  * Contains an bucket of collected trace events.
2443
2228
  */
2444
- addListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2445
-
2229
+ addListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2446
2230
  /**
2447
2231
  * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2448
2232
  * delivered via dataCollected events.
2449
2233
  */
2450
- addListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
2451
-
2234
+ addListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2452
2235
  /**
2453
2236
  * Issued when attached to a worker.
2454
2237
  */
2455
- addListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2456
-
2238
+ addListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2457
2239
  /**
2458
2240
  * Issued when detached from the worker.
2459
2241
  */
2460
- addListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2461
-
2242
+ addListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2462
2243
  /**
2463
2244
  * Notifies about a new protocol message received from the session
2464
2245
  * (session ID is provided in attachedToWorker notification).
2465
2246
  */
2466
- addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2467
-
2247
+ addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2468
2248
  /**
2469
2249
  * This event is fired instead of `Runtime.executionContextDestroyed` when
2470
2250
  * enabled.
2471
2251
  * It is fired when the Node process finished all code execution and is
2472
2252
  * waiting for all frontends to disconnect.
2473
2253
  */
2474
- addListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
2475
-
2254
+ addListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2476
2255
  emit(event: string | symbol, ...args: any[]): boolean;
2477
- emit(event: "inspectorNotification", message: InspectorNotification<{}>): boolean;
2478
- emit(event: "Runtime.executionContextCreated", message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
2479
- emit(event: "Runtime.executionContextDestroyed", message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>): boolean;
2480
- emit(event: "Runtime.executionContextsCleared"): boolean;
2481
- emit(event: "Runtime.exceptionThrown", message: InspectorNotification<Runtime.ExceptionThrownEventDataType>): boolean;
2482
- emit(event: "Runtime.exceptionRevoked", message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>): boolean;
2483
- emit(event: "Runtime.consoleAPICalled", message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>): boolean;
2484
- emit(event: "Runtime.inspectRequested", message: InspectorNotification<Runtime.InspectRequestedEventDataType>): boolean;
2485
- emit(event: "Debugger.scriptParsed", message: InspectorNotification<Debugger.ScriptParsedEventDataType>): boolean;
2486
- emit(event: "Debugger.scriptFailedToParse", message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>): boolean;
2487
- emit(event: "Debugger.breakpointResolved", message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>): boolean;
2488
- emit(event: "Debugger.paused", message: InspectorNotification<Debugger.PausedEventDataType>): boolean;
2489
- emit(event: "Debugger.resumed"): boolean;
2490
- emit(event: "Console.messageAdded", message: InspectorNotification<Console.MessageAddedEventDataType>): boolean;
2491
- emit(event: "Profiler.consoleProfileStarted", message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>): boolean;
2492
- emit(event: "Profiler.consoleProfileFinished", message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>): boolean;
2493
- emit(event: "HeapProfiler.addHeapSnapshotChunk", message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>): boolean;
2494
- emit(event: "HeapProfiler.resetProfiles"): boolean;
2495
- emit(event: "HeapProfiler.reportHeapSnapshotProgress", message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
2496
- emit(event: "HeapProfiler.lastSeenObjectId", message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
2497
- emit(event: "HeapProfiler.heapStatsUpdate", message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
2498
- emit(event: "NodeTracing.dataCollected", message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
2499
- emit(event: "NodeTracing.tracingComplete"): boolean;
2500
- emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
2501
- emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
2502
- emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
2503
- emit(event: "NodeRuntime.waitingForDisconnect"): boolean;
2504
-
2256
+ emit(event: 'inspectorNotification', message: InspectorNotification<{}>): boolean;
2257
+ emit(event: 'Runtime.executionContextCreated', message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
2258
+ emit(event: 'Runtime.executionContextDestroyed', message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>): boolean;
2259
+ emit(event: 'Runtime.executionContextsCleared'): boolean;
2260
+ emit(event: 'Runtime.exceptionThrown', message: InspectorNotification<Runtime.ExceptionThrownEventDataType>): boolean;
2261
+ emit(event: 'Runtime.exceptionRevoked', message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>): boolean;
2262
+ emit(event: 'Runtime.consoleAPICalled', message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>): boolean;
2263
+ emit(event: 'Runtime.inspectRequested', message: InspectorNotification<Runtime.InspectRequestedEventDataType>): boolean;
2264
+ emit(event: 'Debugger.scriptParsed', message: InspectorNotification<Debugger.ScriptParsedEventDataType>): boolean;
2265
+ emit(event: 'Debugger.scriptFailedToParse', message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>): boolean;
2266
+ emit(event: 'Debugger.breakpointResolved', message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>): boolean;
2267
+ emit(event: 'Debugger.paused', message: InspectorNotification<Debugger.PausedEventDataType>): boolean;
2268
+ emit(event: 'Debugger.resumed'): boolean;
2269
+ emit(event: 'Console.messageAdded', message: InspectorNotification<Console.MessageAddedEventDataType>): boolean;
2270
+ emit(event: 'Profiler.consoleProfileStarted', message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>): boolean;
2271
+ emit(event: 'Profiler.consoleProfileFinished', message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>): boolean;
2272
+ emit(event: 'HeapProfiler.addHeapSnapshotChunk', message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>): boolean;
2273
+ emit(event: 'HeapProfiler.resetProfiles'): boolean;
2274
+ emit(event: 'HeapProfiler.reportHeapSnapshotProgress', message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
2275
+ emit(event: 'HeapProfiler.lastSeenObjectId', message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
2276
+ emit(event: 'HeapProfiler.heapStatsUpdate', message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
2277
+ emit(event: 'NodeTracing.dataCollected', message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
2278
+ emit(event: 'NodeTracing.tracingComplete'): boolean;
2279
+ emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
2280
+ emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
2281
+ emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
2282
+ emit(event: 'NodeRuntime.waitingForDisconnect'): boolean;
2505
2283
  on(event: string, listener: (...args: any[]) => void): this;
2506
-
2507
2284
  /**
2508
2285
  * Emitted when any notification from the V8 Inspector is received.
2509
2286
  */
2510
- on(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
2511
-
2287
+ on(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2512
2288
  /**
2513
2289
  * Issued when new execution context is created.
2514
2290
  */
2515
- on(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2516
-
2291
+ on(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2517
2292
  /**
2518
2293
  * Issued when execution context is destroyed.
2519
2294
  */
2520
- on(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2521
-
2295
+ on(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2522
2296
  /**
2523
2297
  * Issued when all executionContexts were cleared in browser
2524
2298
  */
2525
- on(event: "Runtime.executionContextsCleared", listener: () => void): this;
2526
-
2299
+ on(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2527
2300
  /**
2528
2301
  * Issued when exception was thrown and unhandled.
2529
2302
  */
2530
- on(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2531
-
2303
+ on(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2532
2304
  /**
2533
2305
  * Issued when unhandled exception was revoked.
2534
2306
  */
2535
- on(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2536
-
2307
+ on(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2537
2308
  /**
2538
2309
  * Issued when console API was called.
2539
2310
  */
2540
- on(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2541
-
2311
+ on(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2542
2312
  /**
2543
2313
  * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2544
2314
  */
2545
- on(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2546
-
2315
+ on(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2547
2316
  /**
2548
2317
  * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2549
2318
  */
2550
- on(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2551
-
2319
+ on(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2552
2320
  /**
2553
2321
  * Fired when virtual machine fails to parse the script.
2554
2322
  */
2555
- on(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2556
-
2323
+ on(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2557
2324
  /**
2558
2325
  * Fired when breakpoint is resolved to an actual script and location.
2559
2326
  */
2560
- on(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2561
-
2327
+ on(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2562
2328
  /**
2563
2329
  * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2564
2330
  */
2565
- on(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2566
-
2331
+ on(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2567
2332
  /**
2568
2333
  * Fired when the virtual machine resumed execution.
2569
2334
  */
2570
- on(event: "Debugger.resumed", listener: () => void): this;
2571
-
2335
+ on(event: 'Debugger.resumed', listener: () => void): this;
2572
2336
  /**
2573
2337
  * Issued when new console message is added.
2574
2338
  */
2575
- on(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2576
-
2339
+ on(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2577
2340
  /**
2578
2341
  * Sent when new profile recording is started using console.profile() call.
2579
2342
  */
2580
- on(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2581
-
2582
- on(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2583
- on(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2584
- on(event: "HeapProfiler.resetProfiles", listener: () => void): this;
2585
- on(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2586
-
2343
+ on(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2344
+ on(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2345
+ on(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2346
+ on(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2347
+ on(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2587
2348
  /**
2588
2349
  * 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.
2589
2350
  */
2590
- on(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2591
-
2351
+ on(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2592
2352
  /**
2593
2353
  * If heap objects tracking has been started then backend may send update for one or more fragments
2594
2354
  */
2595
- on(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2596
-
2355
+ on(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2597
2356
  /**
2598
2357
  * Contains an bucket of collected trace events.
2599
2358
  */
2600
- on(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2601
-
2359
+ on(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2602
2360
  /**
2603
2361
  * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2604
2362
  * delivered via dataCollected events.
2605
2363
  */
2606
- on(event: "NodeTracing.tracingComplete", listener: () => void): this;
2607
-
2364
+ on(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2608
2365
  /**
2609
2366
  * Issued when attached to a worker.
2610
2367
  */
2611
- on(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2612
-
2368
+ on(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2613
2369
  /**
2614
2370
  * Issued when detached from the worker.
2615
2371
  */
2616
- on(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2617
-
2372
+ on(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2618
2373
  /**
2619
2374
  * Notifies about a new protocol message received from the session
2620
2375
  * (session ID is provided in attachedToWorker notification).
2621
2376
  */
2622
- on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2623
-
2377
+ on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2624
2378
  /**
2625
2379
  * This event is fired instead of `Runtime.executionContextDestroyed` when
2626
2380
  * enabled.
2627
2381
  * It is fired when the Node process finished all code execution and is
2628
2382
  * waiting for all frontends to disconnect.
2629
2383
  */
2630
- on(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
2631
-
2384
+ on(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2632
2385
  once(event: string, listener: (...args: any[]) => void): this;
2633
-
2634
2386
  /**
2635
2387
  * Emitted when any notification from the V8 Inspector is received.
2636
2388
  */
2637
- once(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
2638
-
2389
+ once(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2639
2390
  /**
2640
2391
  * Issued when new execution context is created.
2641
2392
  */
2642
- once(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2643
-
2393
+ once(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2644
2394
  /**
2645
2395
  * Issued when execution context is destroyed.
2646
2396
  */
2647
- once(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2648
-
2397
+ once(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2649
2398
  /**
2650
2399
  * Issued when all executionContexts were cleared in browser
2651
2400
  */
2652
- once(event: "Runtime.executionContextsCleared", listener: () => void): this;
2653
-
2401
+ once(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2654
2402
  /**
2655
2403
  * Issued when exception was thrown and unhandled.
2656
2404
  */
2657
- once(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2658
-
2405
+ once(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2659
2406
  /**
2660
2407
  * Issued when unhandled exception was revoked.
2661
2408
  */
2662
- once(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2663
-
2409
+ once(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2664
2410
  /**
2665
2411
  * Issued when console API was called.
2666
2412
  */
2667
- once(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2668
-
2413
+ once(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2669
2414
  /**
2670
2415
  * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2671
2416
  */
2672
- once(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2673
-
2417
+ once(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2674
2418
  /**
2675
2419
  * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2676
2420
  */
2677
- once(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2678
-
2421
+ once(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2679
2422
  /**
2680
2423
  * Fired when virtual machine fails to parse the script.
2681
2424
  */
2682
- once(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2683
-
2425
+ once(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2684
2426
  /**
2685
2427
  * Fired when breakpoint is resolved to an actual script and location.
2686
2428
  */
2687
- once(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2688
-
2429
+ once(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2689
2430
  /**
2690
2431
  * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2691
2432
  */
2692
- once(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2693
-
2433
+ once(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2694
2434
  /**
2695
2435
  * Fired when the virtual machine resumed execution.
2696
2436
  */
2697
- once(event: "Debugger.resumed", listener: () => void): this;
2698
-
2437
+ once(event: 'Debugger.resumed', listener: () => void): this;
2699
2438
  /**
2700
2439
  * Issued when new console message is added.
2701
2440
  */
2702
- once(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2703
-
2441
+ once(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2704
2442
  /**
2705
2443
  * Sent when new profile recording is started using console.profile() call.
2706
2444
  */
2707
- once(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2708
-
2709
- once(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2710
- once(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2711
- once(event: "HeapProfiler.resetProfiles", listener: () => void): this;
2712
- once(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2713
-
2445
+ once(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2446
+ once(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2447
+ once(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2448
+ once(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2449
+ once(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2714
2450
  /**
2715
2451
  * 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.
2716
2452
  */
2717
- once(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2718
-
2453
+ once(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2719
2454
  /**
2720
2455
  * If heap objects tracking has been started then backend may send update for one or more fragments
2721
2456
  */
2722
- once(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2723
-
2457
+ once(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2724
2458
  /**
2725
2459
  * Contains an bucket of collected trace events.
2726
2460
  */
2727
- once(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2728
-
2461
+ once(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2729
2462
  /**
2730
2463
  * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2731
2464
  * delivered via dataCollected events.
2732
2465
  */
2733
- once(event: "NodeTracing.tracingComplete", listener: () => void): this;
2734
-
2466
+ once(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2735
2467
  /**
2736
2468
  * Issued when attached to a worker.
2737
2469
  */
2738
- once(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2739
-
2470
+ once(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2740
2471
  /**
2741
2472
  * Issued when detached from the worker.
2742
2473
  */
2743
- once(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2744
-
2474
+ once(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2745
2475
  /**
2746
2476
  * Notifies about a new protocol message received from the session
2747
2477
  * (session ID is provided in attachedToWorker notification).
2748
2478
  */
2749
- once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2750
-
2479
+ once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2751
2480
  /**
2752
2481
  * This event is fired instead of `Runtime.executionContextDestroyed` when
2753
2482
  * enabled.
2754
2483
  * It is fired when the Node process finished all code execution and is
2755
2484
  * waiting for all frontends to disconnect.
2756
2485
  */
2757
- once(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
2758
-
2486
+ once(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2759
2487
  prependListener(event: string, listener: (...args: any[]) => void): this;
2760
-
2761
2488
  /**
2762
2489
  * Emitted when any notification from the V8 Inspector is received.
2763
2490
  */
2764
- prependListener(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
2765
-
2491
+ prependListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2766
2492
  /**
2767
2493
  * Issued when new execution context is created.
2768
2494
  */
2769
- prependListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2770
-
2495
+ prependListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2771
2496
  /**
2772
2497
  * Issued when execution context is destroyed.
2773
2498
  */
2774
- prependListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2775
-
2499
+ prependListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2776
2500
  /**
2777
2501
  * Issued when all executionContexts were cleared in browser
2778
2502
  */
2779
- prependListener(event: "Runtime.executionContextsCleared", listener: () => void): this;
2780
-
2503
+ prependListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2781
2504
  /**
2782
2505
  * Issued when exception was thrown and unhandled.
2783
2506
  */
2784
- prependListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2785
-
2507
+ prependListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2786
2508
  /**
2787
2509
  * Issued when unhandled exception was revoked.
2788
2510
  */
2789
- prependListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2790
-
2511
+ prependListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2791
2512
  /**
2792
2513
  * Issued when console API was called.
2793
2514
  */
2794
- prependListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2795
-
2515
+ prependListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2796
2516
  /**
2797
2517
  * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2798
2518
  */
2799
- prependListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2800
-
2519
+ prependListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2801
2520
  /**
2802
2521
  * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2803
2522
  */
2804
- prependListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2805
-
2523
+ prependListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2806
2524
  /**
2807
2525
  * Fired when virtual machine fails to parse the script.
2808
2526
  */
2809
- prependListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2810
-
2527
+ prependListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2811
2528
  /**
2812
2529
  * Fired when breakpoint is resolved to an actual script and location.
2813
2530
  */
2814
- prependListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2815
-
2531
+ prependListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2816
2532
  /**
2817
2533
  * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2818
2534
  */
2819
- prependListener(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2820
-
2535
+ prependListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2821
2536
  /**
2822
2537
  * Fired when the virtual machine resumed execution.
2823
2538
  */
2824
- prependListener(event: "Debugger.resumed", listener: () => void): this;
2825
-
2539
+ prependListener(event: 'Debugger.resumed', listener: () => void): this;
2826
2540
  /**
2827
2541
  * Issued when new console message is added.
2828
2542
  */
2829
- prependListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2830
-
2543
+ prependListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2831
2544
  /**
2832
2545
  * Sent when new profile recording is started using console.profile() call.
2833
2546
  */
2834
- prependListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2835
-
2836
- prependListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2837
- prependListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2838
- prependListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
2839
- prependListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2840
-
2547
+ prependListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2548
+ prependListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2549
+ prependListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2550
+ prependListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2551
+ prependListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2841
2552
  /**
2842
2553
  * 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
2554
  */
2844
- prependListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2845
-
2555
+ prependListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2846
2556
  /**
2847
2557
  * If heap objects tracking has been started then backend may send update for one or more fragments
2848
2558
  */
2849
- prependListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2850
-
2559
+ prependListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2851
2560
  /**
2852
2561
  * Contains an bucket of collected trace events.
2853
2562
  */
2854
- prependListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2855
-
2563
+ prependListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2856
2564
  /**
2857
2565
  * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2858
2566
  * delivered via dataCollected events.
2859
2567
  */
2860
- prependListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
2861
-
2568
+ prependListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2862
2569
  /**
2863
2570
  * Issued when attached to a worker.
2864
2571
  */
2865
- prependListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2866
-
2572
+ prependListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2867
2573
  /**
2868
2574
  * Issued when detached from the worker.
2869
2575
  */
2870
- prependListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2871
-
2576
+ prependListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2872
2577
  /**
2873
2578
  * Notifies about a new protocol message received from the session
2874
2579
  * (session ID is provided in attachedToWorker notification).
2875
2580
  */
2876
- prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2877
-
2581
+ prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2878
2582
  /**
2879
2583
  * This event is fired instead of `Runtime.executionContextDestroyed` when
2880
2584
  * enabled.
2881
2585
  * It is fired when the Node process finished all code execution and is
2882
2586
  * waiting for all frontends to disconnect.
2883
2587
  */
2884
- prependListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
2885
-
2588
+ prependListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2886
2589
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
2887
-
2888
2590
  /**
2889
2591
  * Emitted when any notification from the V8 Inspector is received.
2890
2592
  */
2891
- prependOnceListener(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
2892
-
2593
+ prependOnceListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2893
2594
  /**
2894
2595
  * Issued when new execution context is created.
2895
2596
  */
2896
- prependOnceListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2897
-
2597
+ prependOnceListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2898
2598
  /**
2899
2599
  * Issued when execution context is destroyed.
2900
2600
  */
2901
- prependOnceListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2902
-
2601
+ prependOnceListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2903
2602
  /**
2904
2603
  * Issued when all executionContexts were cleared in browser
2905
2604
  */
2906
- prependOnceListener(event: "Runtime.executionContextsCleared", listener: () => void): this;
2907
-
2605
+ prependOnceListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2908
2606
  /**
2909
2607
  * Issued when exception was thrown and unhandled.
2910
2608
  */
2911
- prependOnceListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2912
-
2609
+ prependOnceListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2913
2610
  /**
2914
2611
  * Issued when unhandled exception was revoked.
2915
2612
  */
2916
- prependOnceListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2917
-
2613
+ prependOnceListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2918
2614
  /**
2919
2615
  * Issued when console API was called.
2920
2616
  */
2921
- prependOnceListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2922
-
2617
+ prependOnceListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2923
2618
  /**
2924
2619
  * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2925
2620
  */
2926
- prependOnceListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2927
-
2621
+ prependOnceListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2928
2622
  /**
2929
2623
  * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2930
2624
  */
2931
- prependOnceListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2932
-
2625
+ prependOnceListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2933
2626
  /**
2934
2627
  * Fired when virtual machine fails to parse the script.
2935
2628
  */
2936
- prependOnceListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2937
-
2629
+ prependOnceListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2938
2630
  /**
2939
2631
  * Fired when breakpoint is resolved to an actual script and location.
2940
2632
  */
2941
- prependOnceListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2942
-
2633
+ prependOnceListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2943
2634
  /**
2944
2635
  * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2945
2636
  */
2946
- prependOnceListener(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2947
-
2637
+ prependOnceListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2948
2638
  /**
2949
2639
  * Fired when the virtual machine resumed execution.
2950
2640
  */
2951
- prependOnceListener(event: "Debugger.resumed", listener: () => void): this;
2952
-
2641
+ prependOnceListener(event: 'Debugger.resumed', listener: () => void): this;
2953
2642
  /**
2954
2643
  * Issued when new console message is added.
2955
2644
  */
2956
- prependOnceListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2957
-
2645
+ prependOnceListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2958
2646
  /**
2959
2647
  * Sent when new profile recording is started using console.profile() call.
2960
2648
  */
2961
- prependOnceListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2962
-
2963
- prependOnceListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2964
- prependOnceListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2965
- prependOnceListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
2966
- prependOnceListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2967
-
2649
+ prependOnceListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2650
+ prependOnceListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2651
+ prependOnceListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2652
+ prependOnceListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2653
+ prependOnceListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2968
2654
  /**
2969
2655
  * 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.
2970
2656
  */
2971
- prependOnceListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2972
-
2657
+ prependOnceListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2973
2658
  /**
2974
2659
  * If heap objects tracking has been started then backend may send update for one or more fragments
2975
2660
  */
2976
- prependOnceListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2977
-
2661
+ prependOnceListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2978
2662
  /**
2979
2663
  * Contains an bucket of collected trace events.
2980
2664
  */
2981
- prependOnceListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2982
-
2665
+ prependOnceListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2983
2666
  /**
2984
2667
  * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2985
2668
  * delivered via dataCollected events.
2986
2669
  */
2987
- prependOnceListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
2988
-
2670
+ prependOnceListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2989
2671
  /**
2990
2672
  * Issued when attached to a worker.
2991
2673
  */
2992
- prependOnceListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2993
-
2674
+ prependOnceListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2994
2675
  /**
2995
2676
  * Issued when detached from the worker.
2996
2677
  */
2997
- prependOnceListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2998
-
2678
+ prependOnceListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2999
2679
  /**
3000
2680
  * Notifies about a new protocol message received from the session
3001
2681
  * (session ID is provided in attachedToWorker notification).
3002
2682
  */
3003
- prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3004
-
2683
+ prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3005
2684
  /**
3006
2685
  * This event is fired instead of `Runtime.executionContextDestroyed` when
3007
2686
  * enabled.
3008
2687
  * It is fired when the Node process finished all code execution and is
3009
2688
  * waiting for all frontends to disconnect.
3010
2689
  */
3011
- prependOnceListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
2690
+ prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
3012
2691
  }
3013
-
3014
- // Top Level API
3015
-
3016
2692
  /**
3017
- * Activate inspector on host and port. Equivalent to node --inspect=[[host:]port], but can be done programatically after node has started.
3018
- * If wait is true, will block until a client has connected to the inspect port and flow control has been passed to the debugger client.
3019
- * @param port Port to listen on for inspector connections. Optional, defaults to what was specified on the CLI.
3020
- * @param host Host to listen on for inspector connections. Optional, defaults to what was specified on the CLI.
3021
- * @param wait Block until a client has connected. Optional, defaults to false.
2693
+ * Activate inspector on host and port. Equivalent to `node --inspect=[[host:]port]`, but can be done programmatically after node has
2694
+ * started.
2695
+ *
2696
+ * If wait is `true`, will block until a client has connected to the inspect port
2697
+ * and flow control has been passed to the debugger client.
2698
+ *
2699
+ * See the `security warning` regarding the `host`parameter usage.
2700
+ * @param port Port to listen on for inspector connections. Optional.
2701
+ * @param host Host to listen on for inspector connections. Optional.
2702
+ * @param wait Block until a client has connected. Optional.
3022
2703
  */
3023
2704
  function open(port?: number, host?: string, wait?: boolean): void;
3024
-
3025
2705
  /**
3026
2706
  * Deactivate the inspector. Blocks until there are no active connections.
3027
2707
  */
3028
2708
  function close(): void;
3029
-
3030
2709
  /**
3031
2710
  * Return the URL of the active inspector, or `undefined` if there is none.
2711
+ *
2712
+ * ```console
2713
+ * $ node --inspect -p 'inspector.url()'
2714
+ * Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
2715
+ * For help see https://nodejs.org/en/docs/inspector
2716
+ * ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
2717
+ *
2718
+ * $ node --inspect=localhost:3000 -p 'inspector.url()'
2719
+ * Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
2720
+ * For help see https://nodejs.org/en/docs/inspector
2721
+ * ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
2722
+ *
2723
+ * $ node -p 'inspector.url()'
2724
+ * undefined
2725
+ * ```
3032
2726
  */
3033
2727
  function url(): string | undefined;
3034
-
3035
2728
  /**
3036
- * Blocks until a client (existing or connected later) has sent
3037
- * `Runtime.runIfWaitingForDebugger` command.
2729
+ * Blocks until a client (existing or connected later) has sent`Runtime.runIfWaitingForDebugger` command.
2730
+ *
3038
2731
  * An exception will be thrown if there is no active inspector.
2732
+ * @since v12.7.0
3039
2733
  */
3040
2734
  function waitForDebugger(): void;
3041
2735
  }
3042
-
3043
2736
  declare module 'node:inspector' {
3044
2737
  import EventEmitter = require('inspector');
3045
2738
  export = EventEmitter;