Source

scope.bitbucket.org / scope / services / EcmascriptDebugger / EcmascriptDebugger_6_6.html

Full commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>EcmascriptDebugger 6.6 &mdash; Scope Interface v1 documentation</title>
    <link rel="stylesheet" href="../../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    <link rel="stylesheet" media="print" href="../../_static/print.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../../',
        VERSION:     '1',
        COLLAPSE_MODINDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../_static/underscore.js"></script>
    <script type="text/javascript" src="../../_static/doctools.js"></script>
    <link rel="copyright" title="Copyright" href="../../copyright.html" />
    <link rel="top" title="Scope Interface v1 documentation" href="../../index.html" />
    <link rel="up" title="EcmascriptDebugger" href="../EcmascriptDebugger.html" />
    <link rel="next" title="EcmascriptDebugger 6.7" href="EcmascriptDebugger_6_7.html" />
    <link rel="prev" title="EcmascriptDebugger 6.5" href="EcmascriptDebugger_6_5.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="EcmascriptDebugger_6_7.html" title="EcmascriptDebugger 6.7"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="EcmascriptDebugger_6_5.html" title="EcmascriptDebugger 6.5"
             accesskey="P">previous</a> |</li>
        <li><a href="../../index.html">Scope Interface v1 documentation</a> &raquo;</li>
          <li><a href="../EcmascriptDebugger.html" accesskey="U">EcmascriptDebugger</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="ecmascriptdebugger-6-6">
