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", |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 { "name": "name", "type": "string", "optional": true, "hidde
n": true }, | 422 { "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" }, | 423 { "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"
} | 424 { "name": "endLocation", "$ref": "Location", "optional": tru
e, "hidden": true, "description": "Location in the source code where scope ends"
} |
423 ], | 425 ], |
424 "description": "Scope description." | 426 "description": "Scope description." |
425 }, | 427 }, |
426 { | 428 { |
427 "id": "SearchMatch", | 429 "id": "SearchMatch", |
428 "type": "object", | 430 "type": "object", |
429 "description": "Search match for resource.", | 431 "description": "Search match for resource.", |
| 432 "exported": true, |
430 "properties": [ | 433 "properties": [ |
431 { "name": "lineNumber", "type": "number", "description": "Li
ne number in resource content." }, | 434 { "name": "lineNumber", "type": "number", "description": "Li
ne number in resource content." }, |
432 { "name": "lineContent", "type": "string", "description": "L
ine with match content." } | 435 { "name": "lineContent", "type": "string", "description": "L
ine with match content." } |
433 ], | 436 ], |
434 "hidden": true | 437 "hidden": true |
435 } | 438 } |
436 ], | 439 ], |
437 "commands": [ | 440 "commands": [ |
438 { | 441 { |
439 "name": "enable", | 442 "name": "enable", |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 "parameters": [ | 696 "parameters": [ |
694 { "name": "breakpointId", "$ref": "BreakpointId", "descripti
on": "Breakpoint unique identifier." }, | 697 { "name": "breakpointId", "$ref": "BreakpointId", "descripti
on": "Breakpoint unique identifier." }, |
695 { "name": "location", "$ref": "Location", "description": "Ac
tual breakpoint location." } | 698 { "name": "location", "$ref": "Location", "description": "Ac
tual breakpoint location." } |
696 ], | 699 ], |
697 "description": "Fired when breakpoint is resolved to an actual s
cript and location." | 700 "description": "Fired when breakpoint is resolved to an actual s
cript and location." |
698 }, | 701 }, |
699 { | 702 { |
700 "name": "paused", | 703 "name": "paused", |
701 "parameters": [ | 704 "parameters": [ |
702 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "Call stack the virtual machine stopped on." }, | 705 { "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." }, | 706 { "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." }, | 707 { "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 }, | 708 { "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 } | 709 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any.", "hidden": true } |
707 ], | 710 ], |
708 "description": "Fired when the virtual machine stopped on breakp
oint or exception or any other stop criteria." | 711 "description": "Fired when the virtual machine stopped on breakp
oint or exception or any other stop criteria." |
709 }, | 712 }, |
710 { | 713 { |
711 "name": "resumed", | 714 "name": "resumed", |
712 "description": "Fired when the virtual machine resumed execution
." | 715 "description": "Fired when the virtual machine resumed execution
." |
713 } | 716 } |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 { | 984 { |
982 "name": "heapStatsUpdate", | 985 "name": "heapStatsUpdate", |
983 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", | 986 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", |
984 "parameters": [ | 987 "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."} | 988 { "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 ] | 989 ] |
987 } | 990 } |
988 ] | 991 ] |
989 }] | 992 }] |
990 } | 993 } |
OLD | NEW |