Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

js_protocol.json 160KB

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