123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747 |
- {
- "version": {
- "major": "1",
- "minor": "3"
- },
- "domains": [
- {
- "domain": "Console",
- "description": "This domain is deprecated - use Runtime or Log instead.",
- "deprecated": true,
- "dependencies": [
- "Runtime"
- ],
- "types": [
- {
- "id": "ConsoleMessage",
- "description": "Console message.",
- "type": "object",
- "properties": [
- {
- "name": "source",
- "description": "Message source.",
- "type": "string",
- "enum": [
- "xml",
- "javascript",
- "network",
- "console-api",
- "storage",
- "appcache",
- "rendering",
- "security",
- "other",
- "deprecation",
- "worker"
- ]
- },
- {
- "name": "level",
- "description": "Message severity.",
- "type": "string",
- "enum": [
- "log",
- "warning",
- "error",
- "debug",
- "info"
- ]
- },
- {
- "name": "text",
- "description": "Message text.",
- "type": "string"
- },
- {
- "name": "url",
- "description": "URL of the message origin.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "line",
- "description": "Line number in the resource that generated this message (1-based).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "column",
- "description": "Column number in the resource that generated this message (1-based).",
- "optional": true,
- "type": "integer"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "clearMessages",
- "description": "Does nothing."
- },
- {
- "name": "disable",
- "description": "Disables console domain, prevents further console messages from being reported to the client."
- },
- {
- "name": "enable",
- "description": "Enables console domain, sends the messages collected so far to the client by means of the\n`messageAdded` notification."
- }
- ],
- "events": [
- {
- "name": "messageAdded",
- "description": "Issued when new console message is added.",
- "parameters": [
- {
- "name": "message",
- "description": "Console message that has been added.",
- "$ref": "ConsoleMessage"
- }
- ]
- }
- ]
- },
- {
- "domain": "Debugger",
- "description": "Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing\nbreakpoints, stepping through execution, exploring stack traces, etc.",
- "dependencies": [
- "Runtime"
- ],
- "types": [
- {
- "id": "BreakpointId",
- "description": "Breakpoint identifier.",
- "type": "string"
- },
- {
- "id": "CallFrameId",
- "description": "Call frame identifier.",
- "type": "string"
- },
- {
- "id": "Location",
- "description": "Location in the source code.",
- "type": "object",
- "properties": [
- {
- "name": "scriptId",
- "description": "Script identifier as reported in the `Debugger.scriptParsed`.",
- "$ref": "Runtime.ScriptId"
- },
- {
- "name": "lineNumber",
- "description": "Line number in the script (0-based).",
- "type": "integer"
- },
- {
- "name": "columnNumber",
- "description": "Column number in the script (0-based).",
- "optional": true,
- "type": "integer"
- }
- ]
- },
- {
- "id": "ScriptPosition",
- "description": "Location in the source code.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "lineNumber",
- "type": "integer"
- },
- {
- "name": "columnNumber",
- "type": "integer"
- }
- ]
- },
- {
- "id": "LocationRange",
- "description": "Location range within one script.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "scriptId",
- "$ref": "Runtime.ScriptId"
- },
- {
- "name": "start",
- "$ref": "ScriptPosition"
- },
- {
- "name": "end",
- "$ref": "ScriptPosition"
- }
- ]
- },
- {
- "id": "CallFrame",
- "description": "JavaScript call frame. Array of call frames form the call stack.",
- "type": "object",
- "properties": [
- {
- "name": "callFrameId",
- "description": "Call frame identifier. This identifier is only valid while the virtual machine is paused.",
- "$ref": "CallFrameId"
- },
- {
- "name": "functionName",
- "description": "Name of the JavaScript function called on this call frame.",
- "type": "string"
- },
- {
- "name": "functionLocation",
- "description": "Location in the source code.",
- "optional": true,
- "$ref": "Location"
- },
- {
- "name": "location",
- "description": "Location in the source code.",
- "$ref": "Location"
- },
- {
- "name": "url",
- "description": "JavaScript script name or url.\nDeprecated in favor of using the `location.scriptId` to resolve the URL via a previously\nsent `Debugger.scriptParsed` event.",
- "deprecated": true,
- "type": "string"
- },
- {
- "name": "scopeChain",
- "description": "Scope chain for this call frame.",
- "type": "array",
- "items": {
- "$ref": "Scope"
- }
- },
- {
- "name": "this",
- "description": "`this` object for this call frame.",
- "$ref": "Runtime.RemoteObject"
- },
- {
- "name": "returnValue",
- "description": "The value being returned, if the function is at return point.",
- "optional": true,
- "$ref": "Runtime.RemoteObject"
- },
- {
- "name": "canBeRestarted",
- "description": "Valid only while the VM is paused and indicates whether this frame\ncan be restarted or not. Note that a `true` value here does not\nguarantee that Debugger#restartFrame with this CallFrameId will be\nsuccessful, but it is very likely.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "id": "Scope",
- "description": "Scope description.",
- "type": "object",
- "properties": [
- {
- "name": "type",
- "description": "Scope type.",
- "type": "string",
- "enum": [
- "global",
- "local",
- "with",
- "closure",
- "catch",
- "block",
- "script",
- "eval",
- "module",
- "wasm-expression-stack"
- ]
- },
- {
- "name": "object",
- "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.",
- "$ref": "Runtime.RemoteObject"
- },
- {
- "name": "name",
- "optional": true,
- "type": "string"
- },
- {
- "name": "startLocation",
- "description": "Location in the source code where scope starts",
- "optional": true,
- "$ref": "Location"
- },
- {
- "name": "endLocation",
- "description": "Location in the source code where scope ends",
- "optional": true,
- "$ref": "Location"
- }
- ]
- },
- {
- "id": "SearchMatch",
- "description": "Search match for resource.",
- "type": "object",
- "properties": [
- {
- "name": "lineNumber",
- "description": "Line number in resource content.",
- "type": "number"
- },
- {
- "name": "lineContent",
- "description": "Line with match content.",
- "type": "string"
- }
- ]
- },
- {
- "id": "BreakLocation",
- "type": "object",
- "properties": [
- {
- "name": "scriptId",
- "description": "Script identifier as reported in the `Debugger.scriptParsed`.",
- "$ref": "Runtime.ScriptId"
- },
- {
- "name": "lineNumber",
- "description": "Line number in the script (0-based).",
- "type": "integer"
- },
- {
- "name": "columnNumber",
- "description": "Column number in the script (0-based).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "type",
- "optional": true,
- "type": "string",
- "enum": [
- "debuggerStatement",
- "call",
- "return"
- ]
- }
- ]
- },
- {
- "id": "WasmDisassemblyChunk",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "lines",
- "description": "The next chunk of disassembled lines.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "bytecodeOffsets",
- "description": "The bytecode offsets describing the start of each line.",
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
- },
- {
- "id": "ScriptLanguage",
- "description": "Enum of possible script languages.",
- "type": "string",
- "enum": [
- "JavaScript",
- "WebAssembly"
- ]
- },
- {
- "id": "DebugSymbols",
- "description": "Debug symbols available for a wasm script.",
- "type": "object",
- "properties": [
- {
- "name": "type",
- "description": "Type of the debug symbols.",
- "type": "string",
- "enum": [
- "None",
- "SourceMap",
- "EmbeddedDWARF",
- "ExternalDWARF"
- ]
- },
- {
- "name": "externalURL",
- "description": "URL of the external symbol source.",
- "optional": true,
- "type": "string"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "continueToLocation",
- "description": "Continues execution until specific location is reached.",
- "parameters": [
- {
- "name": "location",
- "description": "Location to continue to.",
- "$ref": "Location"
- },
- {
- "name": "targetCallFrames",
- "optional": true,
- "type": "string",
- "enum": [
- "any",
- "current"
- ]
- }
- ]
- },
- {
- "name": "disable",
- "description": "Disables debugger for given page."
- },
- {
- "name": "enable",
- "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.",
- "parameters": [
- {
- "name": "maxScriptsCacheSize",
- "description": "The maximum size in bytes of collected scripts (not referenced by other heap objects)\nthe debugger can hold. Puts no limit if parameter is omitted.",
- "experimental": true,
- "optional": true,
- "type": "number"
- }
- ],
- "returns": [
- {
- "name": "debuggerId",
- "description": "Unique identifier of the debugger.",
- "experimental": true,
- "$ref": "Runtime.UniqueDebuggerId"
- }
- ]
- },
- {
- "name": "evaluateOnCallFrame",
- "description": "Evaluates expression on a given call frame.",
- "parameters": [
- {
- "name": "callFrameId",
- "description": "Call frame identifier to evaluate on.",
- "$ref": "CallFrameId"
- },
- {
- "name": "expression",
- "description": "Expression to evaluate.",
- "type": "string"
- },
- {
- "name": "objectGroup",
- "description": "String object group name to put result into (allows rapid releasing resulting object handles\nusing `releaseObjectGroup`).",
- "optional": true,
- "type": "string"
- },
- {
- "name": "includeCommandLineAPI",
- "description": "Specifies whether command line API should be available to the evaluated expression, defaults\nto false.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "silent",
- "description": "In silent mode exceptions thrown during evaluation are not reported and do not pause\nexecution. Overrides `setPauseOnException` state.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "returnByValue",
- "description": "Whether the result is expected to be a JSON object that should be sent by value.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "generatePreview",
- "description": "Whether preview should be generated for the result.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "throwOnSideEffect",
- "description": "Whether to throw an exception if side effect cannot be ruled out during evaluation.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "timeout",
- "description": "Terminate execution after timing out (number of milliseconds).",
- "experimental": true,
- "optional": true,
- "$ref": "Runtime.TimeDelta"
- }
- ],
- "returns": [
- {
- "name": "result",
- "description": "Object wrapper for the evaluation result.",
- "$ref": "Runtime.RemoteObject"
- },
- {
- "name": "exceptionDetails",
- "description": "Exception details.",
- "optional": true,
- "$ref": "Runtime.ExceptionDetails"
- }
- ]
- },
- {
- "name": "getPossibleBreakpoints",
- "description": "Returns possible locations for breakpoint. scriptId in start and end range locations should be\nthe same.",
- "parameters": [
- {
- "name": "start",
- "description": "Start of range to search possible breakpoint locations in.",
- "$ref": "Location"
- },
- {
- "name": "end",
- "description": "End of range to search possible breakpoint locations in (excluding). When not specified, end\nof scripts is used as end of range.",
- "optional": true,
- "$ref": "Location"
- },
- {
- "name": "restrictToFunction",
- "description": "Only consider locations which are in the same (non-nested) function as start.",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "locations",
- "description": "List of the possible breakpoint locations.",
- "type": "array",
- "items": {
- "$ref": "BreakLocation"
- }
- }
- ]
- },
- {
- "name": "getScriptSource",
- "description": "Returns source for the script with given id.",
- "parameters": [
- {
- "name": "scriptId",
- "description": "Id of the script to get source for.",
- "$ref": "Runtime.ScriptId"
- }
- ],
- "returns": [
- {
- "name": "scriptSource",
- "description": "Script source (empty in case of Wasm bytecode).",
- "type": "string"
- },
- {
- "name": "bytecode",
- "description": "Wasm bytecode. (Encoded as a base64 string when passed over JSON)",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "disassembleWasmModule",
- "experimental": true,
- "parameters": [
- {
- "name": "scriptId",
- "description": "Id of the script to disassemble",
- "$ref": "Runtime.ScriptId"
- }
- ],
- "returns": [
- {
- "name": "streamId",
- "description": "For large modules, return a stream from which additional chunks of\ndisassembly can be read successively.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "totalNumberOfLines",
- "description": "The total number of lines in the disassembly text.",
- "type": "integer"
- },
- {
- "name": "functionBodyOffsets",
- "description": "The offsets of all function bodies, in the format [start1, end1,\nstart2, end2, ...] where all ends are exclusive.",
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "name": "chunk",
- "description": "The first chunk of disassembly.",
- "$ref": "WasmDisassemblyChunk"
- }
- ]
- },
- {
- "name": "nextWasmDisassemblyChunk",
- "description": "Disassemble the next chunk of lines for the module corresponding to the\nstream. If disassembly is complete, this API will invalidate the streamId\nand return an empty chunk. Any subsequent calls for the now invalid stream\nwill return errors.",
- "experimental": true,
- "parameters": [
- {
- "name": "streamId",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "chunk",
- "description": "The next chunk of disassembly.",
- "$ref": "WasmDisassemblyChunk"
- }
- ]
- },
- {
- "name": "getWasmBytecode",
- "description": "This command is deprecated. Use getScriptSource instead.",
- "deprecated": true,
- "parameters": [
- {
- "name": "scriptId",
- "description": "Id of the Wasm script to get source for.",
- "$ref": "Runtime.ScriptId"
- }
- ],
- "returns": [
- {
- "name": "bytecode",
- "description": "Script source. (Encoded as a base64 string when passed over JSON)",
- "type": "string"
- }
- ]
- },
- {
- "name": "getStackTrace",
- "description": "Returns stack trace with given `stackTraceId`.",
- "experimental": true,
- "parameters": [
- {
- "name": "stackTraceId",
- "$ref": "Runtime.StackTraceId"
- }
- ],
- "returns": [
- {
- "name": "stackTrace",
- "$ref": "Runtime.StackTrace"
- }
- ]
- },
- {
- "name": "pause",
- "description": "Stops on the next JavaScript statement."
- },
- {
- "name": "pauseOnAsyncCall",
- "experimental": true,
- "deprecated": true,
- "parameters": [
- {
- "name": "parentStackTraceId",
- "description": "Debugger will pause when async call with given stack trace is started.",
- "$ref": "Runtime.StackTraceId"
- }
- ]
- },
- {
- "name": "removeBreakpoint",
- "description": "Removes JavaScript breakpoint.",
- "parameters": [
- {
- "name": "breakpointId",
- "$ref": "BreakpointId"
- }
- ]
- },
- {
- "name": "restartFrame",
- "description": "Restarts particular call frame from the beginning. The old, deprecated\nbehavior of `restartFrame` is to stay paused and allow further CDP commands\nafter a restart was scheduled. This can cause problems with restarting, so\nwe now continue execution immediatly after it has been scheduled until we\nreach the beginning of the restarted frame.\n\nTo stay back-wards compatible, `restartFrame` now expects a `mode`\nparameter to be present. If the `mode` parameter is missing, `restartFrame`\nerrors out.\n\nThe various return values are deprecated and `callFrames` is always empty.\nUse the call frames from the `Debugger#paused` events instead, that fires\nonce V8 pauses at the beginning of the restarted function.",
- "parameters": [
- {
- "name": "callFrameId",
- "description": "Call frame identifier to evaluate on.",
- "$ref": "CallFrameId"
- },
- {
- "name": "mode",
- "description": "The `mode` parameter must be present and set to 'StepInto', otherwise\n`restartFrame` will error out.",
- "experimental": true,
- "optional": true,
- "type": "string",
- "enum": [
- "StepInto"
- ]
- }
- ],
- "returns": [
- {
- "name": "callFrames",
- "description": "New stack trace.",
- "deprecated": true,
- "type": "array",
- "items": {
- "$ref": "CallFrame"
- }
- },
- {
- "name": "asyncStackTrace",
- "description": "Async stack trace, if any.",
- "deprecated": true,
- "optional": true,
- "$ref": "Runtime.StackTrace"
- },
- {
- "name": "asyncStackTraceId",
- "description": "Async stack trace, if any.",
- "deprecated": true,
- "optional": true,
- "$ref": "Runtime.StackTraceId"
- }
- ]
- },
- {
- "name": "resume",
- "description": "Resumes JavaScript execution.",
- "parameters": [
- {
- "name": "terminateOnResume",
- "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.",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "searchInContent",
- "description": "Searches for given string in script content.",
- "parameters": [
- {
- "name": "scriptId",
- "description": "Id of the script to search in.",
- "$ref": "Runtime.ScriptId"
- },
- {
- "name": "query",
- "description": "String to search for.",
- "type": "string"
- },
- {
- "name": "caseSensitive",
- "description": "If true, search is case sensitive.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "isRegex",
- "description": "If true, treats string parameter as regex.",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "result",
- "description": "List of search matches.",
- "type": "array",
- "items": {
- "$ref": "SearchMatch"
- }
- }
- ]
- },
- {
- "name": "setAsyncCallStackDepth",
- "description": "Enables or disables async call stacks tracking.",
- "parameters": [
- {
- "name": "maxDepth",
- "description": "Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async\ncall stacks (default).",
- "type": "integer"
- }
- ]
- },
- {
- "name": "setBlackboxPatterns",
- "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.",
- "experimental": true,
- "parameters": [
- {
- "name": "patterns",
- "description": "Array of regexps that will be used to check script url for blackbox state.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "name": "setBlackboxedRanges",
- "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.",
- "experimental": true,
- "parameters": [
- {
- "name": "scriptId",
- "description": "Id of the script.",
- "$ref": "Runtime.ScriptId"
- },
- {
- "name": "positions",
- "type": "array",
- "items": {
- "$ref": "ScriptPosition"
- }
- }
- ]
- },
- {
- "name": "setBreakpoint",
- "description": "Sets JavaScript breakpoint at a given location.",
- "parameters": [
- {
- "name": "location",
- "description": "Location to set breakpoint in.",
- "$ref": "Location"
- },
- {
- "name": "condition",
- "description": "Expression to use as a breakpoint condition. When specified, debugger will only stop on the\nbreakpoint if this expression evaluates to true.",
- "optional": true,
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "breakpointId",
- "description": "Id of the created breakpoint for further reference.",
- "$ref": "BreakpointId"
- },
- {
- "name": "actualLocation",
- "description": "Location this breakpoint resolved into.",
- "$ref": "Location"
- }
- ]
- },
- {
- "name": "setInstrumentationBreakpoint",
- "description": "Sets instrumentation breakpoint.",
- "parameters": [
- {
- "name": "instrumentation",
- "description": "Instrumentation name.",
- "type": "string",
- "enum": [
- "beforeScriptExecution",
- "beforeScriptWithSourceMapExecution"
- ]
- }
- ],
- "returns": [
- {
- "name": "breakpointId",
- "description": "Id of the created breakpoint for further reference.",
- "$ref": "BreakpointId"
- }
- ]
- },
- {
- "name": "setBreakpointByUrl",
- "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.",
- "parameters": [
- {
- "name": "lineNumber",
- "description": "Line number to set breakpoint at.",
- "type": "integer"
- },
- {
- "name": "url",
- "description": "URL of the resources to set breakpoint on.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "urlRegex",
- "description": "Regex pattern for the URLs of the resources to set breakpoints on. Either `url` or\n`urlRegex` must be specified.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "scriptHash",
- "description": "Script hash of the resources to set breakpoint on.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "columnNumber",
- "description": "Offset in the line to set breakpoint at.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "condition",
- "description": "Expression to use as a breakpoint condition. When specified, debugger will only stop on the\nbreakpoint if this expression evaluates to true.",
- "optional": true,
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "breakpointId",
- "description": "Id of the created breakpoint for further reference.",
- "$ref": "BreakpointId"
- },
- {
- "name": "locations",
- "description": "List of the locations this breakpoint resolved into upon addition.",
- "type": "array",
- "items": {
- "$ref": "Location"
- }
- }
- ]
- },
- {
- "name": "setBreakpointOnFunctionCall",
- "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.",
- "experimental": true,
- "parameters": [
- {
- "name": "objectId",
- "description": "Function object id.",
- "$ref": "Runtime.RemoteObjectId"
- },
- {
- "name": "condition",
- "description": "Expression to use as a breakpoint condition. When specified, debugger will\nstop on the breakpoint if this expression evaluates to true.",
- "optional": true,
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "breakpointId",
- "description": "Id of the created breakpoint for further reference.",
- "$ref": "BreakpointId"
- }
- ]
- },
- {
- "name": "setBreakpointsActive",
- "description": "Activates / deactivates all breakpoints on the page.",
- "parameters": [
- {
- "name": "active",
- "description": "New value for breakpoints active state.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setPauseOnExceptions",
- "description": "Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions,\nor caught exceptions, no exceptions. Initial pause on exceptions state is `none`.",
- "parameters": [
- {
- "name": "state",
- "description": "Pause on exceptions mode.",
- "type": "string",
- "enum": [
- "none",
- "caught",
- "uncaught",
- "all"
- ]
- }
- ]
- },
- {
- "name": "setReturnValue",
- "description": "Changes return value in top frame. Available only at return break position.",
- "experimental": true,
- "parameters": [
- {
- "name": "newValue",
- "description": "New return value.",
- "$ref": "Runtime.CallArgument"
- }
- ]
- },
- {
- "name": "setScriptSource",
- "description": "Edits JavaScript source live.\n\nIn general, functions that are currently on the stack can not be edited with\na single exception: If the edited function is the top-most stack frame and\nthat is the only activation of that function on the stack. In this case\nthe live edit will be successful and a `Debugger.restartFrame` for the\ntop-most function is automatically triggered.",
- "parameters": [
- {
- "name": "scriptId",
- "description": "Id of the script to edit.",
- "$ref": "Runtime.ScriptId"
- },
- {
- "name": "scriptSource",
- "description": "New content of the script.",
- "type": "string"
- },
- {
- "name": "dryRun",
- "description": "If true the change will not actually be applied. Dry run may be used to get result\ndescription without actually modifying the code.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "allowTopFrameEditing",
- "description": "If true, then `scriptSource` is allowed to change the function on top of the stack\nas long as the top-most stack frame is the only activation of that function.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "callFrames",
- "description": "New stack trace in case editing has happened while VM was stopped.",
- "deprecated": true,
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "CallFrame"
- }
- },
- {
- "name": "stackChanged",
- "description": "Whether current call stack was modified after applying the changes.",
- "deprecated": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "asyncStackTrace",
- "description": "Async stack trace, if any.",
- "deprecated": true,
- "optional": true,
- "$ref": "Runtime.StackTrace"
- },
- {
- "name": "asyncStackTraceId",
- "description": "Async stack trace, if any.",
- "deprecated": true,
- "optional": true,
- "$ref": "Runtime.StackTraceId"
- },
- {
- "name": "status",
- "description": "Whether the operation was successful or not. Only `Ok` denotes a\nsuccessful live edit while the other enum variants denote why\nthe live edit failed.",
- "experimental": true,
- "type": "string",
- "enum": [
- "Ok",
- "CompileError",
- "BlockedByActiveGenerator",
- "BlockedByActiveFunction",
- "BlockedByTopLevelEsModuleChange"
- ]
- },
- {
- "name": "exceptionDetails",
- "description": "Exception details if any. Only present when `status` is `CompileError`.",
- "optional": true,
- "$ref": "Runtime.ExceptionDetails"
- }
- ]
- },
- {
- "name": "setSkipAllPauses",
- "description": "Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).",
- "parameters": [
- {
- "name": "skip",
- "description": "New value for skip pauses state.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setVariableValue",
- "description": "Changes value of variable in a callframe. Object-based scopes are not supported and must be\nmutated manually.",
- "parameters": [
- {
- "name": "scopeNumber",
- "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.",
- "type": "integer"
- },
- {
- "name": "variableName",
- "description": "Variable name.",
- "type": "string"
- },
- {
- "name": "newValue",
- "description": "New variable value.",
- "$ref": "Runtime.CallArgument"
- },
- {
- "name": "callFrameId",
- "description": "Id of callframe that holds variable.",
- "$ref": "CallFrameId"
- }
- ]
- },
- {
- "name": "stepInto",
- "description": "Steps into the function call.",
- "parameters": [
- {
- "name": "breakOnAsyncCall",
- "description": "Debugger will pause on the execution of the first async task which was scheduled\nbefore next pause.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "skipList",
- "description": "The skipList specifies location ranges that should be skipped on step into.",
- "experimental": true,
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "LocationRange"
- }
- }
- ]
- },
- {
- "name": "stepOut",
- "description": "Steps out of the function call."
- },
- {
- "name": "stepOver",
- "description": "Steps over the statement.",
- "parameters": [
- {
- "name": "skipList",
- "description": "The skipList specifies location ranges that should be skipped on step over.",
- "experimental": true,
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "LocationRange"
- }
- }
- ]
- }
- ],
- "events": [
- {
- "name": "breakpointResolved",
- "description": "Fired when breakpoint is resolved to an actual script and location.",
- "parameters": [
- {
- "name": "breakpointId",
- "description": "Breakpoint unique identifier.",
- "$ref": "BreakpointId"
- },
- {
- "name": "location",
- "description": "Actual breakpoint location.",
- "$ref": "Location"
- }
- ]
- },
- {
- "name": "paused",
- "description": "Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.",
- "parameters": [
- {
- "name": "callFrames",
- "description": "Call stack the virtual machine stopped on.",
- "type": "array",
- "items": {
- "$ref": "CallFrame"
- }
- },
- {
- "name": "reason",
- "description": "Pause reason.",
- "type": "string",
- "enum": [
- "ambiguous",
- "assert",
- "CSPViolation",
- "debugCommand",
- "DOM",
- "EventListener",
- "exception",
- "instrumentation",
- "OOM",
- "other",
- "promiseRejection",
- "XHR",
- "step"
- ]
- },
- {
- "name": "data",
- "description": "Object containing break-specific auxiliary properties.",
- "optional": true,
- "type": "object"
- },
- {
- "name": "hitBreakpoints",
- "description": "Hit breakpoints IDs",
- "optional": true,
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "asyncStackTrace",
- "description": "Async stack trace, if any.",
- "optional": true,
- "$ref": "Runtime.StackTrace"
- },
- {
- "name": "asyncStackTraceId",
- "description": "Async stack trace, if any.",
- "experimental": true,
- "optional": true,
- "$ref": "Runtime.StackTraceId"
- },
- {
- "name": "asyncCallStackTraceId",
- "description": "Never present, will be removed.",
- "experimental": true,
- "deprecated": true,
- "optional": true,
- "$ref": "Runtime.StackTraceId"
- }
- ]
- },
- {
- "name": "resumed",
- "description": "Fired when the virtual machine resumed execution."
- },
- {
- "name": "scriptFailedToParse",
- "description": "Fired when virtual machine fails to parse the script.",
- "parameters": [
- {
- "name": "scriptId",
- "description": "Identifier of the script parsed.",
- "$ref": "Runtime.ScriptId"
- },
- {
- "name": "url",
- "description": "URL or name of the script parsed (if any).",
- "type": "string"
- },
- {
- "name": "startLine",
- "description": "Line offset of the script within the resource with given URL (for script tags).",
- "type": "integer"
- },
- {
- "name": "startColumn",
- "description": "Column offset of the script within the resource with given URL.",
- "type": "integer"
- },
- {
- "name": "endLine",
- "description": "Last line of the script.",
- "type": "integer"
- },
- {
- "name": "endColumn",
- "description": "Length of the last line of the script.",
- "type": "integer"
- },
- {
- "name": "executionContextId",
- "description": "Specifies script creation context.",
- "$ref": "Runtime.ExecutionContextId"
- },
- {
- "name": "hash",
- "description": "Content hash of the script, SHA-256.",
- "type": "string"
- },
- {
- "name": "executionContextAuxData",
- "description": "Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}",
- "optional": true,
- "type": "object"
- },
- {
- "name": "sourceMapURL",
- "description": "URL of source map associated with script (if any).",
- "optional": true,
- "type": "string"
- },
- {
- "name": "hasSourceURL",
- "description": "True, if this script has sourceURL.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "isModule",
- "description": "True, if this script is ES6 module.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "length",
- "description": "This script length.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "stackTrace",
- "description": "JavaScript top stack frame of where the script parsed event was triggered if available.",
- "experimental": true,
- "optional": true,
- "$ref": "Runtime.StackTrace"
- },
- {
- "name": "codeOffset",
- "description": "If the scriptLanguage is WebAssembly, the code section offset in the module.",
- "experimental": true,
- "optional": true,
- "type": "integer"
- },
- {
- "name": "scriptLanguage",
- "description": "The language of the script.",
- "experimental": true,
- "optional": true,
- "$ref": "Debugger.ScriptLanguage"
- },
- {
- "name": "embedderName",
- "description": "The name the embedder supplied for this script.",
- "experimental": true,
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "scriptParsed",
- "description": "Fired when virtual machine parses script. This event is also fired for all known and uncollected\nscripts upon enabling debugger.",
- "parameters": [
- {
- "name": "scriptId",
- "description": "Identifier of the script parsed.",
- "$ref": "Runtime.ScriptId"
- },
- {
- "name": "url",
- "description": "URL or name of the script parsed (if any).",
- "type": "string"
- },
- {
- "name": "startLine",
- "description": "Line offset of the script within the resource with given URL (for script tags).",
- "type": "integer"
- },
- {
- "name": "startColumn",
- "description": "Column offset of the script within the resource with given URL.",
- "type": "integer"
- },
- {
- "name": "endLine",
- "description": "Last line of the script.",
- "type": "integer"
- },
- {
- "name": "endColumn",
- "description": "Length of the last line of the script.",
- "type": "integer"
- },
- {
- "name": "executionContextId",
- "description": "Specifies script creation context.",
- "$ref": "Runtime.ExecutionContextId"
- },
- {
- "name": "hash",
- "description": "Content hash of the script, SHA-256.",
- "type": "string"
- },
- {
- "name": "executionContextAuxData",
- "description": "Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}",
- "optional": true,
- "type": "object"
- },
- {
- "name": "isLiveEdit",
- "description": "True, if this script is generated as a result of the live edit operation.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "sourceMapURL",
- "description": "URL of source map associated with script (if any).",
- "optional": true,
- "type": "string"
- },
- {
- "name": "hasSourceURL",
- "description": "True, if this script has sourceURL.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "isModule",
- "description": "True, if this script is ES6 module.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "length",
- "description": "This script length.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "stackTrace",
- "description": "JavaScript top stack frame of where the script parsed event was triggered if available.",
- "experimental": true,
- "optional": true,
- "$ref": "Runtime.StackTrace"
- },
- {
- "name": "codeOffset",
- "description": "If the scriptLanguage is WebAssembly, the code section offset in the module.",
- "experimental": true,
- "optional": true,
- "type": "integer"
- },
- {
- "name": "scriptLanguage",
- "description": "The language of the script.",
- "experimental": true,
- "optional": true,
- "$ref": "Debugger.ScriptLanguage"
- },
- {
- "name": "debugSymbols",
- "description": "If the scriptLanguage is WebASsembly, the source of debug symbols for the module.",
- "experimental": true,
- "optional": true,
- "$ref": "Debugger.DebugSymbols"
- },
- {
- "name": "embedderName",
- "description": "The name the embedder supplied for this script.",
- "experimental": true,
- "optional": true,
- "type": "string"
- }
- ]
- }
- ]
- },
- {
- "domain": "HeapProfiler",
- "experimental": true,
- "dependencies": [
- "Runtime"
- ],
- "types": [
- {
- "id": "HeapSnapshotObjectId",
- "description": "Heap snapshot object id.",
- "type": "string"
- },
- {
- "id": "SamplingHeapProfileNode",
- "description": "Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.",
- "type": "object",
- "properties": [
- {
- "name": "callFrame",
- "description": "Function location.",
- "$ref": "Runtime.CallFrame"
- },
- {
- "name": "selfSize",
- "description": "Allocations size in bytes for the node excluding children.",
- "type": "number"
- },
- {
- "name": "id",
- "description": "Node id. Ids are unique across all profiles collected between startSampling and stopSampling.",
- "type": "integer"
- },
- {
- "name": "children",
- "description": "Child nodes.",
- "type": "array",
- "items": {
- "$ref": "SamplingHeapProfileNode"
- }
- }
- ]
- },
- {
- "id": "SamplingHeapProfileSample",
- "description": "A single sample from a sampling profile.",
- "type": "object",
- "properties": [
- {
- "name": "size",
- "description": "Allocation size in bytes attributed to the sample.",
- "type": "number"
- },
- {
- "name": "nodeId",
- "description": "Id of the corresponding profile tree node.",
- "type": "integer"
- },
- {
- "name": "ordinal",
- "description": "Time-ordered sample ordinal number. It is unique across all profiles retrieved\nbetween startSampling and stopSampling.",
- "type": "number"
- }
- ]
- },
- {
- "id": "SamplingHeapProfile",
- "description": "Sampling profile.",
- "type": "object",
- "properties": [
- {
- "name": "head",
- "$ref": "SamplingHeapProfileNode"
- },
- {
- "name": "samples",
- "type": "array",
- "items": {
- "$ref": "SamplingHeapProfileSample"
- }
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "addInspectedHeapObject",
- "description": "Enables console to refer to the node with given id via $x (see Command Line API for more details\n$x functions).",
- "parameters": [
- {
- "name": "heapObjectId",
- "description": "Heap snapshot object id to be accessible by means of $x command line API.",
- "$ref": "HeapSnapshotObjectId"
- }
- ]
- },
- {
- "name": "collectGarbage"
- },
- {
- "name": "disable"
- },
- {
- "name": "enable"
- },
- {
- "name": "getHeapObjectId",
- "parameters": [
- {
- "name": "objectId",
- "description": "Identifier of the object to get heap object id for.",
- "$ref": "Runtime.RemoteObjectId"
- }
- ],
- "returns": [
- {
- "name": "heapSnapshotObjectId",
- "description": "Id of the heap snapshot object corresponding to the passed remote object id.",
- "$ref": "HeapSnapshotObjectId"
- }
- ]
- },
- {
- "name": "getObjectByHeapObjectId",
- "parameters": [
- {
- "name": "objectId",
- "$ref": "HeapSnapshotObjectId"
- },
- {
- "name": "objectGroup",
- "description": "Symbolic group name that can be used to release multiple objects.",
- "optional": true,
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "result",
- "description": "Evaluation result.",
- "$ref": "Runtime.RemoteObject"
- }
- ]
- },
- {
- "name": "getSamplingProfile",
- "returns": [
- {
- "name": "profile",
- "description": "Return the sampling profile being collected.",
- "$ref": "SamplingHeapProfile"
- }
- ]
- },
- {
- "name": "startSampling",
- "parameters": [
- {
- "name": "samplingInterval",
- "description": "Average sample interval in bytes. Poisson distribution is used for the intervals. The\ndefault value is 32768 bytes.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "includeObjectsCollectedByMajorGC",
- "description": "By default, the sampling heap profiler reports only objects which are\nstill alive when the profile is returned via getSamplingProfile or\nstopSampling, which is useful for determining what functions contribute\nthe most to steady-state memory usage. This flag instructs the sampling\nheap profiler to also include information about objects discarded by\nmajor GC, which will show which functions cause large temporary memory\nusage or long GC pauses.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "includeObjectsCollectedByMinorGC",
- "description": "By default, the sampling heap profiler reports only objects which are\nstill alive when the profile is returned via getSamplingProfile or\nstopSampling, which is useful for determining what functions contribute\nthe most to steady-state memory usage. This flag instructs the sampling\nheap profiler to also include information about objects discarded by\nminor GC, which is useful when tuning a latency-sensitive application\nfor minimal GC activity.",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "startTrackingHeapObjects",
- "parameters": [
- {
- "name": "trackAllocations",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "stopSampling",
- "returns": [
- {
- "name": "profile",
- "description": "Recorded sampling heap profile.",
- "$ref": "SamplingHeapProfile"
- }
- ]
- },
- {
- "name": "stopTrackingHeapObjects",
- "parameters": [
- {
- "name": "reportProgress",
- "description": "If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken\nwhen the tracking is stopped.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "treatGlobalObjectsAsRoots",
- "description": "Deprecated in favor of `exposeInternals`.",
- "deprecated": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "captureNumericValue",
- "description": "If true, numerical values are included in the snapshot",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "exposeInternals",
- "description": "If true, exposes internals of the snapshot.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "takeHeapSnapshot",
- "parameters": [
- {
- "name": "reportProgress",
- "description": "If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "treatGlobalObjectsAsRoots",
- "description": "If true, a raw snapshot without artificial roots will be generated.\nDeprecated in favor of `exposeInternals`.",
- "deprecated": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "captureNumericValue",
- "description": "If true, numerical values are included in the snapshot",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "exposeInternals",
- "description": "If true, exposes internals of the snapshot.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "addHeapSnapshotChunk",
- "parameters": [
- {
- "name": "chunk",
- "type": "string"
- }
- ]
- },
- {
- "name": "heapStatsUpdate",
- "description": "If heap objects tracking has been started then backend may send update for one or more fragments",
- "parameters": [
- {
- "name": "statsUpdate",
- "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.",
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
- },
- {
- "name": "lastSeenObjectId",
- "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.",
- "parameters": [
- {
- "name": "lastSeenObjectId",
- "type": "integer"
- },
- {
- "name": "timestamp",
- "type": "number"
- }
- ]
- },
- {
- "name": "reportHeapSnapshotProgress",
- "parameters": [
- {
- "name": "done",
- "type": "integer"
- },
- {
- "name": "total",
- "type": "integer"
- },
- {
- "name": "finished",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "resetProfiles"
- }
- ]
- },
- {
- "domain": "Profiler",
- "dependencies": [
- "Runtime",
- "Debugger"
- ],
- "types": [
- {
- "id": "ProfileNode",
- "description": "Profile node. Holds callsite information, execution statistics and child nodes.",
- "type": "object",
- "properties": [
- {
- "name": "id",
- "description": "Unique id of the node.",
- "type": "integer"
- },
- {
- "name": "callFrame",
- "description": "Function location.",
- "$ref": "Runtime.CallFrame"
- },
- {
- "name": "hitCount",
- "description": "Number of samples where this node was on top of the call stack.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "children",
- "description": "Child node ids.",
- "optional": true,
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "name": "deoptReason",
- "description": "The reason of being not optimized. The function may be deoptimized or marked as don't\noptimize.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "positionTicks",
- "description": "An array of source position ticks.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "PositionTickInfo"
- }
- }
- ]
- },
- {
- "id": "Profile",
- "description": "Profile.",
- "type": "object",
- "properties": [
- {
- "name": "nodes",
- "description": "The list of profile nodes. First item is the root node.",
- "type": "array",
- "items": {
- "$ref": "ProfileNode"
- }
- },
- {
- "name": "startTime",
- "description": "Profiling start timestamp in microseconds.",
- "type": "number"
- },
- {
- "name": "endTime",
- "description": "Profiling end timestamp in microseconds.",
- "type": "number"
- },
- {
- "name": "samples",
- "description": "Ids of samples top nodes.",
- "optional": true,
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "name": "timeDeltas",
- "description": "Time intervals between adjacent samples in microseconds. The first delta is relative to the\nprofile startTime.",
- "optional": true,
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
- },
- {
- "id": "PositionTickInfo",
- "description": "Specifies a number of samples attributed to a certain source position.",
- "type": "object",
- "properties": [
- {
- "name": "line",
- "description": "Source line number (1-based).",
- "type": "integer"
- },
- {
- "name": "ticks",
- "description": "Number of samples attributed to the source line.",
- "type": "integer"
- }
- ]
- },
- {
- "id": "CoverageRange",
- "description": "Coverage data for a source range.",
- "type": "object",
- "properties": [
- {
- "name": "startOffset",
- "description": "JavaScript script source offset for the range start.",
- "type": "integer"
- },
- {
- "name": "endOffset",
- "description": "JavaScript script source offset for the range end.",
- "type": "integer"
- },
- {
- "name": "count",
- "description": "Collected execution count of the source range.",
- "type": "integer"
- }
- ]
- },
- {
- "id": "FunctionCoverage",
- "description": "Coverage data for a JavaScript function.",
- "type": "object",
- "properties": [
- {
- "name": "functionName",
- "description": "JavaScript function name.",
- "type": "string"
- },
- {
- "name": "ranges",
- "description": "Source ranges inside the function with coverage data.",
- "type": "array",
- "items": {
- "$ref": "CoverageRange"
- }
- },
- {
- "name": "isBlockCoverage",
- "description": "Whether coverage data for this function has block granularity.",
- "type": "boolean"
- }
- ]
- },
- {
- "id": "ScriptCoverage",
- "description": "Coverage data for a JavaScript script.",
- "type": "object",
- "properties": [
- {
- "name": "scriptId",
- "description": "JavaScript script id.",
- "$ref": "Runtime.ScriptId"
- },
- {
- "name": "url",
- "description": "JavaScript script name or url.",
- "type": "string"
- },
- {
- "name": "functions",
- "description": "Functions contained in the script that has coverage data.",
- "type": "array",
- "items": {
- "$ref": "FunctionCoverage"
- }
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "disable"
- },
- {
- "name": "enable"
- },
- {
- "name": "getBestEffortCoverage",
- "description": "Collect coverage data for the current isolate. The coverage data may be incomplete due to\ngarbage collection.",
- "returns": [
- {
- "name": "result",
- "description": "Coverage data for the current isolate.",
- "type": "array",
- "items": {
- "$ref": "ScriptCoverage"
- }
- }
- ]
- },
- {
- "name": "setSamplingInterval",
- "description": "Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.",
- "parameters": [
- {
- "name": "interval",
- "description": "New sampling interval in microseconds.",
- "type": "integer"
- }
- ]
- },
- {
- "name": "start"
- },
- {
- "name": "startPreciseCoverage",
- "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.",
- "parameters": [
- {
- "name": "callCount",
- "description": "Collect accurate call counts beyond simple 'covered' or 'not covered'.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "detailed",
- "description": "Collect block-based coverage.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "allowTriggeredUpdates",
- "description": "Allow the backend to send updates on its own initiative",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "timestamp",
- "description": "Monotonically increasing time (in seconds) when the coverage update was taken in the backend.",
- "type": "number"
- }
- ]
- },
- {
- "name": "stop",
- "returns": [
- {
- "name": "profile",
- "description": "Recorded profile.",
- "$ref": "Profile"
- }
- ]
- },
- {
- "name": "stopPreciseCoverage",
- "description": "Disable precise code coverage. Disabling releases unnecessary execution count records and allows\nexecuting optimized code."
- },
- {
- "name": "takePreciseCoverage",
- "description": "Collect coverage data for the current isolate, and resets execution counters. Precise code\ncoverage needs to have started.",
- "returns": [
- {
- "name": "result",
- "description": "Coverage data for the current isolate.",
- "type": "array",
- "items": {
- "$ref": "ScriptCoverage"
- }
- },
- {
- "name": "timestamp",
- "description": "Monotonically increasing time (in seconds) when the coverage update was taken in the backend.",
- "type": "number"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "consoleProfileFinished",
- "parameters": [
- {
- "name": "id",
- "type": "string"
- },
- {
- "name": "location",
- "description": "Location of console.profileEnd().",
- "$ref": "Debugger.Location"
- },
- {
- "name": "profile",
- "$ref": "Profile"
- },
- {
- "name": "title",
- "description": "Profile title passed as an argument to console.profile().",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "consoleProfileStarted",
- "description": "Sent when new profile recording is started using console.profile() call.",
- "parameters": [
- {
- "name": "id",
- "type": "string"
- },
- {
- "name": "location",
- "description": "Location of console.profile().",
- "$ref": "Debugger.Location"
- },
- {
- "name": "title",
- "description": "Profile title passed as an argument to console.profile().",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "preciseCoverageDeltaUpdate",
- "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 immediately at a certain point in time.",
- "experimental": true,
- "parameters": [
- {
- "name": "timestamp",
- "description": "Monotonically increasing time (in seconds) when the coverage update was taken in the backend.",
- "type": "number"
- },
- {
- "name": "occasion",
- "description": "Identifier for distinguishing coverage events.",
- "type": "string"
- },
- {
- "name": "result",
- "description": "Coverage data for the current isolate.",
- "type": "array",
- "items": {
- "$ref": "ScriptCoverage"
- }
- }
- ]
- }
- ]
- },
- {
- "domain": "Runtime",
- "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.",
- "types": [
- {
- "id": "ScriptId",
- "description": "Unique script identifier.",
- "type": "string"
- },
- {
- "id": "SerializationOptions",
- "description": "Represents options for serialization. Overrides `generatePreview`, `returnByValue` and\n`generateWebDriverValue`.",
- "type": "object",
- "properties": [
- {
- "name": "serialization",
- "type": "string",
- "enum": [
- "deep",
- "json",
- "idOnly"
- ]
- },
- {
- "name": "maxDepth",
- "description": "Deep serialization depth. Default is full depth. Respected only in `deep` serialization mode.",
- "optional": true,
- "type": "integer"
- }
- ]
- },
- {
- "id": "DeepSerializedValue",
- "description": "Represents deep serialized value.",
- "type": "object",
- "properties": [
- {
- "name": "type",
- "type": "string",
- "enum": [
- "undefined",
- "null",
- "string",
- "number",
- "boolean",
- "bigint",
- "regexp",
- "date",
- "symbol",
- "array",
- "object",
- "function",
- "map",
- "set",
- "weakmap",
- "weakset",
- "error",
- "proxy",
- "promise",
- "typedarray",
- "arraybuffer",
- "node",
- "window"
- ]
- },
- {
- "name": "value",
- "optional": true,
- "type": "any"
- },
- {
- "name": "objectId",
- "optional": true,
- "type": "string"
- },
- {
- "name": "weakLocalObjectReference",
- "description": "Set if value reference met more then once during serialization. In such\ncase, value is provided only to one of the serialized values. Unique\nper value in the scope of one CDP call.",
- "optional": true,
- "type": "integer"
- }
- ]
- },
- {
- "id": "RemoteObjectId",
- "description": "Unique object identifier.",
- "type": "string"
- },
- {
- "id": "UnserializableValue",
- "description": "Primitive value which cannot be JSON-stringified. Includes values `-0`, `NaN`, `Infinity`,\n`-Infinity`, and bigint literals.",
- "type": "string"
- },
- {
- "id": "RemoteObject",
- "description": "Mirror object referencing original JavaScript object.",
- "type": "object",
- "properties": [
- {
- "name": "type",
- "description": "Object type.",
- "type": "string",
- "enum": [
- "object",
- "function",
- "undefined",
- "string",
- "number",
- "boolean",
- "symbol",
- "bigint"
- ]
- },
- {
- "name": "subtype",
- "description": "Object subtype hint. Specified for `object` type values only.\nNOTE: If you change anything here, make sure to also update\n`subtype` in `ObjectPreview` and `PropertyPreview` below.",
- "optional": true,
- "type": "string",
- "enum": [
- "array",
- "null",
- "node",
- "regexp",
- "date",
- "map",
- "set",
- "weakmap",
- "weakset",
- "iterator",
- "generator",
- "error",
- "proxy",
- "promise",
- "typedarray",
- "arraybuffer",
- "dataview",
- "webassemblymemory",
- "wasmvalue"
- ]
- },
- {
- "name": "className",
- "description": "Object class (constructor) name. Specified for `object` type values only.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "value",
- "description": "Remote object value in case of primitive values or JSON values (if it was requested).",
- "optional": true,
- "type": "any"
- },
- {
- "name": "unserializableValue",
- "description": "Primitive value which can not be JSON-stringified does not have `value`, but gets this\nproperty.",
- "optional": true,
- "$ref": "UnserializableValue"
- },
- {
- "name": "description",
- "description": "String representation of the object.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "webDriverValue",
- "description": "Deprecated. Use `deepSerializedValue` instead. WebDriver BiDi representation of the value.",
- "deprecated": true,
- "optional": true,
- "$ref": "DeepSerializedValue"
- },
- {
- "name": "deepSerializedValue",
- "description": "Deep serialized value.",
- "experimental": true,
- "optional": true,
- "$ref": "DeepSerializedValue"
- },
- {
- "name": "objectId",
- "description": "Unique object identifier (for non-primitive values).",
- "optional": true,
- "$ref": "RemoteObjectId"
- },
- {
- "name": "preview",
- "description": "Preview containing abbreviated property values. Specified for `object` type values only.",
- "experimental": true,
- "optional": true,
- "$ref": "ObjectPreview"
- },
- {
- "name": "customPreview",
- "experimental": true,
- "optional": true,
- "$ref": "CustomPreview"
- }
- ]
- },
- {
- "id": "CustomPreview",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "header",
- "description": "The JSON-stringified result of formatter.header(object, config) call.\nIt contains json ML array that represents RemoteObject.",
- "type": "string"
- },
- {
- "name": "bodyGetterId",
- "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.",
- "optional": true,
- "$ref": "RemoteObjectId"
- }
- ]
- },
- {
- "id": "ObjectPreview",
- "description": "Object containing abbreviated remote object value.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "type",
- "description": "Object type.",
- "type": "string",
- "enum": [
- "object",
- "function",
- "undefined",
- "string",
- "number",
- "boolean",
- "symbol",
- "bigint"
- ]
- },
- {
- "name": "subtype",
- "description": "Object subtype hint. Specified for `object` type values only.",
- "optional": true,
- "type": "string",
- "enum": [
- "array",
- "null",
- "node",
- "regexp",
- "date",
- "map",
- "set",
- "weakmap",
- "weakset",
- "iterator",
- "generator",
- "error",
- "proxy",
- "promise",
- "typedarray",
- "arraybuffer",
- "dataview",
- "webassemblymemory",
- "wasmvalue"
- ]
- },
- {
- "name": "description",
- "description": "String representation of the object.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "overflow",
- "description": "True iff some of the properties or entries of the original object did not fit.",
- "type": "boolean"
- },
- {
- "name": "properties",
- "description": "List of the properties.",
- "type": "array",
- "items": {
- "$ref": "PropertyPreview"
- }
- },
- {
- "name": "entries",
- "description": "List of the entries. Specified for `map` and `set` subtype values only.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "EntryPreview"
- }
- }
- ]
- },
- {
- "id": "PropertyPreview",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Property name.",
- "type": "string"
- },
- {
- "name": "type",
- "description": "Object type. Accessor means that the property itself is an accessor property.",
- "type": "string",
- "enum": [
- "object",
- "function",
- "undefined",
- "string",
- "number",
- "boolean",
- "symbol",
- "accessor",
- "bigint"
- ]
- },
- {
- "name": "value",
- "description": "User-friendly property value string.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "valuePreview",
- "description": "Nested value preview.",
- "optional": true,
- "$ref": "ObjectPreview"
- },
- {
- "name": "subtype",
- "description": "Object subtype hint. Specified for `object` type values only.",
- "optional": true,
- "type": "string",
- "enum": [
- "array",
- "null",
- "node",
- "regexp",
- "date",
- "map",
- "set",
- "weakmap",
- "weakset",
- "iterator",
- "generator",
- "error",
- "proxy",
- "promise",
- "typedarray",
- "arraybuffer",
- "dataview",
- "webassemblymemory",
- "wasmvalue"
- ]
- }
- ]
- },
- {
- "id": "EntryPreview",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "key",
- "description": "Preview of the key. Specified for map-like collection entries.",
- "optional": true,
- "$ref": "ObjectPreview"
- },
- {
- "name": "value",
- "description": "Preview of the value.",
- "$ref": "ObjectPreview"
- }
- ]
- },
- {
- "id": "PropertyDescriptor",
- "description": "Object property descriptor.",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Property name or symbol description.",
- "type": "string"
- },
- {
- "name": "value",
- "description": "The value associated with the property.",
- "optional": true,
- "$ref": "RemoteObject"
- },
- {
- "name": "writable",
- "description": "True if the value associated with the property may be changed (data descriptors only).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "get",
- "description": "A function which serves as a getter for the property, or `undefined` if there is no getter\n(accessor descriptors only).",
- "optional": true,
- "$ref": "RemoteObject"
- },
- {
- "name": "set",
- "description": "A function which serves as a setter for the property, or `undefined` if there is no setter\n(accessor descriptors only).",
- "optional": true,
- "$ref": "RemoteObject"
- },
- {
- "name": "configurable",
- "description": "True if the type of this property descriptor may be changed and if the property may be\ndeleted from the corresponding object.",
- "type": "boolean"
- },
- {
- "name": "enumerable",
- "description": "True if this property shows up during enumeration of the properties on the corresponding\nobject.",
- "type": "boolean"
- },
- {
- "name": "wasThrown",
- "description": "True if the result was thrown during the evaluation.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "isOwn",
- "description": "True if the property is owned for the object.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "symbol",
- "description": "Property symbol object, if the property is of the `symbol` type.",
- "optional": true,
- "$ref": "RemoteObject"
- }
- ]
- },
- {
- "id": "InternalPropertyDescriptor",
- "description": "Object internal property descriptor. This property isn't normally visible in JavaScript code.",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Conventional property name.",
- "type": "string"
- },
- {
- "name": "value",
- "description": "The value associated with the property.",
- "optional": true,
- "$ref": "RemoteObject"
- }
- ]
- },
- {
- "id": "PrivatePropertyDescriptor",
- "description": "Object private field descriptor.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Private property name.",
- "type": "string"
- },
- {
- "name": "value",
- "description": "The value associated with the private property.",
- "optional": true,
- "$ref": "RemoteObject"
- },
- {
- "name": "get",
- "description": "A function which serves as a getter for the private property,\nor `undefined` if there is no getter (accessor descriptors only).",
- "optional": true,
- "$ref": "RemoteObject"
- },
- {
- "name": "set",
- "description": "A function which serves as a setter for the private property,\nor `undefined` if there is no setter (accessor descriptors only).",
- "optional": true,
- "$ref": "RemoteObject"
- }
- ]
- },
- {
- "id": "CallArgument",
- "description": "Represents function call argument. Either remote object id `objectId`, primitive `value`,\nunserializable primitive value or neither of (for undefined) them should be specified.",
- "type": "object",
- "properties": [
- {
- "name": "value",
- "description": "Primitive value or serializable javascript object.",
- "optional": true,
- "type": "any"
- },
- {
- "name": "unserializableValue",
- "description": "Primitive value which can not be JSON-stringified.",
- "optional": true,
- "$ref": "UnserializableValue"
- },
- {
- "name": "objectId",
- "description": "Remote object handle.",
- "optional": true,
- "$ref": "RemoteObjectId"
- }
- ]
- },
- {
- "id": "ExecutionContextId",
- "description": "Id of an execution context.",
- "type": "integer"
- },
- {
- "id": "ExecutionContextDescription",
- "description": "Description of an isolated world.",
- "type": "object",
- "properties": [
- {
- "name": "id",
- "description": "Unique id of the execution context. It can be used to specify in which execution context\nscript evaluation should be performed.",
- "$ref": "ExecutionContextId"
- },
- {
- "name": "origin",
- "description": "Execution context origin.",
- "type": "string"
- },
- {
- "name": "name",
- "description": "Human readable name describing given context.",
- "type": "string"
- },
- {
- "name": "uniqueId",
- "description": "A system-unique execution context identifier. Unlike the id, this is unique across\nmultiple processes, so can be reliably used to identify specific context while backend\nperforms a cross-process navigation.",
- "experimental": true,
- "type": "string"
- },
- {
- "name": "auxData",
- "description": "Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}",
- "optional": true,
- "type": "object"
- }
- ]
- },
- {
- "id": "ExceptionDetails",
- "description": "Detailed information about exception (or error) that was thrown during script compilation or\nexecution.",
- "type": "object",
- "properties": [
- {
- "name": "exceptionId",
- "description": "Exception id.",
- "type": "integer"
- },
- {
- "name": "text",
- "description": "Exception text, which should be used together with exception object when available.",
- "type": "string"
- },
- {
- "name": "lineNumber",
- "description": "Line number of the exception location (0-based).",
- "type": "integer"
- },
- {
- "name": "columnNumber",
- "description": "Column number of the exception location (0-based).",
- "type": "integer"
- },
- {
- "name": "scriptId",
- "description": "Script ID of the exception location.",
- "optional": true,
- "$ref": "ScriptId"
- },
- {
- "name": "url",
- "description": "URL of the exception location, to be used when the script was not reported.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "stackTrace",
- "description": "JavaScript stack trace if available.",
- "optional": true,
- "$ref": "StackTrace"
- },
- {
- "name": "exception",
- "description": "Exception object if available.",
- "optional": true,
- "$ref": "RemoteObject"
- },
- {
- "name": "executionContextId",
- "description": "Identifier of the context where exception happened.",
- "optional": true,
- "$ref": "ExecutionContextId"
- },
- {
- "name": "exceptionMetaData",
- "description": "Dictionary with entries of meta data that the client associated\nwith this exception, such as information about associated network\nrequests, etc.",
- "experimental": true,
- "optional": true,
- "type": "object"
- }
- ]
- },
- {
- "id": "Timestamp",
- "description": "Number of milliseconds since epoch.",
- "type": "number"
- },
- {
- "id": "TimeDelta",
- "description": "Number of milliseconds.",
- "type": "number"
- },
- {
- "id": "CallFrame",
- "description": "Stack entry for runtime errors and assertions.",
- "type": "object",
- "properties": [
- {
- "name": "functionName",
- "description": "JavaScript function name.",
- "type": "string"
- },
- {
- "name": "scriptId",
- "description": "JavaScript script id.",
- "$ref": "ScriptId"
- },
- {
- "name": "url",
- "description": "JavaScript script name or url.",
- "type": "string"
- },
- {
- "name": "lineNumber",
- "description": "JavaScript script line number (0-based).",
- "type": "integer"
- },
- {
- "name": "columnNumber",
- "description": "JavaScript script column number (0-based).",
- "type": "integer"
- }
- ]
- },
- {
- "id": "StackTrace",
- "description": "Call frames for assertions or error messages.",
- "type": "object",
- "properties": [
- {
- "name": "description",
- "description": "String label of this stack trace. For async traces this may be a name of the function that\ninitiated the async call.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "callFrames",
- "description": "JavaScript function name.",
- "type": "array",
- "items": {
- "$ref": "CallFrame"
- }
- },
- {
- "name": "parent",
- "description": "Asynchronous JavaScript stack trace that preceded this stack, if available.",
- "optional": true,
- "$ref": "StackTrace"
- },
- {
- "name": "parentId",
- "description": "Asynchronous JavaScript stack trace that preceded this stack, if available.",
- "experimental": true,
- "optional": true,
- "$ref": "StackTraceId"
- }
- ]
- },
- {
- "id": "UniqueDebuggerId",
- "description": "Unique identifier of current debugger.",
- "experimental": true,
- "type": "string"
- },
- {
- "id": "StackTraceId",
- "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.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "id",
- "type": "string"
- },
- {
- "name": "debuggerId",
- "optional": true,
- "$ref": "UniqueDebuggerId"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "awaitPromise",
- "description": "Add handler to promise with given promise object id.",
- "parameters": [
- {
- "name": "promiseObjectId",
- "description": "Identifier of the promise.",
- "$ref": "RemoteObjectId"
- },
- {
- "name": "returnByValue",
- "description": "Whether the result is expected to be a JSON object that should be sent by value.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "generatePreview",
- "description": "Whether preview should be generated for the result.",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "result",
- "description": "Promise result. Will contain rejected value if promise was rejected.",
- "$ref": "RemoteObject"
- },
- {
- "name": "exceptionDetails",
- "description": "Exception details if stack strace is available.",
- "optional": true,
- "$ref": "ExceptionDetails"
- }
- ]
- },
- {
- "name": "callFunctionOn",
- "description": "Calls function with given declaration on the given object. Object group of the result is\ninherited from the target object.",
- "parameters": [
- {
- "name": "functionDeclaration",
- "description": "Declaration of the function to call.",
- "type": "string"
- },
- {
- "name": "objectId",
- "description": "Identifier of the object to call function on. Either objectId or executionContextId should\nbe specified.",
- "optional": true,
- "$ref": "RemoteObjectId"
- },
- {
- "name": "arguments",
- "description": "Call arguments. All call arguments must belong to the same JavaScript world as the target\nobject.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "CallArgument"
- }
- },
- {
- "name": "silent",
- "description": "In silent mode exceptions thrown during evaluation are not reported and do not pause\nexecution. Overrides `setPauseOnException` state.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "returnByValue",
- "description": "Whether the result is expected to be a JSON object which should be sent by value.\nCan be overriden by `serializationOptions`.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "generatePreview",
- "description": "Whether preview should be generated for the result.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "userGesture",
- "description": "Whether execution should be treated as initiated by user in the UI.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "awaitPromise",
- "description": "Whether execution should `await` for resulting value and return once awaited promise is\nresolved.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "executionContextId",
- "description": "Specifies execution context which global object will be used to call function on. Either\nexecutionContextId or objectId should be specified.",
- "optional": true,
- "$ref": "ExecutionContextId"
- },
- {
- "name": "objectGroup",
- "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.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "throwOnSideEffect",
- "description": "Whether to throw an exception if side effect cannot be ruled out during evaluation.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "uniqueContextId",
- "description": "An alternative way to specify the execution context to call function on.\nCompared to contextId that may be reused across processes, this is guaranteed to be\nsystem-unique, so it can be used to prevent accidental function call\nin context different than intended (e.g. as a result of navigation across process\nboundaries).\nThis is mutually exclusive with `executionContextId`.",
- "experimental": true,
- "optional": true,
- "type": "string"
- },
- {
- "name": "generateWebDriverValue",
- "description": "Deprecated. Use `serializationOptions: {serialization:\"deep\"}` instead.\nWhether the result should contain `webDriverValue`, serialized according to\nhttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, but\nresulting `objectId` is still provided.",
- "deprecated": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "serializationOptions",
- "description": "Specifies the result serialization. If provided, overrides\n`returnByValue` and `generateWebDriverValue`.",
- "experimental": true,
- "optional": true,
- "$ref": "SerializationOptions"
- }
- ],
- "returns": [
- {
- "name": "result",
- "description": "Call result.",
- "$ref": "RemoteObject"
- },
- {
- "name": "exceptionDetails",
- "description": "Exception details.",
- "optional": true,
- "$ref": "ExceptionDetails"
- }
- ]
- },
- {
- "name": "compileScript",
- "description": "Compiles expression.",
- "parameters": [
- {
- "name": "expression",
- "description": "Expression to compile.",
- "type": "string"
- },
- {
- "name": "sourceURL",
- "description": "Source url to be set for the script.",
- "type": "string"
- },
- {
- "name": "persistScript",
- "description": "Specifies whether the compiled script should be persisted.",
- "type": "boolean"
- },
- {
- "name": "executionContextId",
- "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.",
- "optional": true,
- "$ref": "ExecutionContextId"
- }
- ],
- "returns": [
- {
- "name": "scriptId",
- "description": "Id of the script.",
- "optional": true,
- "$ref": "ScriptId"
- },
- {
- "name": "exceptionDetails",
- "description": "Exception details.",
- "optional": true,
- "$ref": "ExceptionDetails"
- }
- ]
- },
- {
- "name": "disable",
- "description": "Disables reporting of execution contexts creation."
- },
- {
- "name": "discardConsoleEntries",
- "description": "Discards collected exceptions and console API calls."
- },
- {
- "name": "enable",
- "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."
- },
- {
- "name": "evaluate",
- "description": "Evaluates expression on global object.",
- "parameters": [
- {
- "name": "expression",
- "description": "Expression to evaluate.",
- "type": "string"
- },
- {
- "name": "objectGroup",
- "description": "Symbolic group name that can be used to release multiple objects.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "includeCommandLineAPI",
- "description": "Determines whether Command Line API should be available during the evaluation.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "silent",
- "description": "In silent mode exceptions thrown during evaluation are not reported and do not pause\nexecution. Overrides `setPauseOnException` state.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "contextId",
- "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.\nThis is mutually exclusive with `uniqueContextId`, which offers an\nalternative way to identify the execution context that is more reliable\nin a multi-process environment.",
- "optional": true,
- "$ref": "ExecutionContextId"
- },
- {
- "name": "returnByValue",
- "description": "Whether the result is expected to be a JSON object that should be sent by value.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "generatePreview",
- "description": "Whether preview should be generated for the result.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "userGesture",
- "description": "Whether execution should be treated as initiated by user in the UI.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "awaitPromise",
- "description": "Whether execution should `await` for resulting value and return once awaited promise is\nresolved.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "throwOnSideEffect",
- "description": "Whether to throw an exception if side effect cannot be ruled out during evaluation.\nThis implies `disableBreaks` below.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "timeout",
- "description": "Terminate execution after timing out (number of milliseconds).",
- "experimental": true,
- "optional": true,
- "$ref": "TimeDelta"
- },
- {
- "name": "disableBreaks",
- "description": "Disable breakpoints during execution.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "replMode",
- "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.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "allowUnsafeEvalBlockedByCSP",
- "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.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "uniqueContextId",
- "description": "An alternative way to specify the execution context to evaluate in.\nCompared to contextId that may be reused across processes, this is guaranteed to be\nsystem-unique, so it can be used to prevent accidental evaluation of the expression\nin context different than intended (e.g. as a result of navigation across process\nboundaries).\nThis is mutually exclusive with `contextId`.",
- "experimental": true,
- "optional": true,
- "type": "string"
- },
- {
- "name": "generateWebDriverValue",
- "description": "Deprecated. Use `serializationOptions: {serialization:\"deep\"}` instead.\nWhether the result should contain `webDriverValue`, serialized\naccording to\nhttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, but\nresulting `objectId` is still provided.",
- "deprecated": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "serializationOptions",
- "description": "Specifies the result serialization. If provided, overrides\n`returnByValue` and `generateWebDriverValue`.",
- "experimental": true,
- "optional": true,
- "$ref": "SerializationOptions"
- }
- ],
- "returns": [
- {
- "name": "result",
- "description": "Evaluation result.",
- "$ref": "RemoteObject"
- },
- {
- "name": "exceptionDetails",
- "description": "Exception details.",
- "optional": true,
- "$ref": "ExceptionDetails"
- }
- ]
- },
- {
- "name": "getIsolateId",
- "description": "Returns the isolate id.",
- "experimental": true,
- "returns": [
- {
- "name": "id",
- "description": "The isolate id.",
- "type": "string"
- }
- ]
- },
- {
- "name": "getHeapUsage",
- "description": "Returns the JavaScript heap usage.\nIt is the total usage of the corresponding isolate not scoped to a particular Runtime.",
- "experimental": true,
- "returns": [
- {
- "name": "usedSize",
- "description": "Used heap size in bytes.",
- "type": "number"
- },
- {
- "name": "totalSize",
- "description": "Allocated heap size in bytes.",
- "type": "number"
- }
- ]
- },
- {
- "name": "getProperties",
- "description": "Returns properties of a given object. Object group of the result is inherited from the target\nobject.",
- "parameters": [
- {
- "name": "objectId",
- "description": "Identifier of the object to return properties for.",
- "$ref": "RemoteObjectId"
- },
- {
- "name": "ownProperties",
- "description": "If true, returns properties belonging only to the element itself, not to its prototype\nchain.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "accessorPropertiesOnly",
- "description": "If true, returns accessor properties (with getter/setter) only; internal properties are not\nreturned either.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "generatePreview",
- "description": "Whether preview should be generated for the results.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "nonIndexedPropertiesOnly",
- "description": "If true, returns non-indexed properties only.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "result",
- "description": "Object properties.",
- "type": "array",
- "items": {
- "$ref": "PropertyDescriptor"
- }
- },
- {
- "name": "internalProperties",
- "description": "Internal object properties (only of the element itself).",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "InternalPropertyDescriptor"
- }
- },
- {
- "name": "privateProperties",
- "description": "Object private properties.",
- "experimental": true,
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "PrivatePropertyDescriptor"
- }
- },
- {
- "name": "exceptionDetails",
- "description": "Exception details.",
- "optional": true,
- "$ref": "ExceptionDetails"
- }
- ]
- },
- {
- "name": "globalLexicalScopeNames",
- "description": "Returns all let, const and class variables from global scope.",
- "parameters": [
- {
- "name": "executionContextId",
- "description": "Specifies in which execution context to lookup global scope variables.",
- "optional": true,
- "$ref": "ExecutionContextId"
- }
- ],
- "returns": [
- {
- "name": "names",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "name": "queryObjects",
- "parameters": [
- {
- "name": "prototypeObjectId",
- "description": "Identifier of the prototype to return objects for.",
- "$ref": "RemoteObjectId"
- },
- {
- "name": "objectGroup",
- "description": "Symbolic group name that can be used to release the results.",
- "optional": true,
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "objects",
- "description": "Array with objects.",
- "$ref": "RemoteObject"
- }
- ]
- },
- {
- "name": "releaseObject",
- "description": "Releases remote object with given id.",
- "parameters": [
- {
- "name": "objectId",
- "description": "Identifier of the object to release.",
- "$ref": "RemoteObjectId"
- }
- ]
- },
- {
- "name": "releaseObjectGroup",
- "description": "Releases all remote objects that belong to a given group.",
- "parameters": [
- {
- "name": "objectGroup",
- "description": "Symbolic object group name.",
- "type": "string"
- }
- ]
- },
- {
- "name": "runIfWaitingForDebugger",
- "description": "Tells inspected instance to run if it was waiting for debugger to attach."
- },
- {
- "name": "runScript",
- "description": "Runs script with given id in a given context.",
- "parameters": [
- {
- "name": "scriptId",
- "description": "Id of the script to run.",
- "$ref": "ScriptId"
- },
- {
- "name": "executionContextId",
- "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.",
- "optional": true,
- "$ref": "ExecutionContextId"
- },
- {
- "name": "objectGroup",
- "description": "Symbolic group name that can be used to release multiple objects.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "silent",
- "description": "In silent mode exceptions thrown during evaluation are not reported and do not pause\nexecution. Overrides `setPauseOnException` state.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "includeCommandLineAPI",
- "description": "Determines whether Command Line API should be available during the evaluation.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "returnByValue",
- "description": "Whether the result is expected to be a JSON object which should be sent by value.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "generatePreview",
- "description": "Whether preview should be generated for the result.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "awaitPromise",
- "description": "Whether execution should `await` for resulting value and return once awaited promise is\nresolved.",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "result",
- "description": "Run result.",
- "$ref": "RemoteObject"
- },
- {
- "name": "exceptionDetails",
- "description": "Exception details.",
- "optional": true,
- "$ref": "ExceptionDetails"
- }
- ]
- },
- {
- "name": "setAsyncCallStackDepth",
- "description": "Enables or disables async call stacks tracking.",
- "redirect": "Debugger",
- "parameters": [
- {
- "name": "maxDepth",
- "description": "Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async\ncall stacks (default).",
- "type": "integer"
- }
- ]
- },
- {
- "name": "setCustomObjectFormatterEnabled",
- "experimental": true,
- "parameters": [
- {
- "name": "enabled",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setMaxCallStackSizeToCapture",
- "experimental": true,
- "parameters": [
- {
- "name": "size",
- "type": "integer"
- }
- ]
- },
- {
- "name": "terminateExecution",
- "description": "Terminate current or next JavaScript execution.\nWill cancel the termination when the outer-most script execution ends.",
- "experimental": true
- },
- {
- "name": "addBinding",
- "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.\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.",
- "experimental": true,
- "parameters": [
- {
- "name": "name",
- "type": "string"
- },
- {
- "name": "executionContextId",
- "description": "If specified, the binding would only be exposed to the specified\nexecution context. If omitted and `executionContextName` is not set,\nthe binding is exposed to all execution contexts of the target.\nThis parameter is mutually exclusive with `executionContextName`.\nDeprecated in favor of `executionContextName` due to an unclear use case\nand bugs in implementation (crbug.com/1169639). `executionContextId` will be\nremoved in the future.",
- "deprecated": true,
- "optional": true,
- "$ref": "ExecutionContextId"
- },
- {
- "name": "executionContextName",
- "description": "If specified, the binding is exposed to the executionContext with\nmatching name, even for contexts created after the binding is added.\nSee also `ExecutionContext.name` and `worldName` parameter to\n`Page.addScriptToEvaluateOnNewDocument`.\nThis parameter is mutually exclusive with `executionContextId`.",
- "experimental": true,
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "removeBinding",
- "description": "This method does not remove binding function from global object but\nunsubscribes current runtime agent from Runtime.bindingCalled notifications.",
- "experimental": true,
- "parameters": [
- {
- "name": "name",
- "type": "string"
- }
- ]
- },
- {
- "name": "getExceptionDetails",
- "description": "This method tries to lookup and populate exception details for a\nJavaScript Error object.\nNote that the stackTrace portion of the resulting exceptionDetails will\nonly be populated if the Runtime domain was enabled at the time when the\nError was thrown.",
- "experimental": true,
- "parameters": [
- {
- "name": "errorObjectId",
- "description": "The error object for which to resolve the exception details.",
- "$ref": "RemoteObjectId"
- }
- ],
- "returns": [
- {
- "name": "exceptionDetails",
- "optional": true,
- "$ref": "ExceptionDetails"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "bindingCalled",
- "description": "Notification is issued every time when binding is called.",
- "experimental": true,
- "parameters": [
- {
- "name": "name",
- "type": "string"
- },
- {
- "name": "payload",
- "type": "string"
- },
- {
- "name": "executionContextId",
- "description": "Identifier of the context where the call was made.",
- "$ref": "ExecutionContextId"
- }
- ]
- },
- {
- "name": "consoleAPICalled",
- "description": "Issued when console API was called.",
- "parameters": [
- {
- "name": "type",
- "description": "Type of the call.",
- "type": "string",
- "enum": [
- "log",
- "debug",
- "info",
- "error",
- "warning",
- "dir",
- "dirxml",
- "table",
- "trace",
- "clear",
- "startGroup",
- "startGroupCollapsed",
- "endGroup",
- "assert",
- "profile",
- "profileEnd",
- "count",
- "timeEnd"
- ]
- },
- {
- "name": "args",
- "description": "Call arguments.",
- "type": "array",
- "items": {
- "$ref": "RemoteObject"
- }
- },
- {
- "name": "executionContextId",
- "description": "Identifier of the context where the call was made.",
- "$ref": "ExecutionContextId"
- },
- {
- "name": "timestamp",
- "description": "Call timestamp.",
- "$ref": "Timestamp"
- },
- {
- "name": "stackTrace",
- "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.",
- "optional": true,
- "$ref": "StackTrace"
- },
- {
- "name": "context",
- "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.",
- "experimental": true,
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "exceptionRevoked",
- "description": "Issued when unhandled exception was revoked.",
- "parameters": [
- {
- "name": "reason",
- "description": "Reason describing why exception was revoked.",
- "type": "string"
- },
- {
- "name": "exceptionId",
- "description": "The id of revoked exception, as reported in `exceptionThrown`.",
- "type": "integer"
- }
- ]
- },
- {
- "name": "exceptionThrown",
- "description": "Issued when exception was thrown and unhandled.",
- "parameters": [
- {
- "name": "timestamp",
- "description": "Timestamp of the exception.",
- "$ref": "Timestamp"
- },
- {
- "name": "exceptionDetails",
- "$ref": "ExceptionDetails"
- }
- ]
- },
- {
- "name": "executionContextCreated",
- "description": "Issued when new execution context is created.",
- "parameters": [
- {
- "name": "context",
- "description": "A newly created execution context.",
- "$ref": "ExecutionContextDescription"
- }
- ]
- },
- {
- "name": "executionContextDestroyed",
- "description": "Issued when execution context is destroyed.",
- "parameters": [
- {
- "name": "executionContextId",
- "description": "Id of the destroyed context",
- "deprecated": true,
- "$ref": "ExecutionContextId"
- },
- {
- "name": "executionContextUniqueId",
- "description": "Unique Id of the destroyed context",
- "experimental": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "executionContextsCleared",
- "description": "Issued when all executionContexts were cleared in browser"
- },
- {
- "name": "inspectRequested",
- "description": "Issued when object should be inspected (for example, as a result of inspect() command line API\ncall).",
- "parameters": [
- {
- "name": "object",
- "$ref": "RemoteObject"
- },
- {
- "name": "hints",
- "type": "object"
- },
- {
- "name": "executionContextId",
- "description": "Identifier of the context where the call was made.",
- "experimental": true,
- "optional": true,
- "$ref": "ExecutionContextId"
- }
- ]
- }
- ]
- },
- {
- "domain": "Schema",
- "description": "This domain is deprecated.",
- "deprecated": true,
- "types": [
- {
- "id": "Domain",
- "description": "Description of the protocol domain.",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Domain name.",
- "type": "string"
- },
- {
- "name": "version",
- "description": "Domain version.",
- "type": "string"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "getDomains",
- "description": "Returns supported domains.",
- "returns": [
- {
- "name": "domains",
- "description": "List of supported domains.",
- "type": "array",
- "items": {
- "$ref": "Domain"
- }
- }
- ]
- }
- ]
- }
- ]
- }
|