<h1>EcmascriptDebugger 6.6<a class="headerlink" href="#ecmascriptdebugger-6-6" title="Permalink to this headline">¶</a></h1>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Generated:</th><td class="field-body">hob rst-doc</td>
</tr>
<tr class="field"><th class="field-name">Version:</th><td class="field-body">6.6</td>
</tr>
<tr class="field"><th class="field-name">Status:</th><td class="field-body">Published</td>
</tr>
</tbody>
</table>
<div class="section" id="service">
<h2>Service<a class="headerlink" href="#service" title="Permalink to this headline">¶</a></h2>
<p>Central data types and how they work:</p>
<p>A &#8220;runtime&#8221; represents a document context in which threads execute.
There is a one-to-one mapping between runtimes and HTML documents.</p>
<p>A &#8220;thread&#8221; represents a thread of execution in a runtime.  A &#8220;parent&#8221;
thread can be preempted by another &#8220;child&#8221; thread in order to respond
to a priority event; the parent thread will not run again until the
child thread has finished.</p>
<p>A &#8220;script&#8221; is a pair (id, source code) where the id is globally
unique and the source code is Unicode text.</p>
<p>An &#8220;object&#8221; is represented by a globally unique ID that is assigned by
the debugger.</p>
<p>Globally unique means unique within a running Opera session; that is
from starting Opera to stopping it.</p>
<p>The windowID is shared across scope. Notably, it&#8217;s the same as in the console logger and window manager
INTERNAL: The value is from Window::id</p>
<div class="highlight-c"><div class="highlight"><pre><span class="n">service</span> <span class="n">EcmascriptDebugger</span>
<span class="p">{</span>
  <span class="n">option</span> <span class="p">(</span><span class="n">cpp_hfile</span><span class="p">)</span> <span class="o">=</span> <span class="s">&quot;modules/scope/src/scope_ecmascript_debugger.h&quot;</span><span class="p">;</span>

  <span class="n">option</span> <span class="p">(</span><span class="n">version</span><span class="p">)</span>   <span class="o">=</span> <span class="s">&quot;6.6&quot;</span><span class="p">;</span>

  <span class="n">option</span> <span class="p">(</span><span class="n">cpp_class</span><span class="p">)</span> <span class="o">=</span> <span class="n">ES_ScopeDebugFrontend</span><span class="p">;</span>


  <span class="n">command</span> <span class="n">ListRuntimes</span><span class="p">(</span><span class="n">RuntimeSelection</span><span class="p">)</span>               <span class="n">returns</span> <span class="p">(</span><span class="n">RuntimeList</span><span class="p">)</span>               <span class="o">=</span>  <span class="mi">1</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">ContinueThread</span><span class="p">(</span><span class="n">ThreadMode</span><span class="p">)</span>                   <span class="n">returns</span> <span class="p">(</span><span class="n">Default</span><span class="p">)</span>                   <span class="o">=</span>  <span class="mi">2</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">Eval</span><span class="p">(</span><span class="n">EvalData</span><span class="p">)</span>                               <span class="n">returns</span> <span class="p">(</span><span class="n">EvalResult</span><span class="p">)</span>                <span class="o">=</span>  <span class="mi">3</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">ExamineObjects</span><span class="p">(</span><span class="n">ExamineList</span><span class="p">)</span>                  <span class="n">returns</span> <span class="p">(</span><span class="n">ObjectChainList</span><span class="p">)</span>           <span class="o">=</span>  <span class="mi">4</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">SpotlightObject</span><span class="p">(</span><span class="n">SpotlightObjectSelection</span><span class="p">)</span>    <span class="n">returns</span> <span class="p">(</span><span class="n">Default</span><span class="p">)</span>                   <span class="o">=</span>  <span class="mi">5</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">AddBreakpoint</span><span class="p">(</span><span class="n">Breakpoint</span><span class="p">)</span>                    <span class="n">returns</span> <span class="p">(</span><span class="n">Default</span><span class="p">)</span>                   <span class="o">=</span>  <span class="mi">6</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">RemoveBreakpoint</span><span class="p">(</span><span class="n">BreakpointID</span><span class="p">)</span>               <span class="n">returns</span> <span class="p">(</span><span class="n">Default</span><span class="p">)</span>                   <span class="o">=</span>  <span class="mi">7</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">AddEventHandler</span><span class="p">(</span><span class="n">EventHandler</span><span class="p">)</span>                <span class="n">returns</span> <span class="p">(</span><span class="n">Default</span><span class="p">)</span>                   <span class="o">=</span>  <span class="mi">8</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">RemoveEventHandler</span><span class="p">(</span><span class="n">EventHandlerID</span><span class="p">)</span>           <span class="n">returns</span> <span class="p">(</span><span class="n">Default</span><span class="p">)</span>                   <span class="o">=</span>  <span class="mi">9</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">SetConfiguration</span><span class="p">(</span><span class="n">Configuration</span><span class="p">)</span>              <span class="n">returns</span> <span class="p">(</span><span class="n">Default</span><span class="p">)</span>                   <span class="o">=</span> <span class="mi">10</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">GetBacktrace</span><span class="p">(</span><span class="n">BacktraceSelection</span><span class="p">)</span>             <span class="n">returns</span> <span class="p">(</span><span class="n">BacktraceFrameList</span><span class="p">)</span>        <span class="o">=</span> <span class="mi">11</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">Break</span><span class="p">(</span><span class="n">BreakSelection</span><span class="p">)</span>                        <span class="n">returns</span> <span class="p">(</span><span class="n">Default</span><span class="p">)</span>                   <span class="o">=</span> <span class="mi">12</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">InspectDom</span><span class="p">(</span><span class="n">DomTraversal</span><span class="p">)</span>                     <span class="n">returns</span> <span class="p">(</span><span class="n">NodeList</span><span class="p">)</span>                  <span class="o">=</span> <span class="mi">13</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">CssGetIndexMap</span><span class="p">(</span><span class="n">Default</span><span class="p">)</span>                      <span class="n">returns</span> <span class="p">(</span><span class="n">CssIndexMap</span><span class="p">)</span>               <span class="o">=</span> <span class="mi">22</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">CssGetAllStylesheets</span><span class="p">(</span><span class="n">RuntimeID</span><span class="p">)</span>              <span class="n">returns</span> <span class="p">(</span><span class="n">CssStylesheetList</span><span class="p">)</span>         <span class="o">=</span> <span class="mi">23</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">CssGetStylesheet</span><span class="p">(</span><span class="n">CssStylesheetSelection</span><span class="p">)</span>     <span class="n">returns</span> <span class="p">(</span><span class="n">CssStylesheetRules</span><span class="p">)</span>        <span class="o">=</span> <span class="mi">24</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">CssGetStyleDeclarations</span><span class="p">(</span><span class="n">CssElementSelection</span><span class="p">)</span> <span class="n">returns</span> <span class="p">(</span><span class="n">CssStyleDeclarations</span><span class="p">)</span>      <span class="o">=</span> <span class="mi">25</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">GetSelectedObject</span><span class="p">(</span><span class="n">Default</span><span class="p">)</span>                   <span class="n">returns</span> <span class="p">(</span><span class="n">ObjectSelection</span><span class="p">)</span>           <span class="o">=</span> <span class="mi">26</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">SpotlightObjects</span><span class="p">(</span><span class="n">SpotlightSelection</span><span class="p">)</span>         <span class="n">returns</span> <span class="p">(</span><span class="n">Default</span><span class="p">)</span>                   <span class="o">=</span> <span class="mi">27</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">ReleaseObjects</span><span class="p">(</span><span class="n">ReleaseObjectsArg</span><span class="p">)</span>            <span class="n">returns</span> <span class="p">(</span><span class="n">Default</span><span class="p">)</span>                   <span class="o">=</span> <span class="mi">29</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">SetPropertyFilter</span><span class="p">(</span><span class="n">SetPropertyFilterArg</span><span class="p">)</span>      <span class="n">returns</span> <span class="p">(</span><span class="n">Default</span><span class="p">)</span>                   <span class="o">=</span> <span class="mi">30</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">AddEventBreakpoint</span><span class="p">(</span><span class="n">EventBreakpoint</span><span class="p">)</span>          <span class="n">returns</span> <span class="p">(</span><span class="n">Default</span><span class="p">)</span>                   <span class="o">=</span> <span class="mi">38</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">SetFunctionFilter</span><span class="p">(</span><span class="n">FunctionFilter</span><span class="p">)</span>            <span class="n">returns</span> <span class="p">(</span><span class="n">Default</span><span class="p">)</span>                   <span class="o">=</span> <span class="mi">39</span><span class="p">;</span>
  <span class="n">command</span> <span class="n">SearchDom</span><span class="p">(</span><span class="n">SearchDomArg</span><span class="p">)</span>                      <span class="n">returns</span> <span class="p">(</span><span class="n">NodeList</span><span class="p">)</span>                  <span class="o">=</span> <span class="mi">42</span><span class="p">;</span>
  <span class="n">event</span>   <span class="n">OnRuntimeStarted</span>                             <span class="n">returns</span> <span class="p">(</span><span class="n">RuntimeInfo</span><span class="p">)</span>               <span class="o">=</span> <span class="mi">14</span><span class="p">;</span>
  <span class="n">event</span>   <span class="n">OnRuntimeStopped</span>                             <span class="n">returns</span> <span class="p">(</span><span class="n">RuntimeID</span><span class="p">)</span>                 <span class="o">=</span> <span class="mi">15</span><span class="p">;</span>
  <span class="n">event</span>   <span class="n">OnNewScript</span>                                  <span class="n">returns</span> <span class="p">(</span><span class="n">ScriptInfo</span><span class="p">)</span>                <span class="o">=</span> <span class="mi">16</span><span class="p">;</span>
  <span class="n">event</span>   <span class="n">OnThreadStarted</span>                              <span class="n">returns</span> <span class="p">(</span><span class="n">ThreadInfo</span><span class="p">)</span>                <span class="o">=</span> <span class="mi">17</span><span class="p">;</span>
  <span class="n">event</span>   <span class="n">OnThreadFinished</span>                             <span class="n">returns</span> <span class="p">(</span><span class="n">ThreadResult</span><span class="p">)</span>              <span class="o">=</span> <span class="mi">18</span><span class="p">;</span>
  <span class="n">event</span>   <span class="n">OnThreadStoppedAt</span>                            <span class="n">returns</span> <span class="p">(</span><span class="n">ThreadStopInfo</span><span class="p">)</span>            <span class="o">=</span> <span class="mi">19</span><span class="p">;</span>
  <span class="n">event</span>   <span class="n">OnHandleEvent</span>                                <span class="n">returns</span> <span class="p">(</span><span class="n">DomEvent</span><span class="p">)</span>                  <span class="o">=</span> <span class="mi">20</span><span class="p">;</span>
  <span class="n">event</span>   <span class="n">OnObjectSelected</span>                             <span class="n">returns</span> <span class="p">(</span><span class="n">ObjectSelection</span><span class="p">)</span>           <span class="o">=</span> <span class="mi">21</span><span class="p">;</span>
  <span class="n">event</span>   <span class="n">OnParseError</span>                                 <span class="n">returns</span> <span class="p">(</span><span class="n">DomParseError</span><span class="p">)</span>             <span class="o">=</span> <span class="mi">28</span><span class="p">;</span>
  <span class="n">event</span>   <span class="n">OnReadyStateChanged</span>                          <span class="n">returns</span> <span class="p">(</span><span class="n">ReadyStateInfo</span><span class="p">)</span>            <span class="o">=</span> <span class="mi">31</span><span class="p">;</span>
  <span class="n">event</span>   <span class="n">OnConsoleLog</span>                                 <span class="n">returns</span> <span class="p">(</span><span class="n">ConsoleLogInfo</span><span class="p">)</span>            <span class="o">=</span> <span class="mi">32</span><span class="p">;</span>
  <span class="n">event</span>   <span class="n">OnConsoleTime</span>                                <span class="n">returns</span> <span class="p">(</span><span class="n">ConsoleTimeInfo</span><span class="p">)</span>           <span class="o">=</span> <span class="mi">33</span><span class="p">;</span>
  <span class="n">event</span>   <span class="n">OnConsoleTimeEnd</span>                             <span class="n">returns</span> <span class="p">(</span><span class="n">ConsoleTimeEndInfo</span><span class="p">)</span>        <span class="o">=</span> <span class="mi">34</span><span class="p">;</span>
  <span class="n">event</span>   <span class="n">OnConsoleTrace</span>                               <span class="n">returns</span> <span class="p">(</span><span class="n">ConsoleTraceInfo</span><span class="p">)</span>          <span class="o">=</span> <span class="mi">35</span><span class="p">;</span>
  <span class="n">event</span>   <span class="n">OnConsoleProfile</span>                             <span class="n">returns</span> <span class="p">(</span><span class="n">ConsoleProfileInfo</span><span class="p">)</span>        <span class="o">=</span> <span class="mi">36</span><span class="p">;</span>
  <span class="n">event</span>   <span class="n">OnConsoleProfileEnd</span>                          <span class="n">returns</span> <span class="p">(</span><span class="n">ConsoleProfileEndInfo</span><span class="p">)</span>     <span class="o">=</span> <span class="mi">37</span><span class="p">;</span>
  <span class="n">event</span>   <span class="n">OnFunctionCallStarting</span>                       <span class="n">returns</span> <span class="p">(</span><span class="n">FunctionCallStartingInfo</span><span class="p">)</span>  <span class="o">=</span> <span class="mi">40</span><span class="p">;</span>
  <span class="n">event</span>   <span class="n">OnFunctionCallCompleted</span>                      <span class="n">returns</span> <span class="p">(</span><span class="n">FunctionCallCompletedInfo</span><span class="p">)</span> <span class="o">=</span> <span class="mi">41</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="commands">
<h2>Commands<a class="headerlink" href="#commands" title="Permalink to this headline">¶</a></h2>
<div class="section" id="addbreakpoint">
<span id="index-0"></span><h3><tt class="docutils literal"><span class="pre">AddBreakpoint</span></tt><a class="headerlink" href="#addbreakpoint" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command AddBreakpoint(Breakpoint) returns (Default) = 6;</pre>
</div>
<p>argument:</p>
<div class="highlight-c" id="index-1"><div class="highlight"><pre><span class="n">message</span> <span class="n">Breakpoint</span>
<span class="p">{</span>
  <span class="cm">/**</span>
<span class="cm">   * A nonzero ID chosen by the client.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">breakpointID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * ID of script where the breakpoint should be set.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">scriptID</span>     <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Line number to break on in script.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">lineNumber</span>   <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="addeventbreakpoint">
<span id="index-2"></span><h3><tt class="docutils literal"><span class="pre">AddEventBreakpoint</span></tt><a class="headerlink" href="#addeventbreakpoint" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command AddEventBreakpoint(EventBreakpoint) returns (Default) = 38;</pre>
</div>
<p>argument:</p>
<div class="highlight-c" id="index-3"><div class="highlight"><pre><span class="n">message</span> <span class="n">EventBreakpoint</span>
<span class="p">{</span>
  <span class="cm">/**</span>
<span class="cm">   * A nonzero ID chosen by the client.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">breakpointID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The name of the event to break on.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">eventType</span>    <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * If specified the event will only break in this specific window.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">uint32</span> <span class="n">windowID</span>     <span class="o">=</span> <span class="mi">3</span> <span class="p">[</span><span class="k">default</span> <span class="o">=</span> <span class="mi">0</span><span class="p">];</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="addeventhandler">
<span id="index-4"></span><h3><tt class="docutils literal"><span class="pre">AddEventHandler</span></tt><a class="headerlink" href="#addeventhandler" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command AddEventHandler(EventHandler) returns (Default) = 8;</pre>
</div>
<p>Add an event handler. This will generate a OnHandleEvent event every time the XML event defined
by the pair (<cite>namespace</cite>, <cite>eventType</cite>) reaches the object defined by <cite>objectID</cite> in the capturing
phase. XML events are defined in <a class="reference external" href="http://www.w3.org/TR/xml-events">http://www.w3.org/TR/xml-events</a></p>
<p>argument:</p>
<div class="highlight-c" id="index-5"><div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * Add an event handler. This will generate a HANDLE-EVENT event every time the XML event defined by the pair (NAMESPACE, EVENT-TYPE) reaches the object defined by OBJECT-ID in the capturing phase. XML events are defined in http://www.w3.org/TR/xml-events</span>
<span class="cm"> */</span>
<span class="n">message</span> <span class="n">EventHandler</span>
<span class="p">{</span>
  <span class="cm">/**</span>
<span class="cm">   * A nonzero ID chosen by the client. The host may also use this ID to refer to the</span>
<span class="cm">   * event handler.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">handlerID</span>             <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span>              <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Namespace of the event. If empty, it will match any namespace.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">namespace</span>             <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">eventType</span>             <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * If `true` it prevents the default event handler from running.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">bool</span>   <span class="n">preventDefaultHandler</span> <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * If `true` it stops propagation of the event beyond this `objectID` (it will however run for all handlers on the object).</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">bool</span>   <span class="n">stopPropagation</span>       <span class="o">=</span> <span class="mi">6</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="break">
<span id="index-6"></span><h3><tt class="docutils literal"><span class="pre">Break</span></tt><a class="headerlink" href="#break" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command Break(BreakSelection) returns (Default) = 12;</pre>
</div>
<p>argument:</p>
<div class="highlight-c" id="index-7"><div class="highlight"><pre><span class="n">message</span> <span class="n">BreakSelection</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">threadID</span>  <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="continuethread">
<span id="index-8"></span><h3><tt class="docutils literal"><span class="pre">ContinueThread</span></tt><a class="headerlink" href="#continuethread" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command ContinueThread(ThreadMode) returns (Default) = 2;</pre>
</div>
<p>argument:</p>
<div class="highlight-c" id="index-9"><div class="highlight"><pre><span class="n">message</span> <span class="n">ThreadMode</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">threadID</span>  <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * One of:</span>
<span class="cm">   * - `&quot;run&quot;`</span>
<span class="cm">   * - `&quot;step-into-call&quot;`</span>
<span class="cm">   * - `&quot;step-next-line&quot;`</span>
<span class="cm">   * - `&quot;step-out-of-call&quot;`</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">mode</span>      <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="cssgetallstylesheets">
<span id="index-10"></span><h3><tt class="docutils literal"><span class="pre">CssGetAllStylesheets</span></tt><a class="headerlink" href="#cssgetallstylesheets" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command CssGetAllStylesheets(RuntimeID) returns (CssStylesheetList) = 23;</pre>
</div>
<p>argument:</p>
<div class="highlight-c" id="index-11"><div class="highlight"><pre><span class="n">message</span> <span class="n">RuntimeID</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>returns:</p>
<div class="highlight-c" id="index-12"><div class="highlight"><pre><span class="n">message</span> <span class="n">CssStylesheetList</span>
<span class="p">{</span>
  <span class="n">message</span> <span class="n">Stylesheet</span>
  <span class="p">{</span>
    <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span>           <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
    <span class="n">required</span> <span class="n">bool</span>   <span class="n">isDisabled</span>         <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
    <span class="n">required</span> <span class="n">string</span> <span class="n">href</span>               <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
    <span class="n">required</span> <span class="n">string</span> <span class="n">title</span>              <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
    <span class="n">required</span> <span class="n">string</span> <span class="n">type</span>               <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
    <span class="n">repeated</span> <span class="n">string</span> <span class="n">mediaList</span>          <span class="o">=</span> <span class="mi">6</span><span class="p">;</span>
    <span class="n">optional</span> <span class="n">uint32</span> <span class="n">ownerNodeID</span>        <span class="o">=</span> <span class="mi">7</span><span class="p">;</span>
    <span class="n">optional</span> <span class="n">uint32</span> <span class="n">ownerRuleID</span>        <span class="o">=</span> <span class="mi">8</span><span class="p">;</span>
    <span class="n">optional</span> <span class="n">uint32</span> <span class="n">parentStylesheetID</span> <span class="o">=</span> <span class="mi">9</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="n">repeated</span> <span class="n">Stylesheet</span> <span class="n">stylesheetList</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="cssgetindexmap">
<span id="index-13"></span><h3><tt class="docutils literal"><span class="pre">CssGetIndexMap</span></tt><a class="headerlink" href="#cssgetindexmap" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command CssGetIndexMap(Default) returns (CssIndexMap) = 22;</pre>
</div>
<p>returns:</p>
<div class="highlight-c" id="index-14"><div class="highlight"><pre><span class="n">message</span> <span class="n">CssIndexMap</span>
<span class="p">{</span>
  <span class="n">repeated</span> <span class="n">string</span> <span class="n">nameList</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="cssgetstyledeclarations">
<span id="index-15"></span><h3><tt class="docutils literal"><span class="pre">CssGetStyleDeclarations</span></tt><a class="headerlink" href="#cssgetstyledeclarations" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command CssGetStyleDeclarations(CssElementSelection) returns (CssStyleDeclarations) = 25;</pre>
</div>
<p>argument:</p>
<div class="highlight-c" id="index-16"><div class="highlight"><pre><span class="n">message</span> <span class="n">CssElementSelection</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span>         <span class="n">runtimeID</span>          <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span>         <span class="n">objectID</span>           <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Set this field to match rules with the specified pseudo selectors, even</span>
<span class="cm">   * if that rule is not currently applied.</span>
<span class="cm">   *</span>
<span class="cm">   * The rule will match if either of the specified pseudo classes or pseudo</span>
<span class="cm">   * elements are used in the selector. Order does not matter.</span>
<span class="cm">   *</span>
<span class="cm">   * This is handy for inspecting and modifying style rules for non-current</span>
<span class="cm">   * element states.</span>
<span class="cm">   *</span>
<span class="cm">   * LINK and VISISTED are not supported for elements that are not links.</span>
<span class="cm">   *</span>
<span class="cm">   * Using this field will not alter the state of the element. Selecting</span>
<span class="cm">   * HOVER, for instance, when an element is currently not hovered will</span>
<span class="cm">   * therefore not *apply* the HOVER style rules.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.5</span>
<span class="cm">   */</span>
  <span class="n">repeated</span> <span class="n">PseudoSelector</span> <span class="n">pseudoSelectorList</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>returns:</p>
<div class="highlight-c" id="index-17"><div class="highlight"><pre><span class="n">message</span> <span class="n">CssStyleDeclarations</span>
<span class="p">{</span>
  <span class="n">message</span> <span class="n">NodeStyle</span>
  <span class="p">{</span>
    <span class="cm">/**</span>
<span class="cm">     * Common to all origins:</span>
<span class="cm">     * - indexList</span>
<span class="cm">     * - valueList</span>
<span class="cm">     * - priorityList</span>
<span class="cm">     * - statusList</span>
<span class="cm">     *</span>
<span class="cm">     * Common to AUTHOR and LOCAL</span>
<span class="cm">     * - selector</span>
<span class="cm">     * - specificity</span>
<span class="cm">     *</span>
<span class="cm">     * For AUTHOR</span>
<span class="cm">     * - stylesheetID</span>
<span class="cm">     * - ruleID</span>
<span class="cm">     * - ruleType</span>
<span class="cm">     *</span>
<span class="cm">     * For SVG</span>
<span class="cm">     * - specificity</span>
<span class="cm">     */</span>
    <span class="n">message</span> <span class="n">StyleDeclaration</span>
    <span class="p">{</span>
      <span class="n">required</span> <span class="n">RuleOrigin</span>        <span class="n">origin</span>       <span class="o">=</span>  <span class="mi">1</span><span class="p">;</span>
      <span class="n">repeated</span> <span class="n">uint32</span>            <span class="n">indexList</span>    <span class="o">=</span>  <span class="mi">2</span><span class="p">;</span>
      <span class="n">repeated</span> <span class="n">string</span>            <span class="n">valueList</span>    <span class="o">=</span>  <span class="mi">3</span><span class="p">;</span>
      <span class="n">repeated</span> <span class="n">bool</span>              <span class="n">priorityList</span> <span class="o">=</span>  <span class="mi">4</span><span class="p">;</span>
      <span class="n">repeated</span> <span class="n">DeclarationStatus</span> <span class="n">statusList</span>   <span class="o">=</span>  <span class="mi">5</span><span class="p">;</span>
      <span class="n">optional</span> <span class="n">string</span>            <span class="n">selector</span>     <span class="o">=</span>  <span class="mi">6</span><span class="p">;</span>
      <span class="n">optional</span> <span class="n">uint32</span>            <span class="n">specificity</span>  <span class="o">=</span>  <span class="mi">7</span><span class="p">;</span>
      <span class="n">optional</span> <span class="n">uint32</span>            <span class="n">stylesheetID</span> <span class="o">=</span>  <span class="mi">8</span><span class="p">;</span>
      <span class="n">optional</span> <span class="n">uint32</span>            <span class="n">ruleID</span>       <span class="o">=</span>  <span class="mi">9</span><span class="p">;</span>
      <span class="n">optional</span> <span class="n">uint32</span>            <span class="n">ruleType</span>     <span class="o">=</span> <span class="mi">10</span><span class="p">;</span>
      <span class="cm">/**</span>
<span class="cm">       * The original, stylesheet relative line number of this rule. The</span>
<span class="cm">       * line number refers to the start of the declaration block.</span>
<span class="cm">       *</span>
<span class="cm">       * This field *may* be set for STYLE rules, but as the information</span>
<span class="cm">       * depends on an optional feature in Opera, some builds intended for</span>
<span class="cm">       * low-memory devices may not support this.</span>
<span class="cm">       *</span>
<span class="cm">       * @since 6.6</span>
<span class="cm">       */</span>
      <span class="n">optional</span> <span class="n">uint32</span>            <span class="n">lineNumber</span>   <span class="o">=</span> <span class="mi">11</span><span class="p">;</span>
    <span class="p">}</span>

    <span class="n">required</span> <span class="n">uint32</span>           <span class="n">objectID</span>    <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
    <span class="n">required</span> <span class="n">string</span>           <span class="n">elementName</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
    <span class="n">repeated</span> <span class="n">StyleDeclaration</span> <span class="n">styleList</span>   <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="n">repeated</span> <span class="n">string</span>    <span class="n">computedStyleList</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">repeated</span> <span class="n">NodeStyle</span> <span class="n">nodeStyleList</span>     <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="cssgetstylesheet">
<span id="index-18"></span><h3><tt class="docutils literal"><span class="pre">CssGetStylesheet</span></tt><a class="headerlink" href="#cssgetstylesheet" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command CssGetStylesheet(CssStylesheetSelection) returns (CssStylesheetRules) = 24;</pre>
</div>
<p>argument:</p>
<div class="highlight-c" id="index-19"><div class="highlight"><pre><span class="n">message</span> <span class="n">CssStylesheetSelection</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span>    <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">stylesheetID</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>returns:</p>
<div class="highlight-c" id="index-20"><div class="highlight"><pre><span class="n">message</span> <span class="n">CssStylesheetRules</span>
<span class="p">{</span>
  <span class="cm">/**</span>
<span class="cm">   * Common to FONT_FACE, PAGE and STYLE is:</span>
<span class="cm">   * - indexList</span>
<span class="cm">   * - valueList</span>
<span class="cm">   * - priorityList</span>
<span class="cm">   *</span>
<span class="cm">   * Common to STYLE and PAGE is:</span>
<span class="cm">   * - selectorList</span>
<span class="cm">   * - specificityList</span>
<span class="cm">   *</span>
<span class="cm">   * Common to MEDIA and IMPORT</span>
<span class="cm">   * - mediaList</span>
<span class="cm">   *</span>
<span class="cm">   * For MEDIA</span>
<span class="cm">   * - ruleList</span>
<span class="cm">   *</span>
<span class="cm">   * For IMPORT</span>
<span class="cm">   * - href</span>
<span class="cm">   * - importStylesheetID</span>
<span class="cm">   *</span>
<span class="cm">   * For PAGE</span>
<span class="cm">   * - pseudoClass</span>
<span class="cm">   *</span>
<span class="cm">   * For CHARSET</span>
<span class="cm">   * - charset</span>
<span class="cm">   */</span>
  <span class="n">message</span> <span class="n">StylesheetRule</span>
  <span class="p">{</span>
    <span class="cm">/**</span>
<span class="cm">     * Type values:</span>
<span class="cm">     * 0 - UNKNOWN</span>
<span class="cm">     * 1 - STYLE</span>
<span class="cm">     * 2 - CHARSET</span>
<span class="cm">     * 3 - IMPORT</span>
<span class="cm">     * 4 - MEDIA</span>
<span class="cm">     * 5 - FONT_FACE</span>
<span class="cm">     * 6 - PAGE</span>
<span class="cm">     * 7 - NAMESPACE // Not supported</span>
<span class="cm">     */</span>
    <span class="n">required</span> <span class="n">uint32</span>                            <span class="n">type</span>               <span class="o">=</span>  <span class="mi">1</span><span class="p">;</span>
    <span class="n">required</span> <span class="n">uint32</span>                            <span class="n">stylesheetID</span>       <span class="o">=</span>  <span class="mi">2</span><span class="p">;</span>
    <span class="n">required</span> <span class="n">uint32</span>                            <span class="n">ruleID</span>             <span class="o">=</span>  <span class="mi">3</span><span class="p">;</span>
    <span class="n">repeated</span> <span class="n">uint32</span>                            <span class="n">indexList</span>          <span class="o">=</span>  <span class="mi">4</span><span class="p">;</span>
    <span class="n">repeated</span> <span class="n">string</span>                            <span class="n">valueList</span>          <span class="o">=</span>  <span class="mi">5</span><span class="p">;</span>
    <span class="n">repeated</span> <span class="n">bool</span>                              <span class="n">priorityList</span>       <span class="o">=</span>  <span class="mi">6</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * 0..1 for PAGE and 0..* for STYLE</span>
<span class="cm">     */</span>
    <span class="n">repeated</span> <span class="n">string</span>                            <span class="n">selectorList</span>       <span class="o">=</span>  <span class="mi">7</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * 1..1 for PAGE and 0..* for STYLE</span>
<span class="cm">     */</span>
    <span class="n">repeated</span> <span class="n">uint32</span>                            <span class="n">specificityList</span>    <span class="o">=</span>  <span class="mi">8</span><span class="p">;</span>
    <span class="n">repeated</span> <span class="n">string</span>                            <span class="n">mediaList</span>          <span class="o">=</span>  <span class="mi">9</span><span class="p">;</span>
    <span class="n">repeated</span> <span class="n">CssStylesheetRules</span><span class="p">.</span><span class="n">StylesheetRule</span> <span class="n">ruleList</span>           <span class="o">=</span> <span class="mi">10</span><span class="p">;</span>
    <span class="n">optional</span> <span class="n">string</span>                            <span class="n">href</span>               <span class="o">=</span> <span class="mi">11</span><span class="p">;</span>
    <span class="n">optional</span> <span class="n">uint32</span>                            <span class="n">importStylesheetID</span> <span class="o">=</span> <span class="mi">12</span><span class="p">;</span>
    <span class="n">optional</span> <span class="n">uint32</span>                            <span class="n">pseudoClass</span>        <span class="o">=</span> <span class="mi">13</span><span class="p">;</span>
    <span class="n">optional</span> <span class="n">string</span>                            <span class="n">charset</span>            <span class="o">=</span> <span class="mi">14</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * The original, stylesheet relative line number of this rule. The</span>
<span class="cm">     * line number refers to the start of the declaration block.</span>
<span class="cm">     *</span>
<span class="cm">     * This field *may* be set for STYLE rules, but as the information</span>
<span class="cm">     * depends on an optional feature in Opera, some builds intended for</span>
<span class="cm">     * low-memory devices may not support this.</span>
<span class="cm">     *</span>
<span class="cm">     * @since 6.6</span>
<span class="cm">     */</span>
    <span class="n">optional</span> <span class="n">uint32</span>                            <span class="n">lineNumber</span>         <span class="o">=</span> <span class="mi">15</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="n">repeated</span> <span class="n">StylesheetRule</span> <span class="n">ruleList</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="eval">
<span id="index-21"></span><h3><tt class="docutils literal"><span class="pre">Eval</span></tt><a class="headerlink" href="#eval" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command Eval(EvalData) returns (EvalResult) = 3;</pre>
</div>
<p>argument:</p>
<div class="highlight-c" id="index-22"><div class="highlight"><pre><span class="n">message</span> <span class="n">EvalData</span>
<span class="p">{</span>
  <span class="n">message</span> <span class="n">Variable</span>
  <span class="p">{</span>
    <span class="n">required</span> <span class="n">string</span> <span class="n">name</span>     <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
    <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="n">required</span> <span class="n">uint32</span>   <span class="n">runtimeID</span>     <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The ID of the thread to use for executing the script data, or 0</span>
<span class="cm">   * to use the global scope.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span>   <span class="n">threadID</span>      <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span>   <span class="n">frameIndex</span>    <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Represents a script to be executed.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span>   <span class="n">scriptData</span>    <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Represent variables to set.</span>
<span class="cm">   */</span>
  <span class="n">repeated</span> <span class="n">Variable</span> <span class="n">variableList</span>  <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Enable debugging of current script eval. Defaults to false.</span>
<span class="cm">   * @since 6.3</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">bool</span>     <span class="n">wantDebugging</span> <span class="o">=</span> <span class="mi">6</span> <span class="p">[</span><span class="k">default</span> <span class="o">=</span> <span class="nb">false</span><span class="p">];</span>
<span class="p">}</span>
</pre></div>
</div>
<p>returns:</p>
<div class="highlight-c" id="index-23"><div class="highlight"><pre><span class="n">message</span> <span class="n">EvalResult</span>
<span class="p">{</span>
  <span class="cm">/**</span>
<span class="cm">   * If it is &quot;completed&quot; or &quot;unhandled-exception&quot; then `type`, `value` and `objectValue` will be present.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span>      <span class="n">status</span>      <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * One of:</span>
<span class="cm">   * - `&quot;number&quot;`</span>
<span class="cm">   * - `&quot;boolean&quot;`</span>
<span class="cm">   * - `&quot;string&quot;`</span>
<span class="cm">   * - `&quot;null&quot;`</span>
<span class="cm">   * - `&quot;undefined&quot;`</span>
<span class="cm">   * - `&quot;object&quot;`</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span>      <span class="n">type</span>        <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Only present when `type` is `&quot;number&quot;`, `&quot;string&quot;` or `&quot;boolean&quot;`</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span>      <span class="n">value</span>       <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Only present when `type` is `&quot;object&quot;`</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">ObjectValue</span> <span class="n">objectValue</span> <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>references:</p>
<div class="highlight-c" id="index-24"><div class="highlight"><pre><span class="n">message</span> <span class="n">ObjectValue</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span>     <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">bool</span>   <span class="n">isCallable</span>   <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * type, function or object</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">type</span>         <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="n">optional</span> <span class="n">uint32</span> <span class="n">prototypeID</span>  <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The class of the object.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">className</span>    <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * If the object is a function, this is the name of</span>
<span class="cm">   * the variable associated with that function (if any).</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">functionName</span> <span class="o">=</span> <span class="mi">6</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="examineobjects">
<span id="index-25"></span><h3><tt class="docutils literal"><span class="pre">ExamineObjects</span></tt><a class="headerlink" href="#examineobjects" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command ExamineObjects(ExamineList) returns (ObjectChainList) = 4;</pre>
</div>
<p>argument:</p>
<div class="highlight-c" id="index-26"><div class="highlight"><pre><span class="n">message</span> <span class="n">ExamineList</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span>          <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">repeated</span> <span class="n">uint32</span> <span class="n">objectList</span>         <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="n">optional</span> <span class="n">bool</span>   <span class="n">examinePrototypes</span>  <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="n">optional</span> <span class="n">bool</span>   <span class="n">skipNonenumerables</span> <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="n">optional</span> <span class="n">bool</span>   <span class="n">filterProperties</span>   <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>returns:</p>
<div class="highlight-c" id="index-27"><div class="highlight"><pre><span class="n">message</span> <span class="n">ObjectChainList</span>
<span class="p">{</span>
  <span class="n">repeated</span> <span class="n">ObjectList</span> <span class="n">objectChainList</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>references:</p>
<div class="highlight-c" id="index-28"><div class="highlight"><pre><span class="n">message</span> <span class="n">ObjectValue</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span>     <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">bool</span>   <span class="n">isCallable</span>   <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * type, function or object</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">type</span>         <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="n">optional</span> <span class="n">uint32</span> <span class="n">prototypeID</span>  <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The class of the object.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">className</span>    <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * If the object is a function, this is the name of</span>
<span class="cm">   * the variable associated with that function (if any).</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">functionName</span> <span class="o">=</span> <span class="mi">6</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<div class="highlight-c" id="index-29"><div class="highlight"><pre><span class="n">message</span> <span class="n">ObjectInfo</span>
<span class="p">{</span>
  <span class="cm">/**</span>
<span class="cm">   * If `type` is ... then ... is present:</span>
<span class="cm">   *   &quot;object&quot;, `objectValue`</span>
<span class="cm">   *   &quot;number&quot;, `value`</span>
<span class="cm">   *   &quot;string&quot;, `value`</span>
<span class="cm">   *   &quot;boolean&quot;, `value` (`&quot;true&quot;` or `&quot;false&quot;`)</span>
<span class="cm">   * Otherwise (`&quot;undefined&quot;` or `&quot;null&quot;`), only `type` is present.</span>
<span class="cm">   */</span>
  <span class="n">message</span> <span class="n">Property</span>
  <span class="p">{</span>
    <span class="n">required</span> <span class="n">string</span>      <span class="n">name</span>        <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * One of:</span>
<span class="cm">     * - `&quot;number&quot;`</span>
<span class="cm">     * - `&quot;boolean&quot;`</span>
<span class="cm">     * - `&quot;string&quot;`</span>
<span class="cm">     * - `&quot;null&quot;`</span>
<span class="cm">     * - `&quot;undefined&quot;`</span>
<span class="cm">     * - `&quot;object&quot;`</span>
<span class="cm">     */</span>
    <span class="n">required</span> <span class="n">string</span>      <span class="n">type</span>        <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * Only present for `&quot;number&quot;`, `&quot;string&quot;` or `&quot;boolean&quot;`</span>
<span class="cm">     */</span>
    <span class="n">optional</span> <span class="n">string</span>      <span class="n">value</span>       <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * Only present for `&quot;object&quot;`</span>
<span class="cm">     */</span>
    <span class="n">optional</span> <span class="n">ObjectValue</span> <span class="n">objectValue</span> <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="n">required</span> <span class="n">ObjectValue</span> <span class="n">value</span>        <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">repeated</span> <span class="n">Property</span>    <span class="n">propertyList</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<div class="highlight-c" id="index-30"><div class="highlight"><pre><span class="n">message</span> <span class="n">ObjectList</span>
<span class="p">{</span>
  <span class="n">repeated</span> <span class="n">ObjectInfo</span> <span class="n">objectList</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="getbacktrace">
<span id="index-31"></span><h3><tt class="docutils literal"><span class="pre">GetBacktrace</span></tt><a class="headerlink" href="#getbacktrace" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command GetBacktrace(BacktraceSelection) returns (BacktraceFrameList) = 11;</pre>
</div>
<p>argument:</p>
<div class="highlight-c" id="index-32"><div class="highlight"><pre><span class="n">message</span> <span class="n">BacktraceSelection</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">threadID</span>  <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * If omitted (or 0) all frames are returned.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">uint32</span> <span class="n">maxFrames</span> <span class="o">=</span> <span class="mi">3</span> <span class="p">[</span><span class="k">default</span> <span class="o">=</span> <span class="mi">0</span><span class="p">];</span>
<span class="p">}</span>
</pre></div>
</div>
<p>returns:</p>
<div class="highlight-c" id="index-33"><div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * Frames are in innermost-first order.</span>
<span class="cm"> */</span>
<span class="n">message</span> <span class="n">BacktraceFrameList</span>
<span class="p">{</span>
  <span class="n">repeated</span> <span class="n">BacktraceFrame</span> <span class="n">frameList</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>references:</p>
<div class="highlight-c" id="index-34"><div class="highlight"><pre><span class="n">message</span> <span class="n">ObjectValue</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span>     <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">bool</span>   <span class="n">isCallable</span>   <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * type, function or object</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">type</span>         <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="n">optional</span> <span class="n">uint32</span> <span class="n">prototypeID</span>  <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The class of the object.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">className</span>    <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * If the object is a function, this is the name of</span>
<span class="cm">   * the variable associated with that function (if any).</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">functionName</span> <span class="o">=</span> <span class="mi">6</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<div class="highlight-c" id="index-35"><div class="highlight"><pre><span class="n">message</span> <span class="n">BacktraceFrame</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span>      <span class="n">functionID</span>     <span class="o">=</span>  <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span>      <span class="n">argumentObject</span> <span class="o">=</span>  <span class="mi">2</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span>      <span class="n">variableObject</span> <span class="o">=</span>  <span class="mi">3</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span>      <span class="n">thisObject</span>     <span class="o">=</span>  <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * TODO: Spec says repeated, while the code only assumes one (optional)</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">ObjectValue</span> <span class="n">objectValue</span>    <span class="o">=</span>  <span class="mi">5</span><span class="p">;</span>
  <span class="n">optional</span> <span class="n">uint32</span>      <span class="n">scriptID</span>       <span class="o">=</span>  <span class="mi">6</span><span class="p">;</span>
  <span class="n">optional</span> <span class="n">uint32</span>      <span class="n">lineNumber</span>     <span class="o">=</span>  <span class="mi">7</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The variable objects in the scope chain of the function. The first</span>
<span class="cm">   * element in the list is the innermost scope (the scope of the function</span>
<span class="cm">   * itself). The list includes the global scope.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.1</span>
<span class="cm">   */</span>
  <span class="n">repeated</span> <span class="n">uint32</span>      <span class="n">scopeList</span>      <span class="o">=</span>  <span class="mi">8</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The full value of the &#39;arguments&#39; object.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.2</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">ObjectValue</span> <span class="n">argumentValue</span>  <span class="o">=</span>  <span class="mi">9</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The full value of the &#39;this&#39; object.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.2</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">ObjectValue</span> <span class="n">thisValue</span>      <span class="o">=</span> <span class="mi">10</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="getselectedobject">
<span id="index-36"></span><h3><tt class="docutils literal"><span class="pre">GetSelectedObject</span></tt><a class="headerlink" href="#getselectedobject" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command GetSelectedObject(Default) returns (ObjectSelection) = 26;</pre>
</div>
<p>returns:</p>
<div class="highlight-c" id="index-37"><div class="highlight"><pre><span class="n">message</span> <span class="n">ObjectSelection</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span>  <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">windowID</span>  <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="n">optional</span> <span class="n">uint32</span> <span class="n">runtimeID</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="inspectdom">
<span id="index-38"></span><h3><tt class="docutils literal"><span class="pre">InspectDom</span></tt><a class="headerlink" href="#inspectdom" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command InspectDom(DomTraversal) returns (NodeList) = 13;</pre>
</div>
<p>argument:</p>
<div class="highlight-c" id="index-39"><div class="highlight"><pre><span class="n">message</span> <span class="n">DomTraversal</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span>  <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * traversal on off:</span>
<span class="cm">   * - `&quot;parent-node-chain-with-children&quot;`</span>
<span class="cm">   *     take the parent node chain for the target node.</span>
<span class="cm">   *     add for each node in that chain all children,</span>
<span class="cm">   *     and for all children there first child,</span>
<span class="cm">   *     if that is a text node and the only node,</span>
<span class="cm">   *     starting with the document node.</span>
<span class="cm">   * - `&quot;children&quot;`</span>
<span class="cm">   *     get node data for all children in their flow</span>
<span class="cm">   * - `&quot;node&quot;</span>
<span class="cm">   *     get node data for that node</span>
<span class="cm">   * - `&quot;subtree&quot;`</span>
<span class="cm">   *     get node data for the subtree in the flow of it</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">traversal</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>returns:</p>
<div class="highlight-c" id="index-40"><div class="highlight"><pre><span class="n">message</span> <span class="n">NodeList</span>
<span class="p">{</span>
  <span class="n">repeated</span> <span class="n">NodeInfo</span> <span class="n">nodeList</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>references:</p>
<div class="highlight-c" id="index-41"><div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * Refers to an object and its parent runtime.</span>
<span class="cm"> */</span>
<span class="n">message</span> <span class="n">ObjectReference</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span>  <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<div class="highlight-c" id="index-42"><div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * Represents a pseudo element, such as ::after, ::before, and so forth.</span>
<span class="cm"> *</span>
<span class="cm"> * @since 6.5</span>
<span class="cm"> */</span>
<span class="n">message</span> <span class="n">PseudoElement</span>
<span class="p">{</span>
  <span class="k">enum</span> <span class="n">Type</span>
  <span class="p">{</span>
    <span class="n">BEFORE</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
    <span class="n">AFTER</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
    <span class="n">FIRST_LETTER</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
    <span class="n">FIRST_LINE</span> <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="n">required</span> <span class="n">Type</span>   <span class="n">type</span>    <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * If a ::before or ::after rule uses the &#39;content&#39; property to insert</span>
<span class="cm">   * text content, this field will contain that content.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">content</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<div class="highlight-c" id="index-43"><div class="highlight"><pre><span class="n">message</span> <span class="n">NodeInfo</span>
<span class="p">{</span>
  <span class="n">message</span> <span class="n">Attribute</span>
  <span class="p">{</span>
    <span class="n">required</span> <span class="n">string</span> <span class="n">namePrefix</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
    <span class="n">required</span> <span class="n">string</span> <span class="n">name</span>       <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
    <span class="n">required</span> <span class="n">string</span> <span class="n">value</span>      <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="cm">/**</span>
<span class="cm">   * Values in this enum explain why the node was included in the response.</span>
<span class="cm">   */</span>
  <span class="k">enum</span> <span class="n">MatchReason</span>
  <span class="p">{</span>
    <span class="cm">/**</span>
<span class="cm">     * The node was included because we explicitly traversed the DOM</span>
<span class="cm">     * (sub-)tree.</span>
<span class="cm">     */</span>
    <span class="n">TRAVERSAL</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * The node was included because it is an ancestor of a node hit by a</span>
<span class="cm">     * search.</span>
<span class="cm">     */</span>
    <span class="n">SEARCH_ANCESTOR</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * The node was included because it was directly hit by a search.</span>
<span class="cm">     */</span>
    <span class="n">SEARCH_HIT</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="n">required</span> <span class="n">uint32</span>          <span class="n">objectID</span>          <span class="o">=</span>  <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Values:</span>
<span class="cm">   *</span>
<span class="cm">   * 1 - ELEMENT</span>
<span class="cm">   * 2 - ATTRIBUTE</span>
<span class="cm">   * 3 - TEXT</span>
<span class="cm">   * 4 - CDATA_SECTION</span>
<span class="cm">   * 5 - ENTITY_REFERENCE</span>
<span class="cm">   * 6 - ENTITY</span>
<span class="cm">   * 7 - PROCESSING_INSTRUCTION</span>
<span class="cm">   * 8 - COMMENT</span>
<span class="cm">   * 9 - DOCUMENT</span>
<span class="cm">   * 10 - DOCUMENT_TYPE</span>
<span class="cm">   * 11 - DOCUMENT_FRAGMENT</span>
<span class="cm">   * 12 - NOTATION</span>
<span class="cm">   * 13 - XPATH_NAMESPACE</span>
<span class="cm">   * 14 - SVG_ELEMENTINSTANCE</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span>          <span class="n">type</span>              <span class="o">=</span>  <span class="mi">2</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">string</span>          <span class="n">name</span>              <span class="o">=</span>  <span class="mi">3</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span>          <span class="n">depth</span>             <span class="o">=</span>  <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Used if type is 1.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span>          <span class="n">namespacePrefix</span>   <span class="o">=</span>  <span class="mi">5</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Used if type is 1.</span>
<span class="cm">   */</span>
  <span class="n">repeated</span> <span class="n">Attribute</span>       <span class="n">attributeList</span>     <span class="o">=</span>  <span class="mi">6</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Used if type is 1.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">uint32</span>          <span class="n">childrenLength</span>    <span class="o">=</span>  <span class="mi">7</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Used if type is 3, 4, 7 or 8.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span>          <span class="n">value</span>             <span class="o">=</span>  <span class="mi">8</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Used if type is 10.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span>          <span class="n">publicID</span>          <span class="o">=</span>  <span class="mi">9</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Used if type is 10.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span>          <span class="n">systemID</span>          <span class="o">=</span> <span class="mi">10</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The runtime ID of this node. This field will always be set.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.5</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">uint32</span>          <span class="n">runtimeID</span>         <span class="o">=</span> <span class="mi">11</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * If the node type is an ELEMENT (1) which contains another document,</span>
<span class="cm">   * (frame, iframe, or object), this field will be set with a reference to</span>
<span class="cm">   * the document node contained within that element.</span>
<span class="cm">   *</span>
<span class="cm">   * The field will not be set if the element does not contain a document.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.5</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">ObjectReference</span> <span class="n">contentDocument</span>   <span class="o">=</span> <span class="mi">12</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Like &#39;contentDocument&#39;, but the other direction; if this node is</span>
<span class="cm">   * a DOCUMENT (9) node, then this field will be set with a reference to the</span>
<span class="cm">   * element that contains the document in the parent runtime.</span>
<span class="cm">   *</span>
<span class="cm">   * The field will not be set if the document node represents a top-level</span>
<span class="cm">   * document.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.5</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">ObjectReference</span> <span class="n">frameElement</span>      <span class="o">=</span> <span class="mi">13</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Explains why the node was included in the response. This field will</span>
<span class="cm">   * always be set.</span>
<span class="cm">   *</span>
<span class="cm">   * When this message is a response to DOM inspection, this field will be set</span>
<span class="cm">   * to TRAVERSAL. When sent as a response to a search, it will either be set</span>
<span class="cm">   * to SEARCH_HIT, or SEARCH_PARENT.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.5</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">MatchReason</span>     <span class="n">matchReason</span>       <span class="o">=</span> <span class="mi">14</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * If the node has pseudo elements applied, this list will contain those</span>
<span class="cm">   * elements.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.5</span>
<span class="cm">   */</span>
  <span class="n">repeated</span> <span class="n">PseudoElement</span>   <span class="n">pseudoElementList</span> <span class="o">=</span> <span class="mi">15</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="listruntimes">
<span id="index-44"></span><h3><tt class="docutils literal"><span class="pre">ListRuntimes</span></tt><a class="headerlink" href="#listruntimes" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command ListRuntimes(RuntimeSelection) returns (RuntimeList) = 1;</pre>
</div>
<p>argument:</p>
<div class="highlight-c" id="index-45"><div class="highlight"><pre><span class="n">message</span> <span class="n">RuntimeSelection</span>
<span class="p">{</span>
  <span class="cm">/**</span>
<span class="cm">   * List the ones you want to see, or none if you want all (also set `allRuntimes`).</span>
<span class="cm">   */</span>
  <span class="n">repeated</span> <span class="n">uint32</span> <span class="n">runtimeList</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Create runtimes for all documents. Runtimes are normally not created for documents</span>
<span class="cm">   * without ECMAScript.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">bool</span>   <span class="n">allRuntimes</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>returns:</p>
<div class="highlight-c" id="index-46"><div class="highlight"><pre><span class="n">message</span> <span class="n">RuntimeList</span>
<span class="p">{</span>
  <span class="n">repeated</span> <span class="n">RuntimeInfo</span> <span class="n">runtimeList</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>references:</p>
<div class="highlight-c" id="index-47"><div class="highlight"><pre><span class="n">message</span> <span class="n">RuntimeInfo</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span>     <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">htmlFramePath</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The ID of the window this runtime is associated with, if the runtime is</span>
<span class="cm">   * associated with a single window. If the runtime is associated with more</span>
<span class="cm">   * (or less) than one window, the field will be set to zero. Refer to the</span>
<span class="cm">   * ``windowIDList`` field for more information.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">windowID</span>      <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * the &#39;global&#39; object</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span>      <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * the document&#39;s URI</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">uri</span>           <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * A short description of the nature of the runtime, for instance</span>
<span class="cm">   * &quot;document&quot;, or &quot;webworker&quot;.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.2</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">description</span>   <span class="o">=</span> <span class="mi">6</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * A list of all windows this runtime is associated with. Normally, this</span>
<span class="cm">   * will only contain one window, but some runtimes, for instance shared</span>
<span class="cm">   * WebWorkers, can be associated with multiple (zero or more) windows.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.2</span>
<span class="cm">   */</span>
  <span class="n">repeated</span> <span class="n">uint32</span> <span class="n">windowIDList</span>  <span class="o">=</span> <span class="mi">7</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="releaseobjects">
<span id="index-48"></span><h3><tt class="docutils literal"><span class="pre">ReleaseObjects</span></tt><a class="headerlink" href="#releaseobjects" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command ReleaseObjects(ReleaseObjectsArg) returns (Default) = 29;</pre>
</div>
<p>Release protected ECMAScript objects. This will just make them garbage
collectible. Released objects are not necessarily freed immediately.</p>
<p>Calling ReleaseObjects with an empty list causes all objects to be
released. Otherwise, only the specified objects will be released.
Attempting to release a non-existent object has no effect, and will
fail silently.</p>
<p>Releasing objects invalidates associated object IDs immediately.</p>
<p>argument:</p>
<div class="highlight-c" id="index-49"><div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * List of objects to release.</span>
<span class="cm"> */</span>
<span class="n">message</span> <span class="n">ReleaseObjectsArg</span>
<span class="p">{</span>
  <span class="n">repeated</span> <span class="n">uint32</span> <span class="n">objectList</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="removebreakpoint">
<span id="index-50"></span><h3><tt class="docutils literal"><span class="pre">RemoveBreakpoint</span></tt><a class="headerlink" href="#removebreakpoint" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command RemoveBreakpoint(BreakpointID) returns (Default) = 7;</pre>
</div>
<p>argument:</p>
<div class="highlight-c" id="index-51"><div class="highlight"><pre><span class="n">message</span> <span class="n">BreakpointID</span>
<span class="p">{</span>
  <span class="cm">/**</span>
<span class="cm">   * See Breakpoint.breakpointID.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">breakpointID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="removeeventhandler">
<span id="index-52"></span><h3><tt class="docutils literal"><span class="pre">RemoveEventHandler</span></tt><a class="headerlink" href="#removeeventhandler" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command RemoveEventHandler(EventHandlerID) returns (Default) = 9;</pre>
</div>
<p>argument:</p>
<div class="highlight-c" id="index-53"><div class="highlight"><pre><span class="n">message</span> <span class="n">EventHandlerID</span>
<span class="p">{</span>
  <span class="cm">/**</span>
<span class="cm">   * `handlerID` as specified in EventHandler.handlerID.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">handlerID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="searchdom">
<span id="index-54"></span><h3><tt class="docutils literal"><span class="pre">SearchDom</span></tt><a class="headerlink" href="#searchdom" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command SearchDom(SearchDomArg) returns (NodeList) = 42;</pre>
</div>
<p>Search the DOM of a document, using either plain text, regexp, xpath
or CSS selectors.</p>
<p>For plain text and regular expression searches, tag names, attribute
names, attribute values and text content is searched through. Regular
expressions searches use the same backend as the RegExp object in
ECMAScript, and therefore use the same syntax and semantics.</p>
<p>CSS selector or XPath searches work like their DOM counterparts
(document.querySelector, and document.evaluate). For more information,
see:</p>
<ul class="simple">
<li><a class="reference external" href="http://www.w3.org/TR/selectors-api/">http://www.w3.org/TR/selectors-api/</a></li>
<li><a class="reference external" href="http://www.w3.org/TR/DOM-Level-3-XPath/">http://www.w3.org/TR/DOM-Level-3-XPath/</a></li>
</ul>
<p>Whenever a matching node is found, that node is included in the command
response, and marked as a search hit. The parent chain is also included
for each hit; however, no parent is included twice (nor is any &#8216;hit&#8217;
included twice).</p>
<p>&#64;since 6.5</p>
<p>argument:</p>
<div class="highlight-c" id="index-55"><div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * Argument to SearchDom command.</span>
<span class="cm"> *</span>
<span class="cm"> * @since 6.5</span>
<span class="cm"> */</span>
<span class="n">message</span> <span class="n">SearchDomArg</span>
<span class="p">{</span>
  <span class="k">enum</span> <span class="n">Type</span>
  <span class="p">{</span>
    <span class="cm">/**</span>
<span class="cm">     * Search tag names, attribute names, attribute values, and text content</span>
<span class="cm">     * for an ocurrence of the specified string.</span>
<span class="cm">     *</span>
<span class="cm">     * The query string &quot;strong&quot;, for instance, would match all &lt;strong&gt;</span>
<span class="cm">     * nodes as well as text content and attribute values with &quot;strong&quot;</span>
<span class="cm">     * in them.</span>
<span class="cm">     */</span>
    <span class="n">PLAIN_TEXT</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * Match tag names, attribute names, attribute values, and text content</span>
<span class="cm">     * against a specified regular expression. Do not delimit the query</span>
<span class="cm">     * string Perl-style (&quot;/foo/&quot;). Provide the plain regex string only</span>
<span class="cm">     * (&quot;foo&quot;).</span>
<span class="cm">     *</span>
<span class="cm">     * The regular expression &quot;[0-9]+&quot;, for instance, would match all text</span>
<span class="cm">     * nodes and attribute values containing digits.</span>
<span class="cm">     *</span>
<span class="cm">     * Regular expression searches use the same syntax and semantics as</span>
<span class="cm">     * the RegExp object in ECMAScript.</span>
<span class="cm">     */</span>
    <span class="n">REGEXP</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * Matches nodes according to an XPath expression.</span>
<span class="cm">     *</span>
<span class="cm">     * &quot;//p&quot;, for instance, matches all &lt;p&gt; nodes.</span>
<span class="cm">     */</span>
    <span class="n">XPATH</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * Matches nodes according to a CSS selector.</span>
<span class="cm">     *</span>
<span class="cm">     * For instance, &quot;div&quot; matches all &lt;div&gt; nodes, and &quot;.box&quot; matches</span>
<span class="cm">     * all nodes with the class &quot;box&quot;.</span>
<span class="cm">     */</span>
    <span class="n">SELECTOR</span> <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="cm">/**</span>
<span class="cm">   * Search the DOM of this runtime.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span>  <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The string to search for.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">query</span>      <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="n">optional</span> <span class="n">Type</span>   <span class="n">type</span>       <span class="o">=</span> <span class="mi">3</span> <span class="p">[</span><span class="k">default</span> <span class="o">=</span> <span class="n">PLAIN_TEXT</span><span class="p">];</span>
  <span class="cm">/**</span>
<span class="cm">   * If present, search only the subtree of this node.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">uint32</span> <span class="n">objectID</span>   <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Set to TRUE to ignore case (REGEXP and PLAIN_TEXT only). If set to</span>
<span class="cm">   * FALSE, which is the default, case will be respected.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">bool</span>   <span class="n">ignoreCase</span> <span class="o">=</span> <span class="mi">5</span> <span class="p">[</span><span class="k">default</span> <span class="o">=</span> <span class="nb">false</span><span class="p">];</span>
<span class="p">}</span>
</pre></div>
</div>
<p>returns:</p>
<div class="highlight-c" id="index-56"><div class="highlight"><pre><span class="n">message</span> <span class="n">NodeList</span>
<span class="p">{</span>
  <span class="n">repeated</span> <span class="n">NodeInfo</span> <span class="n">nodeList</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>references:</p>
<div class="highlight-c" id="index-57"><div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * Refers to an object and its parent runtime.</span>
<span class="cm"> */</span>
<span class="n">message</span> <span class="n">ObjectReference</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span>  <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<div class="highlight-c" id="index-58"><div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * Represents a pseudo element, such as ::after, ::before, and so forth.</span>
<span class="cm"> *</span>
<span class="cm"> * @since 6.5</span>
<span class="cm"> */</span>
<span class="n">message</span> <span class="n">PseudoElement</span>
<span class="p">{</span>
  <span class="k">enum</span> <span class="n">Type</span>
  <span class="p">{</span>
    <span class="n">BEFORE</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
    <span class="n">AFTER</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
    <span class="n">FIRST_LETTER</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
    <span class="n">FIRST_LINE</span> <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="n">required</span> <span class="n">Type</span>   <span class="n">type</span>    <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * If a ::before or ::after rule uses the &#39;content&#39; property to insert</span>
<span class="cm">   * text content, this field will contain that content.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">content</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<div class="highlight-c" id="index-59"><div class="highlight"><pre><span class="n">message</span> <span class="n">NodeInfo</span>
<span class="p">{</span>
  <span class="n">message</span> <span class="n">Attribute</span>
  <span class="p">{</span>
    <span class="n">required</span> <span class="n">string</span> <span class="n">namePrefix</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
    <span class="n">required</span> <span class="n">string</span> <span class="n">name</span>       <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
    <span class="n">required</span> <span class="n">string</span> <span class="n">value</span>      <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="cm">/**</span>
<span class="cm">   * Values in this enum explain why the node was included in the response.</span>
<span class="cm">   */</span>
  <span class="k">enum</span> <span class="n">MatchReason</span>
  <span class="p">{</span>
    <span class="cm">/**</span>
<span class="cm">     * The node was included because we explicitly traversed the DOM</span>
<span class="cm">     * (sub-)tree.</span>
<span class="cm">     */</span>
    <span class="n">TRAVERSAL</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * The node was included because it is an ancestor of a node hit by a</span>
<span class="cm">     * search.</span>
<span class="cm">     */</span>
    <span class="n">SEARCH_ANCESTOR</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * The node was included because it was directly hit by a search.</span>
<span class="cm">     */</span>
    <span class="n">SEARCH_HIT</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="n">required</span> <span class="n">uint32</span>          <span class="n">objectID</span>          <span class="o">=</span>  <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Values:</span>
<span class="cm">   *</span>
<span class="cm">   * 1 - ELEMENT</span>
<span class="cm">   * 2 - ATTRIBUTE</span>
<span class="cm">   * 3 - TEXT</span>
<span class="cm">   * 4 - CDATA_SECTION</span>
<span class="cm">   * 5 - ENTITY_REFERENCE</span>
<span class="cm">   * 6 - ENTITY</span>
<span class="cm">   * 7 - PROCESSING_INSTRUCTION</span>
<span class="cm">   * 8 - COMMENT</span>
<span class="cm">   * 9 - DOCUMENT</span>
<span class="cm">   * 10 - DOCUMENT_TYPE</span>
<span class="cm">   * 11 - DOCUMENT_FRAGMENT</span>
<span class="cm">   * 12 - NOTATION</span>
<span class="cm">   * 13 - XPATH_NAMESPACE</span>
<span class="cm">   * 14 - SVG_ELEMENTINSTANCE</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span>          <span class="n">type</span>              <span class="o">=</span>  <span class="mi">2</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">string</span>          <span class="n">name</span>              <span class="o">=</span>  <span class="mi">3</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span>          <span class="n">depth</span>             <span class="o">=</span>  <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Used if type is 1.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span>          <span class="n">namespacePrefix</span>   <span class="o">=</span>  <span class="mi">5</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Used if type is 1.</span>
<span class="cm">   */</span>
  <span class="n">repeated</span> <span class="n">Attribute</span>       <span class="n">attributeList</span>     <span class="o">=</span>  <span class="mi">6</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Used if type is 1.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">uint32</span>          <span class="n">childrenLength</span>    <span class="o">=</span>  <span class="mi">7</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Used if type is 3, 4, 7 or 8.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span>          <span class="n">value</span>             <span class="o">=</span>  <span class="mi">8</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Used if type is 10.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span>          <span class="n">publicID</span>          <span class="o">=</span>  <span class="mi">9</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Used if type is 10.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span>          <span class="n">systemID</span>          <span class="o">=</span> <span class="mi">10</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The runtime ID of this node. This field will always be set.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.5</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">uint32</span>          <span class="n">runtimeID</span>         <span class="o">=</span> <span class="mi">11</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * If the node type is an ELEMENT (1) which contains another document,</span>
<span class="cm">   * (frame, iframe, or object), this field will be set with a reference to</span>
<span class="cm">   * the document node contained within that element.</span>
<span class="cm">   *</span>
<span class="cm">   * The field will not be set if the element does not contain a document.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.5</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">ObjectReference</span> <span class="n">contentDocument</span>   <span class="o">=</span> <span class="mi">12</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Like &#39;contentDocument&#39;, but the other direction; if this node is</span>
<span class="cm">   * a DOCUMENT (9) node, then this field will be set with a reference to the</span>
<span class="cm">   * element that contains the document in the parent runtime.</span>
<span class="cm">   *</span>
<span class="cm">   * The field will not be set if the document node represents a top-level</span>
<span class="cm">   * document.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.5</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">ObjectReference</span> <span class="n">frameElement</span>      <span class="o">=</span> <span class="mi">13</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Explains why the node was included in the response. This field will</span>
<span class="cm">   * always be set.</span>
<span class="cm">   *</span>
<span class="cm">   * When this message is a response to DOM inspection, this field will be set</span>
<span class="cm">   * to TRAVERSAL. When sent as a response to a search, it will either be set</span>
<span class="cm">   * to SEARCH_HIT, or SEARCH_PARENT.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.5</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">MatchReason</span>     <span class="n">matchReason</span>       <span class="o">=</span> <span class="mi">14</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * If the node has pseudo elements applied, this list will contain those</span>
<span class="cm">   * elements.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.5</span>
<span class="cm">   */</span>
  <span class="n">repeated</span> <span class="n">PseudoElement</span>   <span class="n">pseudoElementList</span> <span class="o">=</span> <span class="mi">15</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="setconfiguration">
<span id="index-60"></span><h3><tt class="docutils literal"><span class="pre">SetConfiguration</span></tt><a class="headerlink" href="#setconfiguration" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command SetConfiguration(Configuration) returns (Default) = 10;</pre>
</div>
<p>argument:</p>
<div class="highlight-c" id="index-61"><div class="highlight"><pre><span class="n">message</span> <span class="n">Configuration</span>
<span class="p">{</span>
  <span class="n">optional</span> <span class="n">bool</span> <span class="n">stopAtScript</span>            <span class="o">=</span> <span class="mi">1</span> <span class="p">[</span><span class="k">default</span> <span class="o">=</span> <span class="nb">true</span><span class="p">];</span>
  <span class="n">optional</span> <span class="n">bool</span> <span class="n">stopAtException</span>         <span class="o">=</span> <span class="mi">2</span> <span class="p">[</span><span class="k">default</span> <span class="o">=</span> <span class="nb">false</span><span class="p">];</span>
  <span class="n">optional</span> <span class="n">bool</span> <span class="n">stopAtError</span>             <span class="o">=</span> <span class="mi">3</span> <span class="p">[</span><span class="k">default</span> <span class="o">=</span> <span class="nb">false</span><span class="p">];</span>
  <span class="n">optional</span> <span class="n">bool</span> <span class="n">stopAtAbort</span>             <span class="o">=</span> <span class="mi">4</span> <span class="p">[</span><span class="k">default</span> <span class="o">=</span> <span class="nb">false</span><span class="p">];</span>
  <span class="n">optional</span> <span class="n">bool</span> <span class="n">stopAtGc</span>                <span class="o">=</span> <span class="mi">5</span> <span class="p">[</span><span class="k">default</span> <span class="o">=</span> <span class="nb">false</span><span class="p">];</span>
  <span class="n">optional</span> <span class="n">bool</span> <span class="n">stopAtDebuggerStatement</span> <span class="o">=</span> <span class="mi">6</span> <span class="p">[</span><span class="k">default</span> <span class="o">=</span> <span class="nb">false</span><span class="p">];</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="setfunctionfilter">
<span id="index-62"></span><h3><tt class="docutils literal"><span class="pre">SetFunctionFilter</span></tt><a class="headerlink" href="#setfunctionfilter" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command SetFunctionFilter(FunctionFilter) returns (Default) = 39;</pre>
</div>
<p>Specify which objects to get OnFunctionCallStarting and OnFunctionCallCompleted events for.
If a function is called on an object with a matching class name, the events will be reported.</p>
<p>The default filter is empty, meaning no function calls will be reported.
&#64;since 6.4</p>
<p>argument:</p>
<div class="highlight-c" id="index-63"><div class="highlight"><pre><span class="n">message</span> <span class="n">FunctionFilter</span>
<span class="p">{</span>
  <span class="cm">/**</span>
<span class="cm">   * Match the function call if any of the class names appear in the</span>
<span class="cm">   * prototype chain of a given &#39;this&#39; object.</span>
<span class="cm">   */</span>
  <span class="n">repeated</span> <span class="n">string</span> <span class="n">classList</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="setpropertyfilter">
<span id="index-64"></span><h3><tt class="docutils literal"><span class="pre">SetPropertyFilter</span></tt><a class="headerlink" href="#setpropertyfilter" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command SetPropertyFilter(SetPropertyFilterArg) returns (Default) = 30;</pre>
</div>
<p>Sets a new property filter which may hide some properties when examining an object. This
is useful for excluding many &#8216;uninteresting&#8217; properties found on built-in prototypes.</p>
<p>Calling this will overwrite the previous filter.</p>
<p>argument:</p>
<div class="highlight-c" id="index-65"><div class="highlight"><pre><span class="n">message</span> <span class="n">SetPropertyFilterArg</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">PropertyFilter</span> <span class="n">propertyFilter</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>references:</p>
<div class="highlight-c" id="index-66"><div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * Because we want different filters for different classes, a PropertyFilter consists</span>
<span class="cm"> * of several ClassMasks, and one ClassMask consists of several PropertyMasks. A PropertyMask</span>
<span class="cm"> * can be regarded as a &#39;rule&#39; for filtering a property. If no rule is present, the property is</span>
<span class="cm"> * allowed through the filter. If a matching rule is present, the property is not included.</span>
<span class="cm"> */</span>
<span class="n">message</span> <span class="n">PropertyFilter</span>
<span class="p">{</span>
  <span class="cm">/**</span>
<span class="cm">   * A ClassMask contains all the properties which should be considered for exclusion for a</span>
<span class="cm">   * certain class.</span>
<span class="cm">   */</span>
  <span class="n">message</span> <span class="n">ClassMask</span>
  <span class="p">{</span>
    <span class="cm">/**</span>
<span class="cm">     * You can choose to filter a property based on name and, as an additional condition, type.</span>
<span class="cm">     * For booleans, numbers and strings, you can also filter by value as a third additional</span>
<span class="cm">     * condition.</span>
<span class="cm">     *</span>
<span class="cm">     * If only &#39;name&#39; is present, then a property with that name will be excluded, regardless</span>
<span class="cm">     * of its value. If &#39;type&#39; is also present, then the property with that name will be excluded</span>
<span class="cm">     * only if its value is the specified type.</span>
<span class="cm">     *</span>
<span class="cm">     * If &#39;type&#39; indicates a boolean, number or string, you can assign a value in the corresponding</span>
<span class="cm">     * optional field. The property will then be excluded only if the name, type and value all match.</span>
<span class="cm">     */</span>
    <span class="n">message</span> <span class="n">PropertyMask</span>
    <span class="p">{</span>
      <span class="n">required</span> <span class="n">string</span> <span class="n">name</span>    <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
      <span class="n">optional</span> <span class="n">uint32</span> <span class="n">type</span>    <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
      <span class="n">optional</span> <span class="n">bool</span>   <span class="n">boolean</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
      <span class="n">optional</span> <span class="n">uint32</span> <span class="n">number</span>  <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
      <span class="n">optional</span> <span class="n">string</span> <span class="n">string</span>  <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
    <span class="p">}</span>

    <span class="cm">/**</span>
<span class="cm">     * The name of the class this filter applies to. Examples are &#39;Object&#39; and</span>
<span class="cm">     * &#39;HTMLHtmlElement&#39;.</span>
<span class="cm">     */</span>
    <span class="n">required</span> <span class="n">string</span>       <span class="n">className</span>        <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * The list of properties which could be filtered.</span>
<span class="cm">     */</span>
    <span class="n">repeated</span> <span class="n">PropertyMask</span> <span class="n">propertyMaskList</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="cm">/**</span>
<span class="cm">   * The list of classes which should be filtered.</span>
<span class="cm">   */</span>
  <span class="n">repeated</span> <span class="n">ClassMask</span> <span class="n">classMaskList</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="spotlightobject">
<span id="index-67"></span><h3><tt class="docutils literal"><span class="pre">SpotlightObject</span></tt><a class="headerlink" href="#spotlightobject" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command SpotlightObject(SpotlightObjectSelection) returns (Default) = 5;</pre>
</div>
<p>argument:</p>
<div class="highlight-c" id="index-68"><div class="highlight"><pre><span class="n">message</span> <span class="n">SpotlightObjectSelection</span>
<span class="p">{</span>
  <span class="cm">/**</span>
<span class="cm">   * Using `0` clears the spotlight.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span>       <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Chooses whether the given object should be scrolled into view or not.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">bool</span>   <span class="n">scrollIntoView</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="spotlightobjects">
<span id="index-69"></span><h3><tt class="docutils literal"><span class="pre">SpotlightObjects</span></tt><a class="headerlink" href="#spotlightobjects" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>command SpotlightObjects(SpotlightSelection) returns (Default) = 27;</pre>
</div>
<p>argument:</p>
<div class="highlight-c" id="index-70"><div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * To highlight elements in the document</span>
<span class="cm"> */</span>
<span class="n">message</span> <span class="n">SpotlightSelection</span>
<span class="p">{</span>
  <span class="n">repeated</span> <span class="n">SpotlightObject</span> <span class="n">spotlightObjectList</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>references:</p>
<div class="highlight-c" id="index-71"><div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * The drawing order is box, reference-box-frame, box-frame, grid.</span>
<span class="cm"> */</span>
<span class="n">message</span> <span class="n">SpotlightObject</span>
<span class="p">{</span>
  <span class="cm">/**</span>
<span class="cm">   * Colors are encoded as RGBA with 8 bits for each channel.</span>
<span class="cm">   * encoded_color = ( red &lt;&lt; 24 ) + ( green &lt;&lt; 16 ) + ( blue &lt;&lt; 8 ) + ( alpha )</span>
<span class="cm">   * with red, green, blue and alpha in a range of 0 - 255</span>
<span class="cm">   * e.g.:</span>
<span class="cm">   *</span>
<span class="cm">   *     red     4278190335</span>
<span class="cm">   *     green     16711935</span>
<span class="cm">   *     blue         65535</span>
<span class="cm">   *     yellow  4294902015</span>
<span class="cm">   *     cyan      16777215</span>
<span class="cm">   *     magenta 4278255615</span>
<span class="cm">   */</span>
  <span class="n">message</span> <span class="n">SpotlightBox</span>
  <span class="p">{</span>
    <span class="cm">/**</span>
<span class="cm">     * Valid values:</span>
<span class="cm">     *   0: dimension</span>
<span class="cm">     *   1: padding</span>
<span class="cm">     *   2: border</span>
<span class="cm">     *   3: margin</span>
<span class="cm">     */</span>
    <span class="n">required</span> <span class="n">uint32</span> <span class="n">boxType</span>    <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
    <span class="n">optional</span> <span class="n">uint32</span> <span class="n">fillColor</span>  <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * Drawn with 1px width inside the box</span>
<span class="cm">     */</span>
    <span class="n">optional</span> <span class="n">uint32</span> <span class="n">frameColor</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * Drawn with 1px width inside the box over the whole document</span>
<span class="cm">     */</span>
    <span class="n">optional</span> <span class="n">uint32</span> <span class="n">gridColor</span>  <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="n">required</span> <span class="n">uint32</span>       <span class="n">objectID</span>       <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Chooses whether the given object should be scrolled into view or not.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">bool</span>         <span class="n">scrollIntoView</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="n">repeated</span> <span class="n">SpotlightBox</span> <span class="n">boxList</span>        <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
</div>
<div class="section" id="events">
<h2>Events<a class="headerlink" href="#events" title="Permalink to this headline">¶</a></h2>
<div class="section" id="onconsolelog">
<span id="index-72"></span><h3><tt class="docutils literal"><span class="pre">OnConsoleLog</span></tt><a class="headerlink" href="#onconsolelog" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>event OnConsoleLog returns (ConsoleLogInfo) = 32;</pre>
</div>
<p>This event occurs when the script calls one of these functions:</p>
<blockquote>
<ol class="arabic simple">
<li>console.log</li>
<li>console.debug</li>
<li>console.info</li>
<li>console.warn</li>
<li>console.error</li>
<li>console.assert</li>
<li>console.dir</li>
<li>console.dirxml</li>
<li>console.group</li>
<li>console.groupCollapsed</li>
<li>console.groupEnded</li>
<li>console.count</li>
<li>console.table</li>
</ol>
</blockquote>
<p>All the functions behave the same way; they accept any number of arguments, and sends them to the client.</p>
<p>The console.assert function is a special case, which outputs nothing if the first argument evaluates to
true. Otherwise, it behaves like the other functions and sends its arguments to the client (including the
first argument which triggered the assertion). If the assertion fails, it also throws an exception.</p>
<p>message:</p>
<div class="highlight-c" id="index-73"><div class="highlight"><pre><span class="n">message</span> <span class="n">ConsoleLogInfo</span>
<span class="p">{</span>
  <span class="n">message</span> <span class="n">Value</span>
  <span class="p">{</span>
    <span class="n">optional</span> <span class="n">string</span>      <span class="n">value</span>       <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
    <span class="n">optional</span> <span class="n">ObjectValue</span> <span class="n">objectValue</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="n">required</span> <span class="n">uint32</span>   <span class="n">runtimeID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * This value indicates which function was called:</span>
<span class="cm">   *</span>
<span class="cm">   * 1 - console.log</span>
<span class="cm">   * 2 - console.debug</span>
<span class="cm">   * 3 - console.info</span>
<span class="cm">   * 4 - console.warn</span>
<span class="cm">   * 5 - console.error</span>
<span class="cm">   * 6 - console.assert</span>
<span class="cm">   * 7 - console.dir</span>
<span class="cm">   * 8 - console.dirxml</span>
<span class="cm">   * 9 - console.group</span>
<span class="cm">   * 10 - console.groupCollapsed</span>
<span class="cm">   * 11 - console.groupEnded</span>
<span class="cm">   * 12 - console.count</span>
<span class="cm">   * 13 - console.table</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span>   <span class="n">type</span>      <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The list of values passed to the function as arguments.</span>
<span class="cm">   */</span>
  <span class="n">repeated</span> <span class="n">Value</span>    <span class="n">valueList</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The position the function was called.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">Position</span> <span class="n">position</span>  <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>references:</p>
<div class="highlight-c" id="index-74"><div class="highlight"><pre><span class="n">message</span> <span class="n">ObjectValue</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span>     <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">bool</span>   <span class="n">isCallable</span>   <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * type, function or object</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">type</span>         <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="n">optional</span> <span class="n">uint32</span> <span class="n">prototypeID</span>  <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The class of the object.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">className</span>    <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * If the object is a function, this is the name of</span>
<span class="cm">   * the variable associated with that function (if any).</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">functionName</span> <span class="o">=</span> <span class="mi">6</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<div class="highlight-c" id="index-75"><div class="highlight"><pre><span class="n">message</span> <span class="n">Position</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">scriptID</span>   <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">lineNumber</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="onconsoleprofile">
<span id="index-76"></span><h3><tt class="docutils literal"><span class="pre">OnConsoleProfile</span></tt><a class="headerlink" href="#onconsoleprofile" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>event OnConsoleProfile returns (ConsoleProfileInfo) = 36;</pre>
</div>
<p>Occurs when console.profile is called in a script. Note that profiling is not yet supported.
This event is just included to let the client know that the function has been called.</p>
<p>message:</p>
<div class="highlight-c" id="index-77"><div class="highlight"><pre><span class="n">message</span> <span class="n">ConsoleProfileInfo</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="onconsoleprofileend">
<span id="index-78"></span><h3><tt class="docutils literal"><span class="pre">OnConsoleProfileEnd</span></tt><a class="headerlink" href="#onconsoleprofileend" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>event OnConsoleProfileEnd returns (ConsoleProfileEndInfo) = 37;</pre>
</div>
<p>Occurs when console.profileEdd is called in a script. Note that profiling is not yet supported.
This event is just included to let the client know that the function has been called.</p>
<p>message:</p>
<div class="highlight-c" id="index-79"><div class="highlight"><pre><span class="n">message</span> <span class="n">ConsoleProfileEndInfo</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="onconsoletime">
<span id="index-80"></span><h3><tt class="docutils literal"><span class="pre">OnConsoleTime</span></tt><a class="headerlink" href="#onconsoletime" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>event OnConsoleTime returns (ConsoleTimeInfo) = 33;</pre>
</div>
<p>Occurs when console.time is called in the script. When this event occurs, Opera will start a
timer which can be referred to by the specified title. The timer can later be stopped with
console.timeEnd, which will calculate the elapsed time between the two calls.</p>
<p>message:</p>
<div class="highlight-c" id="index-81"><div class="highlight"><pre><span class="n">message</span> <span class="n">ConsoleTimeInfo</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Timers are identified by a string passed as the first argument</span>
<span class="cm">   * to the function. For instance, console.time(&quot;MyTimer&quot;).</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">title</span>     <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="onconsoletimeend">
<span id="index-82"></span><h3><tt class="docutils literal"><span class="pre">OnConsoleTimeEnd</span></tt><a class="headerlink" href="#onconsoletimeend" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>event OnConsoleTimeEnd returns (ConsoleTimeEndInfo) = 34;</pre>
</div>
<p>Occurs when console.timeEnd is called in the script. The message contains the elapsed time between
the corresponding call to console.time (see OnConsoleTime).</p>
<p>message:</p>
<div class="highlight-c" id="index-83"><div class="highlight"><pre><span class="n">message</span> <span class="n">ConsoleTimeEndInfo</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The title of the timer. See ConsoleTimeInfo.title.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">title</span>     <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Elapsed time in microseconds.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">elapsed</span>   <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="onconsoletrace">
<span id="index-84"></span><h3><tt class="docutils literal"><span class="pre">OnConsoleTrace</span></tt><a class="headerlink" href="#onconsoletrace" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>event OnConsoleTrace returns (ConsoleTraceInfo) = 35;</pre>
</div>
<p>Occurs when console.trace is called in the script. Sends the stack trace at the position
where the call was made.</p>
<p>message:</p>
<div class="highlight-c" id="index-85"><div class="highlight"><pre><span class="n">message</span> <span class="n">ConsoleTraceInfo</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span>         <span class="n">runtimeID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The list of stack frames at the level console.trace was called.</span>
<span class="cm">   */</span>
  <span class="n">repeated</span> <span class="n">BacktraceFrame</span> <span class="n">frameList</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>references:</p>
<div class="highlight-c" id="index-86"><div class="highlight"><pre><span class="n">message</span> <span class="n">ObjectValue</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span>     <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">bool</span>   <span class="n">isCallable</span>   <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * type, function or object</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">type</span>         <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="n">optional</span> <span class="n">uint32</span> <span class="n">prototypeID</span>  <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The class of the object.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">className</span>    <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * If the object is a function, this is the name of</span>
<span class="cm">   * the variable associated with that function (if any).</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">functionName</span> <span class="o">=</span> <span class="mi">6</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<div class="highlight-c" id="index-87"><div class="highlight"><pre><span class="n">message</span> <span class="n">BacktraceFrame</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span>      <span class="n">functionID</span>     <span class="o">=</span>  <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span>      <span class="n">argumentObject</span> <span class="o">=</span>  <span class="mi">2</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span>      <span class="n">variableObject</span> <span class="o">=</span>  <span class="mi">3</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span>      <span class="n">thisObject</span>     <span class="o">=</span>  <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * TODO: Spec says repeated, while the code only assumes one (optional)</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">ObjectValue</span> <span class="n">objectValue</span>    <span class="o">=</span>  <span class="mi">5</span><span class="p">;</span>
  <span class="n">optional</span> <span class="n">uint32</span>      <span class="n">scriptID</span>       <span class="o">=</span>  <span class="mi">6</span><span class="p">;</span>
  <span class="n">optional</span> <span class="n">uint32</span>      <span class="n">lineNumber</span>     <span class="o">=</span>  <span class="mi">7</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The variable objects in the scope chain of the function. The first</span>
<span class="cm">   * element in the list is the innermost scope (the scope of the function</span>
<span class="cm">   * itself). The list includes the global scope.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.1</span>
<span class="cm">   */</span>
  <span class="n">repeated</span> <span class="n">uint32</span>      <span class="n">scopeList</span>      <span class="o">=</span>  <span class="mi">8</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The full value of the &#39;arguments&#39; object.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.2</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">ObjectValue</span> <span class="n">argumentValue</span>  <span class="o">=</span>  <span class="mi">9</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The full value of the &#39;this&#39; object.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.2</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">ObjectValue</span> <span class="n">thisValue</span>      <span class="o">=</span> <span class="mi">10</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="onfunctioncallcompleted">
<span id="index-88"></span><h3><tt class="docutils literal"><span class="pre">OnFunctionCallCompleted</span></tt><a class="headerlink" href="#onfunctioncallcompleted" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>event OnFunctionCallCompleted returns (FunctionCallCompletedInfo) = 41;</pre>
</div>
<p>Occurs when a function call has completed.</p>
<p>message:</p>
<div class="highlight-c" id="index-89"><div class="highlight"><pre><span class="n">message</span> <span class="n">FunctionCallCompletedInfo</span>
<span class="p">{</span>
  <span class="k">enum</span> <span class="n">Result</span>
  <span class="p">{</span>
    <span class="cm">/**</span>
<span class="cm">     * This result means that the function completed without</span>
<span class="cm">     * throwing an exception.</span>
<span class="cm">     */</span>
    <span class="n">SUCCESS</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * The function could not return. The &#39;returnValue&#39; field</span>
<span class="cm">     * contains the thrown value instead of the return value.</span>
<span class="cm">     */</span>
    <span class="n">EXCEPTION</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="cm">/**</span>
<span class="cm">   * Which runtime the call ocurred in.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span>   <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">threadID</span>    <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Milliseconds since epoch, at the time the call completed.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="kt">double</span> <span class="n">time</span>        <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">Result</span> <span class="n">result</span>      <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="n">optional</span> <span class="n">Value</span>  <span class="n">returnValue</span> <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>references:</p>
<div class="highlight-c" id="index-90"><div class="highlight"><pre><span class="n">message</span> <span class="n">ObjectValue</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span>     <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">bool</span>   <span class="n">isCallable</span>   <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * type, function or object</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">type</span>         <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="n">optional</span> <span class="n">uint32</span> <span class="n">prototypeID</span>  <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The class of the object.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">className</span>    <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * If the object is a function, this is the name of</span>
<span class="cm">   * the variable associated with that function (if any).</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">functionName</span> <span class="o">=</span> <span class="mi">6</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<div class="highlight-c" id="index-91"><div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * Represents an ECMAScript value, a value is either one of the primitives</span>
<span class="cm"> * like string or boolean or an object.</span>
<span class="cm"> */</span>
<span class="n">message</span> <span class="n">Value</span>
<span class="p">{</span>
  <span class="k">enum</span> <span class="n">Type</span>
  <span class="p">{</span>
    <span class="cm">/**</span>
<span class="cm">     * The undefined type, returned when no value was found or &quot;undefined&quot;</span>
<span class="cm">     * was referenced.</span>
<span class="cm">     */</span>
    <span class="n">UNDEFINED</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * A null value.</span>
<span class="cm">     */</span>
    <span class="nb">NULL</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * Boolean value true.</span>
<span class="cm">     */</span>
    <span class="n">TRUE</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * Boolean value false.</span>
<span class="cm">     */</span>
    <span class="n">FALSE</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * NaN value which cannot be exported to JSON directly.</span>
<span class="cm">     * Should be treated like a number.</span>
<span class="cm">     *</span>
<span class="cm">     * ECMAScript users should use this code to get the value natively::</span>
<span class="cm">     *</span>
<span class="cm">     *   parseFloat(&quot;NaN&quot;)</span>
<span class="cm">     */</span>
    <span class="n">NAN</span> <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * Plus infinity value which cannot be export to JSON directly.</span>
<span class="cm">     * Should be treated like a number.</span>
<span class="cm">     *</span>
<span class="cm">     * ECMAScript users should use this code to get the value natively::</span>
<span class="cm">     *</span>
<span class="cm">     *   parseFloat(&quot;Infinity&quot;)</span>
<span class="cm">     */</span>
    <span class="n">PLUS_INFINITY</span> <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * Minus infinity value which cannot be export to JSON directly.</span>
<span class="cm">     * Should be treated like a number.</span>
<span class="cm">     *</span>
<span class="cm">     * ECMAScript users should use this code to get the value natively::</span>
<span class="cm">     *</span>
<span class="cm">     *   parseFloat(&quot;-Infinity&quot;)</span>
<span class="cm">     */</span>
    <span class="n">MINUS_INFINITY</span> <span class="o">=</span> <span class="mi">6</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * A number, use the field &#39;number&#39; for the actual value.</span>
<span class="cm">     */</span>
    <span class="n">NUMBER</span> <span class="o">=</span> <span class="mi">7</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * A string, use the field &#39;str&#39; for the actual string data.</span>
<span class="cm">     */</span>
    <span class="n">STRING</span> <span class="o">=</span> <span class="mi">8</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * An object, the field &#39;object&#39; contains object details.</span>
<span class="cm">     */</span>
    <span class="n">OBJECT</span> <span class="o">=</span> <span class="mi">9</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="cm">/**</span>
<span class="cm">   * The type of value.</span>
<span class="cm">   *</span>
<span class="cm">   * @note Booleans are encoded as either TRUE or FALSE to shorten the number</span>
<span class="cm">   * fields in use.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">Type</span>        <span class="n">type</span>   <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The numeric value, set if type = NUMBER.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="kt">double</span>      <span class="n">number</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The string, set if type = STRING.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span>      <span class="n">str</span>    <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Object information, set if type = OBJECT.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">ObjectValue</span> <span class="n">object</span> <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="onfunctioncallstarting">
<span id="index-92"></span><h3><tt class="docutils literal"><span class="pre">OnFunctionCallStarting</span></tt><a class="headerlink" href="#onfunctioncallstarting" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>event OnFunctionCallStarting returns (FunctionCallStartingInfo) = 40;</pre>
</div>
<p>Occurs when a function call is about to be performed.</p>
<p>message:</p>
<div class="highlight-c" id="index-93"><div class="highlight"><pre><span class="n">message</span> <span class="n">FunctionCallStartingInfo</span>
<span class="p">{</span>
  <span class="cm">/**</span>
<span class="cm">   * Which runtime the call ocurred in.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span>      <span class="n">runtimeID</span>      <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span>      <span class="n">threadID</span>       <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Milliseconds since epoch, at the time the call started.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="kt">double</span>      <span class="n">time</span>           <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">ObjectValue</span> <span class="n">thisObject</span>     <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">ObjectValue</span> <span class="n">functionObject</span> <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
  <span class="n">repeated</span> <span class="n">Value</span>       <span class="n">argumentList</span>   <span class="o">=</span> <span class="mi">6</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The position where the call was made, or missing if</span>
<span class="cm">   * the call did not come from a script.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">Position</span>    <span class="n">position</span>       <span class="o">=</span> <span class="mi">7</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>references:</p>
<div class="highlight-c" id="index-94"><div class="highlight"><pre><span class="n">message</span> <span class="n">ObjectValue</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span>     <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">bool</span>   <span class="n">isCallable</span>   <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * type, function or object</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">type</span>         <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="n">optional</span> <span class="n">uint32</span> <span class="n">prototypeID</span>  <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The class of the object.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">className</span>    <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * If the object is a function, this is the name of</span>
<span class="cm">   * the variable associated with that function (if any).</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">functionName</span> <span class="o">=</span> <span class="mi">6</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<div class="highlight-c" id="index-95"><div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * Represents an ECMAScript value, a value is either one of the primitives</span>
<span class="cm"> * like string or boolean or an object.</span>
<span class="cm"> */</span>
<span class="n">message</span> <span class="n">Value</span>
<span class="p">{</span>
  <span class="k">enum</span> <span class="n">Type</span>
  <span class="p">{</span>
    <span class="cm">/**</span>
<span class="cm">     * The undefined type, returned when no value was found or &quot;undefined&quot;</span>
<span class="cm">     * was referenced.</span>
<span class="cm">     */</span>
    <span class="n">UNDEFINED</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * A null value.</span>
<span class="cm">     */</span>
    <span class="nb">NULL</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * Boolean value true.</span>
<span class="cm">     */</span>
    <span class="n">TRUE</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * Boolean value false.</span>
<span class="cm">     */</span>
    <span class="n">FALSE</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * NaN value which cannot be exported to JSON directly.</span>
<span class="cm">     * Should be treated like a number.</span>
<span class="cm">     *</span>
<span class="cm">     * ECMAScript users should use this code to get the value natively::</span>
<span class="cm">     *</span>
<span class="cm">     *   parseFloat(&quot;NaN&quot;)</span>
<span class="cm">     */</span>
    <span class="n">NAN</span> <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * Plus infinity value which cannot be export to JSON directly.</span>
<span class="cm">     * Should be treated like a number.</span>
<span class="cm">     *</span>
<span class="cm">     * ECMAScript users should use this code to get the value natively::</span>
<span class="cm">     *</span>
<span class="cm">     *   parseFloat(&quot;Infinity&quot;)</span>
<span class="cm">     */</span>
    <span class="n">PLUS_INFINITY</span> <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * Minus infinity value which cannot be export to JSON directly.</span>
<span class="cm">     * Should be treated like a number.</span>
<span class="cm">     *</span>
<span class="cm">     * ECMAScript users should use this code to get the value natively::</span>
<span class="cm">     *</span>
<span class="cm">     *   parseFloat(&quot;-Infinity&quot;)</span>
<span class="cm">     */</span>
    <span class="n">MINUS_INFINITY</span> <span class="o">=</span> <span class="mi">6</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * A number, use the field &#39;number&#39; for the actual value.</span>
<span class="cm">     */</span>
    <span class="n">NUMBER</span> <span class="o">=</span> <span class="mi">7</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * A string, use the field &#39;str&#39; for the actual string data.</span>
<span class="cm">     */</span>
    <span class="n">STRING</span> <span class="o">=</span> <span class="mi">8</span><span class="p">;</span>
    <span class="cm">/**</span>
<span class="cm">     * An object, the field &#39;object&#39; contains object details.</span>
<span class="cm">     */</span>
    <span class="n">OBJECT</span> <span class="o">=</span> <span class="mi">9</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="cm">/**</span>
<span class="cm">   * The type of value.</span>
<span class="cm">   *</span>
<span class="cm">   * @note Booleans are encoded as either TRUE or FALSE to shorten the number</span>
<span class="cm">   * fields in use.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">Type</span>        <span class="n">type</span>   <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The numeric value, set if type = NUMBER.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="kt">double</span>      <span class="n">number</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The string, set if type = STRING.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span>      <span class="n">str</span>    <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Object information, set if type = OBJECT.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">ObjectValue</span> <span class="n">object</span> <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
<div class="highlight-c" id="index-96"><div class="highlight"><pre><span class="n">message</span> <span class="n">Position</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">scriptID</span>   <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">lineNumber</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="onhandleevent">
<span id="index-97"></span><h3><tt class="docutils literal"><span class="pre">OnHandleEvent</span></tt><a class="headerlink" href="#onhandleevent" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>event OnHandleEvent returns (DomEvent) = 20;</pre>
</div>
<p>This event is issued for XML events on the host, if a corresponding
<cite>AddEventHandler</cite> has been issued earlier by the client.</p>
<p>message:</p>
<div class="highlight-c" id="index-98"><div class="highlight"><pre><span class="n">message</span> <span class="n">DomEvent</span>
<span class="p">{</span>
  <span class="cm">/**</span>
<span class="cm">   * Refers to the target of the event.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span>  <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">handlerID</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The event type is e.g., `&quot;click&quot;`, `&quot;mousemove&quot;`</span>
<span class="cm">   * More examples are at http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html</span>
<span class="cm">   * Exactly which events are implemented depends on the host, and is not defined in this protocol.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">eventType</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="onnewscript">
<span id="index-99"></span><h3><tt class="docutils literal"><span class="pre">OnNewScript</span></tt><a class="headerlink" href="#onnewscript" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>event OnNewScript returns (ScriptInfo) = 16;</pre>
</div>
<p>message:</p>
<div class="highlight-c" id="index-100"><div class="highlight"><pre><span class="n">message</span> <span class="n">ScriptInfo</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span>  <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">scriptID</span>   <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * One of:</span>
<span class="cm">   * - `&quot;inline&quot;`</span>
<span class="cm">   * - `&quot;event&quot;`</span>
<span class="cm">   * - `&quot;linked&quot;`</span>
<span class="cm">   * - `&quot;timeout&quot;`</span>
<span class="cm">   * - `&quot;java&quot;`</span>
<span class="cm">   * - `&quot;generated&quot;`</span>
<span class="cm">   * - `&quot;unknown&quot;`</span>
<span class="cm">   * - `&quot;debugger-eval&quot;`</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">scriptType</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">scriptData</span> <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * present if `scriptType` is Linked</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">uri</span>        <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="onobjectselected">
<span id="index-101"></span><h3><tt class="docutils literal"><span class="pre">OnObjectSelected</span></tt><a class="headerlink" href="#onobjectselected" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>event OnObjectSelected returns (ObjectSelection) = 21;</pre>
</div>
<p>Some hosts send this event to indicate that an object was selected for
debugging, e.g., if the debugger was started by right-clicking an element
and clicking &#8220;inspect&#8221; in the context menu, this event will be sent
right after startup. A client may safely choose to ignore this event.</p>
<p>message:</p>
<div class="highlight-c" id="index-102"><div class="highlight"><pre><span class="n">message</span> <span class="n">ObjectSelection</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span>  <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">windowID</span>  <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="n">optional</span> <span class="n">uint32</span> <span class="n">runtimeID</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="onparseerror">
<span id="index-103"></span><h3><tt class="docutils literal"><span class="pre">OnParseError</span></tt><a class="headerlink" href="#onparseerror" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>event OnParseError returns (DomParseError) = 28;</pre>
</div>
<p>message:</p>
<div class="highlight-c" id="index-104"><div class="highlight"><pre><span class="n">message</span> <span class="n">DomParseError</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span>   <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">scriptID</span>    <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">lineNumber</span>  <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Represents the character offset in the script where the parse error occured.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">offset</span>      <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Describes in what context the error occured.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">context</span>     <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Contains the human-readable description of the parse error.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">description</span> <span class="o">=</span> <span class="mi">6</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="onreadystatechanged">
<span id="index-105"></span><h3><tt class="docutils literal"><span class="pre">OnReadyStateChanged</span></tt><a class="headerlink" href="#onreadystatechanged" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>event OnReadyStateChanged returns (ReadyStateInfo) = 31;</pre>
</div>
<p>Sent when the ready state of a document is changed. The possible states are:</p>
<blockquote>
<ol class="arabic simple">
<li>DOMContentLoaded: When the DOM (not inline elements) is loaded</li>
<li>Loaded: After all onload-handlers have finished</li>
</ol>
</blockquote>
<p>message:</p>
<div class="highlight-c" id="index-106"><div class="highlight"><pre><span class="n">message</span> <span class="n">ReadyStateInfo</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * 1 - DOMContentLoaded</span>
<span class="cm">   * 2 - Load</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">state</span>     <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="onruntimestarted">
<span id="index-107"></span><h3><tt class="docutils literal"><span class="pre">OnRuntimeStarted</span></tt><a class="headerlink" href="#onruntimestarted" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>event OnRuntimeStarted returns (RuntimeInfo) = 14;</pre>
</div>
<p>message:</p>
<div class="highlight-c" id="index-108"><div class="highlight"><pre><span class="n">message</span> <span class="n">RuntimeInfo</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span>     <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">htmlFramePath</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The ID of the window this runtime is associated with, if the runtime is</span>
<span class="cm">   * associated with a single window. If the runtime is associated with more</span>
<span class="cm">   * (or less) than one window, the field will be set to zero. Refer to the</span>
<span class="cm">   * ``windowIDList`` field for more information.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">windowID</span>      <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * the &#39;global&#39; object</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">objectID</span>      <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * the document&#39;s URI</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">uri</span>           <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * A short description of the nature of the runtime, for instance</span>
<span class="cm">   * &quot;document&quot;, or &quot;webworker&quot;.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.2</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">description</span>   <span class="o">=</span> <span class="mi">6</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * A list of all windows this runtime is associated with. Normally, this</span>
<span class="cm">   * will only contain one window, but some runtimes, for instance shared</span>
<span class="cm">   * WebWorkers, can be associated with multiple (zero or more) windows.</span>
<span class="cm">   *</span>
<span class="cm">   * @since 6.2</span>
<span class="cm">   */</span>
  <span class="n">repeated</span> <span class="n">uint32</span> <span class="n">windowIDList</span>  <span class="o">=</span> <span class="mi">7</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="onruntimestopped">
<span id="index-109"></span><h3><tt class="docutils literal"><span class="pre">OnRuntimeStopped</span></tt><a class="headerlink" href="#onruntimestopped" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>event OnRuntimeStopped returns (RuntimeID) = 15;</pre>
</div>
<p>message:</p>
<div class="highlight-c" id="index-110"><div class="highlight"><pre><span class="n">message</span> <span class="n">RuntimeID</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="onthreadfinished">
<span id="index-111"></span><h3><tt class="docutils literal"><span class="pre">OnThreadFinished</span></tt><a class="headerlink" href="#onthreadfinished" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>event OnThreadFinished returns (ThreadResult) = 18;</pre>
</div>
<p>message:</p>
<div class="highlight-c" id="index-112"><div class="highlight"><pre><span class="n">message</span> <span class="n">ThreadResult</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">threadID</span>  <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * One of:</span>
<span class="cm">   * - `&quot;completed&quot;`</span>
<span class="cm">   * - `&quot;unhandled-exception&quot;`</span>
<span class="cm">   * - `&quot;aborted&quot;`</span>
<span class="cm">   * - `&quot;cancelled-by-scheduler&quot;`</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">status</span>    <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="onthreadstarted">
<span id="index-113"></span><h3><tt class="docutils literal"><span class="pre">OnThreadStarted</span></tt><a class="headerlink" href="#onthreadstarted" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>event OnThreadStarted returns (ThreadInfo) = 17;</pre>
</div>
<p>message:</p>
<div class="highlight-c" id="index-114"><div class="highlight"><pre><span class="n">message</span> <span class="n">ThreadInfo</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span>      <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">threadID</span>       <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">parentThreadID</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * One of:</span>
<span class="cm">   * - `&quot;inline&quot;`</span>
<span class="cm">   * - `&quot;event&quot;`</span>
<span class="cm">   * - `&quot;linked&quot;`</span>
<span class="cm">   * - `&quot;timeout&quot;`</span>
<span class="cm">   * - `&quot;java&quot;`</span>
<span class="cm">   * - `&quot;unknown&quot;`</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">threadType</span>     <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * present if `threadType` is `&quot;event&quot;`</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">eventNamespace</span> <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * present if `threadType` is `&quot;event&quot;`</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">eventType</span>      <span class="o">=</span> <span class="mi">6</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="onthreadstoppedat">
<span id="index-115"></span><h3><tt class="docutils literal"><span class="pre">OnThreadStoppedAt</span></tt><a class="headerlink" href="#onthreadstoppedat" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><pre>event OnThreadStoppedAt returns (ThreadStopInfo) = 19;</pre>
</div>
<p>message:</p>
<div class="highlight-c" id="index-116"><div class="highlight"><pre><span class="n">message</span> <span class="n">ThreadStopInfo</span>
<span class="p">{</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">runtimeID</span>     <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">threadID</span>      <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">scriptID</span>      <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">lineNumber</span>    <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * One of:</span>
<span class="cm">   * - `&quot;broken&quot;`</span>
<span class="cm">   * - `&quot;function-return&quot;`</span>
<span class="cm">   * - `&quot;exception&quot;`</span>
<span class="cm">   * - `&quot;debugger statement&quot;`</span>
<span class="cm">   * - `&quot;breakpoint&quot;`</span>
<span class="cm">   * - `&quot;unknown&quot;`</span>
<span class="cm">   *</span>
<span class="cm">   * `&quot;broken&quot;` is sent in response to a `Break` command.</span>
<span class="cm">   * `&quot;breakpoint&quot;` is sent when the script hits a debugger-set breakpoint.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">stoppedReason</span> <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Present if and only if `stoppedReason` is `&quot;breakpoint&quot;`</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">uint32</span> <span class="n">breakpointID</span>  <span class="o">=</span> <span class="mi">6</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="../../index.html">
              <img class="logo" src="../../_static/Opera-logo-PNG.png" alt="Logo"/>
            </a></p>
            <h3><a href="../../index.html">Table Of Contents</a></h3>
            <ul>
<li><a class="reference internal" href="#">EcmascriptDebugger 6.6</a><ul>
<li><a class="reference internal" href="#service">Service</a></li>
<li><a class="reference internal" href="#commands">Commands</a><ul>
<li><a class="reference internal" href="#addbreakpoint"><tt class="docutils literal"><span class="pre">AddBreakpoint</span></tt></a></li>
<li><a class="reference internal" href="#addeventbreakpoint"><tt class="docutils literal"><span class="pre">AddEventBreakpoint</span></tt></a></li>
<li><a class="reference internal" href="#addeventhandler"><tt class="docutils literal"><span class="pre">AddEventHandler</span></tt></a></li>
<li><a class="reference internal" href="#break"><tt class="docutils literal"><span class="pre">Break</span></tt></a></li>
<li><a class="reference internal" href="#continuethread"><tt class="docutils literal"><span class="pre">ContinueThread</span></tt></a></li>
<li><a class="reference internal" href="#cssgetallstylesheets"><tt class="docutils literal"><span class="pre">CssGetAllStylesheets</span></tt></a></li>
<li><a class="reference internal" href="#cssgetindexmap"><tt class="docutils literal"><span class="pre">CssGetIndexMap</span></tt></a></li>
<li><a class="reference internal" href="#cssgetstyledeclarations"><tt class="docutils literal"><span class="pre">CssGetStyleDeclarations</span></tt></a></li>
<li><a class="reference internal" href="#cssgetstylesheet"><tt class="docutils literal"><span class="pre">CssGetStylesheet</span></tt></a></li>
<li><a class="reference internal" href="#eval"><tt class="docutils literal"><span class="pre">Eval</span></tt></a></li>
<li><a class="reference internal" href="#examineobjects"><tt class="docutils literal"><span class="pre">ExamineObjects</span></tt></a></li>
<li><a class="reference internal" href="#getbacktrace"><tt class="docutils literal"><span class="pre">GetBacktrace</span></tt></a></li>
<li><a class="reference internal" href="#getselectedobject"><tt class="docutils literal"><span class="pre">GetSelectedObject</span></tt></a></li>
<li><a class="reference internal" href="#inspectdom"><tt class="docutils literal"><span class="pre">InspectDom</span></tt></a></li>
<li><a class="reference internal" href="#listruntimes"><tt class="docutils literal"><span class="pre">ListRuntimes</span></tt></a></li>
<li><a class="reference internal" href="#releaseobjects"><tt class="docutils literal"><span class="pre">ReleaseObjects</span></tt></a></li>
<li><a class="reference internal" href="#removebreakpoint"><tt class="docutils literal"><span class="pre">RemoveBreakpoint</span></tt></a></li>
<li><a class="reference internal" href="#removeeventhandler"><tt class="docutils literal"><span class="pre">RemoveEventHandler</span></tt></a></li>
<li><a class="reference internal" href="#searchdom"><tt class="docutils literal"><span class="pre">SearchDom</span></tt></a></li>
<li><a class="reference internal" href="#setconfiguration"><tt class="docutils literal"><span class="pre">SetConfiguration</span></tt></a></li>
<li><a class="reference internal" href="#setfunctionfilter"><tt class="docutils literal"><span class="pre">SetFunctionFilter</span></tt></a></li>
<li><a class="reference internal" href="#setpropertyfilter"><tt class="docutils literal"><span class="pre">SetPropertyFilter</span></tt></a></li>
<li><a class="reference internal" href="#spotlightobject"><tt class="docutils literal"><span class="pre">SpotlightObject</span></tt></a></li>
<li><a class="reference internal" href="#spotlightobjects"><tt class="docutils literal"><span class="pre">SpotlightObjects</span></tt></a></li>
</ul>
</li>
<li><a class="reference internal" href="#events">Events</a><ul>
<li><a class="reference internal" href="#onconsolelog"><tt class="docutils literal"><span class="pre">OnConsoleLog</span></tt></a></li>
<li><a class="reference internal" href="#onconsoleprofile"><tt class="docutils literal"><span class="pre">OnConsoleProfile</span></tt></a></li>
<li><a class="reference internal" href="#onconsoleprofileend"><tt class="docutils literal"><span class="pre">OnConsoleProfileEnd</span></tt></a></li>
<li><a class="reference internal" href="#onconsoletime"><tt class="docutils literal"><span class="pre">OnConsoleTime</span></tt></a></li>
<li><a class="reference internal" href="#onconsoletimeend"><tt class="docutils literal"><span class="pre">OnConsoleTimeEnd</span></tt></a></li>
<li><a class="reference internal" href="#onconsoletrace"><tt class="docutils literal"><span class="pre">OnConsoleTrace</span></tt></a></li>
<li><a class="reference internal" href="#onfunctioncallcompleted"><tt class="docutils literal"><span class="pre">OnFunctionCallCompleted</span></tt></a></li>
<li><a class="reference internal" href="#onfunctioncallstarting"><tt class="docutils literal"><span class="pre">OnFunctionCallStarting</span></tt></a></li>
<li><a class="reference internal" href="#onhandleevent"><tt class="docutils literal"><span class="pre">OnHandleEvent</span></tt></a></li>
<li><a class="reference internal" href="#onnewscript"><tt class="docutils literal"><span class="pre">OnNewScript</span></tt></a></li>
<li><a class="reference internal" href="#onobjectselected"><tt class="docutils literal"><span class="pre">OnObjectSelected</span></tt></a></li>
<li><a class="reference internal" href="#onparseerror"><tt class="docutils literal"><span class="pre">OnParseError</span></tt></a></li>
<li><a class="reference internal" href="#onreadystatechanged"><tt class="docutils literal"><span class="pre">OnReadyStateChanged</span></tt></a></li>
<li><a class="reference internal" href="#onruntimestarted"><tt class="docutils literal"><span class="pre">OnRuntimeStarted</span></tt></a></li>
<li><a class="reference internal" href="#onruntimestopped"><tt class="docutils literal"><span class="pre">OnRuntimeStopped</span></tt></a></li>
<li><a class="reference internal" href="#onthreadfinished"><tt class="docutils literal"><span class="pre">OnThreadFinished</span></tt></a></li>
<li><a class="reference internal" href="#onthreadstarted"><tt class="docutils literal"><span class="pre">OnThreadStarted</span></tt></a></li>
<li><a class="reference internal" href="#onthreadstoppedat"><tt class="docutils literal"><span class="pre">OnThreadStoppedAt</span></tt></a></li>
</ul>
</li>
</ul>
</li>
</ul>

            <h4>Previous topic</h4>
            <p class="topless"><a href="EcmascriptDebugger_6_5.html"
                                  title="previous chapter">EcmascriptDebugger 6.5</a></p>
            <h4>Next topic</h4>
            <p class="topless"><a href="EcmascriptDebugger_6_7.html"
                                  title="next chapter">EcmascriptDebugger 6.7</a></p>
            <h3>This Page</h3>
            <ul class="this-page-menu">
              <li><a href="../../_sources/services/EcmascriptDebugger/EcmascriptDebugger_6_6.txt"
                     rel="nofollow">Show Source</a></li>
             <li><a href="./pdf/ScopeInterface.pdf" rel="nofollow">Download as PDF</a></li>
            </ul>
          <div id="searchbox" style="display: none">
            <h3>Quick search</h3>
              <form class="search" action="../../search.html" method="get">
                <input type="text" name="q" size="18" />
                <input type="submit" value="Go" />
                <input type="hidden" name="check_keywords" value="yes" />
                <input type="hidden" name="area" value="default" />
              </form>
              <p class="searchtip" style="font-size: 90%">
              Enter search terms or a module, class or function name.
              </p>
          </div>
          
          <script type="text/javascript">$('#searchbox').show(0);</script>
          <h3><a href="glossary.html">Glossary</a></h3>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="footer">
    © Copyright 2006-2010, Opera Software ASA. 
    <a href="./index.html#license">Licensed under Apache License, Version 2.0.</a>
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.6.
    </div>
  </body>
</html>