OLD | NEW |
1 { | 1 { |
2 "version": { "major": "1", "minor": "1" }, | 2 "version": { "major": "1", "minor": "1" }, |
3 "domains": [{ | 3 "domains": [{ |
4 "domain": "Runtime", | 4 "domain": "Runtime", |
5 "description": "Runtime domain exposes JavaScript runtime by means of re
mote evaluation and mirror objects. Evaluation results are returned as mirror ob
ject that expose object type, string representation and unique identifier that c
an be used for further object reference. Original objects are maintained in memo
ry unless they are either explicitly released or are released along with the oth
er objects in their object group.", | 5 "description": "Runtime domain exposes JavaScript runtime by means of re
mote evaluation and mirror objects. Evaluation results are returned as mirror ob
ject that expose object type, string representation and unique identifier that c
an be used for further object reference. Original objects are maintained in memo
ry unless they are either explicitly released or are released along with the oth
er objects in their object group.", |
6 "types": [ | 6 "types": [ |
7 { | 7 { |
8 "id": "ScriptId", | 8 "id": "ScriptId", |
9 "type": "string", | 9 "type": "string", |
10 "description": "Unique script identifier." | 10 "description": "Unique script identifier." |
11 }, | 11 }, |
12 { | 12 { |
13 "id": "RemoteObjectId", | 13 "id": "RemoteObjectId", |
14 "type": "string", | 14 "type": "string", |
15 "description": "Unique object identifier." | 15 "description": "Unique object identifier." |
16 }, | 16 }, |
17 { | 17 { |
18 "id": "RemoteObject", | 18 "id": "RemoteObject", |
19 "type": "object", | 19 "type": "object", |
20 "description": "Mirror object referencing original JavaScript ob
ject.", | 20 "description": "Mirror object referencing original JavaScript ob
ject.", |
| 21 "exported": true, |
21 "properties": [ | 22 "properties": [ |
22 { "name": "type", "type": "string", "enum": ["object", "func
tion", "undefined", "string", "number", "boolean", "symbol"], "description": "Ob
ject type." }, | 23 { "name": "type", "type": "string", "enum": ["object", "func
tion", "undefined", "string", "number", "boolean", "symbol"], "description": "Ob
ject type." }, |
23 { "name": "subtype", "type": "string", "optional": true, "en
um": ["array", "null", "node", "regexp", "date", "map", "set", "iterator", "gene
rator", "error"], "description": "Object subtype hint. Specified for <code>objec
t</code> type values only." }, | 24 { "name": "subtype", "type": "string", "optional": true, "en
um": ["array", "null", "node", "regexp", "date", "map", "set", "iterator", "gene
rator", "error"], "description": "Object subtype hint. Specified for <code>objec
t</code> type values only." }, |
24 { "name": "className", "type": "string", "optional": true, "
description": "Object class (constructor) name. Specified for <code>object</code
> type values only." }, | 25 { "name": "className", "type": "string", "optional": true, "
description": "Object class (constructor) name. Specified for <code>object</code
> type values only." }, |
25 { "name": "value", "type": "any", "optional": true, "descrip
tion": "Remote object value in case of primitive values or JSON values (if it wa
s requested), or description string if the value can not be JSON-stringified (li
ke NaN, Infinity, -Infinity, -0)." }, | 26 { "name": "value", "type": "any", "optional": true, "descrip
tion": "Remote object value in case of primitive values or JSON values (if it wa
s requested), or description string if the value can not be JSON-stringified (li
ke NaN, Infinity, -Infinity, -0)." }, |
26 { "name": "description", "type": "string", "optional": true,
"description": "String representation of the object." }, | 27 { "name": "description", "type": "string", "optional": true,
"description": "String representation of the object." }, |
27 { "name": "objectId", "$ref": "RemoteObjectId", "optional":
true, "description": "Unique object identifier (for non-primitive values)." }, | 28 { "name": "objectId", "$ref": "RemoteObjectId", "optional":
true, "description": "Unique object identifier (for non-primitive values)." }, |
28 { "name": "preview", "$ref": "ObjectPreview", "optional": tr
ue, "description": "Preview containing abbreviated property values. Specified fo
r <code>object</code> type values only.", "hidden": true }, | 29 { "name": "preview", "$ref": "ObjectPreview", "optional": tr
ue, "description": "Preview containing abbreviated property values. Specified fo
r <code>object</code> type values only.", "hidden": true }, |
29 { "name": "customPreview", "$ref": "CustomPreview", "optiona
l": true, "hidden": true} | 30 { "name": "customPreview", "$ref": "CustomPreview", "optiona
l": true, "hidden": true} |
30 ] | 31 ] |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 { "name": "scriptId", "$ref": "ScriptId", "description": "Ja
vaScript script id." }, | 160 { "name": "scriptId", "$ref": "ScriptId", "description": "Ja
vaScript script id." }, |
160 { "name": "url", "type": "string", "description": "JavaScrip
t script name or url." }, | 161 { "name": "url", "type": "string", "description": "JavaScrip
t script name or url." }, |
161 { "name": "lineNumber", "type": "integer", "description": "J
avaScript script line number (0-based)." }, | 162 { "name": "lineNumber", "type": "integer", "description": "J
avaScript script line number (0-based)." }, |
162 { "name": "columnNumber", "type": "integer", "description":
"JavaScript script column number (0-based)." } | 163 { "name": "columnNumber", "type": "integer", "description":
"JavaScript script column number (0-based)." } |
163 ] | 164 ] |
164 }, | 165 }, |
165 { | 166 { |
166 "id": "StackTrace", | 167 "id": "StackTrace", |
167 "type": "object", | 168 "type": "object", |
168 "description": "Call frames for assertions or error messages.", | 169 "description": "Call frames for assertions or error messages.", |
| 170 "exported": true, |
169 "properties": [ | 171 "properties": [ |
170 { "name": "description", "type": "string", "optional": true,
"description": "String label of this stack trace. For async traces this may be
a name of the function that initiated the async call." }, | 172 { "name": "description", "type": "string", "optional": true,
"description": "String label of this stack trace. For async traces this may be
a name of the function that initiated the async call." }, |
171 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "JavaScript function name." }, | 173 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "JavaScript function name." }, |
172 { "name": "parent", "$ref": "StackTrace", "optional": true,
"hidden": true, "description": "Asynchronous JavaScript stack trace that precede
d this stack, if available." } | 174 { "name": "parent", "$ref": "StackTrace", "optional": true,
"hidden": true, "description": "Asynchronous JavaScript stack trace that precede
d this stack, if available." } |
173 ] | 175 ] |
174 } | 176 } |
175 ], | 177 ], |
176 "commands": [ | 178 "commands": [ |
177 { | 179 { |
178 "name": "evaluate", | 180 "name": "evaluate", |
| 181 "async": true, |
179 "parameters": [ | 182 "parameters": [ |
180 { "name": "expression", "type": "string", "description": "Ex
pression to evaluate." }, | 183 { "name": "expression", "type": "string", "description": "Ex
pression to evaluate." }, |
181 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, | 184 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, |
182 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation.", "hidden": true }, | 185 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation.", "hidden": true }, |
183 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b
oolean", "optional": true, "description": "Specifies whether evaluation should s
top on exceptions and mute console. Overrides setPauseOnException state.", "hidd
en": true }, | 186 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b
oolean", "optional": true, "description": "Specifies whether evaluation should s
top on exceptions and mute console. Overrides setPauseOnException state.", "hidd
en": true }, |
184 { "name": "contextId", "$ref": "ExecutionContextId", "option
al": true, "description": "Specifies in which isolated context to perform evalua
tion. Each content script lives in an isolated context and this parameter may be
used to specify one of those contexts. If the parameter is omitted or 0 the eva
luation will be performed in the context of the inspected page." }, | 187 { "name": "contextId", "$ref": "ExecutionContextId", "option
al": true, "description": "Specifies in which isolated context to perform evalua
tion. Each content script lives in an isolated context and this parameter may be
used to specify one of those contexts. If the parameter is omitted or 0 the eva
luation will be performed in the context of the inspected page." }, |
185 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object that shou
ld be sent by value." }, | 188 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object that shou
ld be sent by value." }, |
186 { "name": "generatePreview", "type": "boolean", "optional":
true, "hidden": true, "description": "Whether preview should be generated for th
e result." }, | 189 { "name": "generatePreview", "type": "boolean", "optional":
true, "hidden": true, "description": "Whether preview should be generated for th
e result." }, |
187 { "name": "userGesture", "type": "boolean", "optional": true
, "hidden": true, "description": "Whether execution should be treated as initiat
ed by user in the UI." } | 190 { "name": "userGesture", "type": "boolean", "optional": true
, "hidden": true, "description": "Whether execution should be treated as initiat
ed by user in the UI." }, |
| 191 { "name": "awaitPromise", "type": "boolean", "optional":true
, "hidden": true, "description": "Whether execution should wait for promise to b
e resolved. If the result of evaluation is not a Promise, it's considered to be
an error." } |
188 ], | 192 ], |
189 "returns": [ | 193 "returns": [ |
190 { "name": "result", "$ref": "RemoteObject", "description": "
Evaluation result." }, | 194 { "name": "result", "$ref": "RemoteObject", "description": "
Evaluation result." }, |
191 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the result was thrown during the evaluation." }, | 195 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the result was thrown during the evaluation." }, |
192 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "hidden": true, "description": "Exception details."} | 196 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "hidden": true, "description": "Exception details."} |
193 ], | 197 ], |
194 "description": "Evaluates expression on global object." | 198 "description": "Evaluates expression on global object." |
195 }, | 199 }, |
196 { | 200 { |
| 201 "name": "awaitPromise", |
| 202 "hidden": true, |
| 203 "async": true, |
| 204 "parameters": [ |
| 205 { "name": "promiseObjectId", "$ref": "RemoteObjectId", "desc
ription": "Identifier of the promise." }, |
| 206 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object that shou
ld be sent by value." }, |
| 207 { "name": "generatePreview", "type": "boolean", "optional":
true, "description": "Whether preview should be generated for the result." } |
| 208 ], |
| 209 "returns": [ |
| 210 { "name": "result", "$ref": "RemoteObject", "description": "
Promise result. Will contain rejected value if promise was rejected." }, |
| 211 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the promise was rejected." }, |
| 212 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details if stack strace is available."
} |
| 213 ], |
| 214 "description": "Add handler to promise with given promise object
id." |
| 215 }, |
| 216 { |
197 "name": "callFunctionOn", | 217 "name": "callFunctionOn", |
198 "parameters": [ | 218 "parameters": [ |
199 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to call function on." }, | 219 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to call function on." }, |
200 { "name": "functionDeclaration", "type": "string", "descript
ion": "Declaration of the function to call." }, | 220 { "name": "functionDeclaration", "type": "string", "descript
ion": "Declaration of the function to call." }, |
201 { "name": "arguments", "type": "array", "items": { "$ref": "
CallArgument", "description": "Call argument." }, "optional": true, "description
": "Call arguments. All call arguments must belong to the same JavaScript world
as the target object." }, | 221 { "name": "arguments", "type": "array", "items": { "$ref": "
CallArgument", "description": "Call argument." }, "optional": true, "description
": "Call arguments. All call arguments must belong to the same JavaScript world
as the target object." }, |
202 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b
oolean", "optional": true, "description": "Specifies whether function call shoul
d stop on exceptions and mute console. Overrides setPauseOnException state.", "h
idden": true }, | 222 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b
oolean", "optional": true, "description": "Specifies whether function call shoul
d stop on exceptions and mute console. Overrides setPauseOnException state.", "h
idden": true }, |
203 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object which sho
uld be sent by value." }, | 223 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object which sho
uld be sent by value." }, |
204 { "name": "generatePreview", "type": "boolean", "optional":
true, "hidden": true, "description": "Whether preview should be generated for th
e result." }, | 224 { "name": "generatePreview", "type": "boolean", "optional":
true, "hidden": true, "description": "Whether preview should be generated for th
e result." }, |
205 { "name": "userGesture", "type": "boolean", "optional": true
, "hidden": true, "description": "Whether execution should be treated as initiat
ed by user in the UI." } | 225 { "name": "userGesture", "type": "boolean", "optional": true
, "hidden": true, "description": "Whether execution should be treated as initiat
ed by user in the UI." } |
206 ], | 226 ], |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 { "name": "name", "type": "string", "optional": true, "hidde
n": true }, | 440 { "name": "name", "type": "string", "optional": true, "hidde
n": true }, |
421 { "name": "startLocation", "$ref": "Location", "optional": t
rue, "hidden": true, "description": "Location in the source code where scope sta
rts" }, | 441 { "name": "startLocation", "$ref": "Location", "optional": t
rue, "hidden": true, "description": "Location in the source code where scope sta
rts" }, |
422 { "name": "endLocation", "$ref": "Location", "optional": tru
e, "hidden": true, "description": "Location in the source code where scope ends"
} | 442 { "name": "endLocation", "$ref": "Location", "optional": tru
e, "hidden": true, "description": "Location in the source code where scope ends"
} |
423 ], | 443 ], |
424 "description": "Scope description." | 444 "description": "Scope description." |
425 }, | 445 }, |
426 { | 446 { |
427 "id": "SearchMatch", | 447 "id": "SearchMatch", |
428 "type": "object", | 448 "type": "object", |
429 "description": "Search match for resource.", | 449 "description": "Search match for resource.", |
| 450 "exported": true, |
430 "properties": [ | 451 "properties": [ |
431 { "name": "lineNumber", "type": "number", "description": "Li
ne number in resource content." }, | 452 { "name": "lineNumber", "type": "number", "description": "Li
ne number in resource content." }, |
432 { "name": "lineContent", "type": "string", "description": "L
ine with match content." } | 453 { "name": "lineContent", "type": "string", "description": "L
ine with match content." } |
433 ], | 454 ], |
434 "hidden": true | 455 "hidden": true |
435 } | 456 } |
436 ], | 457 ], |
437 "commands": [ | 458 "commands": [ |
438 { | 459 { |
439 "name": "enable", | 460 "name": "enable", |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 "parameters": [ | 714 "parameters": [ |
694 { "name": "breakpointId", "$ref": "BreakpointId", "descripti
on": "Breakpoint unique identifier." }, | 715 { "name": "breakpointId", "$ref": "BreakpointId", "descripti
on": "Breakpoint unique identifier." }, |
695 { "name": "location", "$ref": "Location", "description": "Ac
tual breakpoint location." } | 716 { "name": "location", "$ref": "Location", "description": "Ac
tual breakpoint location." } |
696 ], | 717 ], |
697 "description": "Fired when breakpoint is resolved to an actual s
cript and location." | 718 "description": "Fired when breakpoint is resolved to an actual s
cript and location." |
698 }, | 719 }, |
699 { | 720 { |
700 "name": "paused", | 721 "name": "paused", |
701 "parameters": [ | 722 "parameters": [ |
702 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "Call stack the virtual machine stopped on." }, | 723 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "Call stack the virtual machine stopped on." }, |
703 { "name": "reason", "type": "string", "enum": [ "XHR", "DOM"
, "EventListener", "exception", "assert", "debugCommand", "promiseRejection", "o
ther" ], "description": "Pause reason." }, | 724 { "name": "reason", "type": "string", "enum": [ "XHR", "DOM"
, "EventListener", "exception", "assert", "debugCommand", "promiseRejection", "o
ther" ], "description": "Pause reason.", "exported": true }, |
704 { "name": "data", "type": "object", "optional": true, "descr
iption": "Object containing break-specific auxiliary properties." }, | 725 { "name": "data", "type": "object", "optional": true, "descr
iption": "Object containing break-specific auxiliary properties." }, |
705 { "name": "hitBreakpoints", "type": "array", "optional": tru
e, "items": { "type": "string" }, "description": "Hit breakpoints IDs", "hidden"
: true }, | 726 { "name": "hitBreakpoints", "type": "array", "optional": tru
e, "items": { "type": "string" }, "description": "Hit breakpoints IDs", "hidden"
: true }, |
706 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any.", "hidden": true } | 727 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any.", "hidden": true } |
707 ], | 728 ], |
708 "description": "Fired when the virtual machine stopped on breakp
oint or exception or any other stop criteria." | 729 "description": "Fired when the virtual machine stopped on breakp
oint or exception or any other stop criteria." |
709 }, | 730 }, |
710 { | 731 { |
711 "name": "resumed", | 732 "name": "resumed", |
712 "description": "Fired when the virtual machine resumed execution
." | 733 "description": "Fired when the virtual machine resumed execution
." |
713 } | 734 } |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 { | 1002 { |
982 "name": "heapStatsUpdate", | 1003 "name": "heapStatsUpdate", |
983 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", | 1004 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", |
984 "parameters": [ | 1005 "parameters": [ |
985 { "name": "statsUpdate", "type": "array", "items": { "type":
"integer" }, "description": "An array of triplets. Each triplet describes a fra
gment. The first integer is the fragment index, the second integer is a total co
unt of objects for the fragment, the third integer is a total size of the object
s for the fragment."} | 1006 { "name": "statsUpdate", "type": "array", "items": { "type":
"integer" }, "description": "An array of triplets. Each triplet describes a fra
gment. The first integer is the fragment index, the second integer is a total co
unt of objects for the fragment, the third integer is a total size of the object
s for the fragment."} |
986 ] | 1007 ] |
987 } | 1008 } |
988 ] | 1009 ] |
989 }] | 1010 }] |
990 } | 1011 } |
OLD | NEW |