OLD | NEW |
1 { | 1 { |
2 "version": { "major": "1", "minor": "1" }, | 2 "version": { "major": "1", "minor": "2" }, |
3 "domains": [{ | 3 "domains": [ |
| 4 { |
| 5 "domain": "Schema", |
| 6 "description": "Provides information about the protocol schema.", |
| 7 "types": [ |
| 8 { |
| 9 "id": "Domain", |
| 10 "type": "object", |
| 11 "description": "Description of the protocol domain.", |
| 12 "exported": true, |
| 13 "properties": [ |
| 14 { "name": "name", "type": "string", "description": "Domain n
ame." }, |
| 15 { "name": "version", "type": "string", "description": "Domai
n version." } |
| 16 ] |
| 17 } |
| 18 ], |
| 19 "commands": [ |
| 20 { |
| 21 "name": "getDomains", |
| 22 "description": "Returns supported domains.", |
| 23 "handlers": ["browser", "renderer"], |
| 24 "returns": [ |
| 25 { "name": "domains", "type": "array", "items": { "$ref": "Do
main" }, "description": "List of supported domains." } |
| 26 ] |
| 27 } |
| 28 ] |
| 29 }, |
| 30 { |
4 "domain": "Runtime", | 31 "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.", | 32 "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": [ | 33 "types": [ |
7 { | 34 { |
8 "id": "ScriptId", | 35 "id": "ScriptId", |
9 "type": "string", | 36 "type": "string", |
10 "description": "Unique script identifier." | 37 "description": "Unique script identifier." |
11 }, | 38 }, |
12 { | 39 { |
13 "id": "RemoteObjectId", | 40 "id": "RemoteObjectId", |
14 "type": "string", | 41 "type": "string", |
15 "description": "Unique object identifier." | 42 "description": "Unique object identifier." |
16 }, | 43 }, |
17 { | 44 { |
| 45 "id": "UnserializableValue", |
| 46 "type": "string", |
| 47 "enum": ["Infinity", "NaN", "-Infinity", "-0"], |
| 48 "description": "Primitive value which cannot be JSON-stringified
." |
| 49 }, |
| 50 { |
18 "id": "RemoteObject", | 51 "id": "RemoteObject", |
19 "type": "object", | 52 "type": "object", |
20 "description": "Mirror object referencing original JavaScript ob
ject.", | 53 "description": "Mirror object referencing original JavaScript ob
ject.", |
21 "exported": true, | 54 "exported": true, |
22 "properties": [ | 55 "properties": [ |
23 { "name": "type", "type": "string", "enum": ["object", "func
tion", "undefined", "string", "number", "boolean", "symbol"], "description": "Ob
ject type." }, | 56 { "name": "type", "type": "string", "enum": ["object", "func
tion", "undefined", "string", "number", "boolean", "symbol"], "description": "Ob
ject type." }, |
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." }, | 57 { "name": "subtype", "type": "string", "optional": true, "en
um": ["array", "null", "node", "regexp", "date", "map", "set", "iterator", "gene
rator", "error", "proxy", "promise", "typedarray"], "description": "Object subty
pe hint. 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." }, | 58 { "name": "className", "type": "string", "optional": true, "
description": "Object class (constructor) name. Specified for <code>object</code
> type values only." }, |
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)." }, | 59 { "name": "value", "type": "any", "optional": true, "descrip
tion": "Remote object value in case of primitive values or JSON values (if it wa
s requested)." }, |
| 60 { "name": "unserializableValue", "$ref": "UnserializableValu
e", "optional": true, "description": "Primitive value which can not be JSON-stri
ngified does not have <code>value</code>, but gets this property." }, |
27 { "name": "description", "type": "string", "optional": true,
"description": "String representation of the object." }, | 61 { "name": "description", "type": "string", "optional": true,
"description": "String representation of the object." }, |
28 { "name": "objectId", "$ref": "RemoteObjectId", "optional":
true, "description": "Unique object identifier (for non-primitive values)." }, | 62 { "name": "objectId", "$ref": "RemoteObjectId", "optional":
true, "description": "Unique object identifier (for non-primitive values)." }, |
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 }, | 63 { "name": "preview", "$ref": "ObjectPreview", "optional": tr
ue, "description": "Preview containing abbreviated property values. Specified fo
r <code>object</code> type values only.", "experimental": true }, |
30 { "name": "customPreview", "$ref": "CustomPreview", "optiona
l": true, "hidden": true} | 64 { "name": "customPreview", "$ref": "CustomPreview", "optiona
l": true, "experimental": true} |
31 ] | 65 ] |
32 }, | 66 }, |
33 { | 67 { |
34 "id": "CustomPreview", | 68 "id": "CustomPreview", |
35 "type": "object", | 69 "type": "object", |
36 "hidden": true, | 70 "experimental": true, |
37 "properties": [ | 71 "properties": [ |
38 { "name": "header", "type": "string"}, | 72 { "name": "header", "type": "string"}, |
39 { "name": "hasBody", "type": "boolean"}, | 73 { "name": "hasBody", "type": "boolean"}, |
40 { "name": "formatterObjectId", "$ref": "RemoteObjectId"}, | 74 { "name": "formatterObjectId", "$ref": "RemoteObjectId"}, |
41 { "name": "bindRemoteObjectFunctionId", "$ref": "RemoteObjec
tId" }, | 75 { "name": "bindRemoteObjectFunctionId", "$ref": "RemoteObjec
tId" }, |
42 { "name": "configObjectId", "$ref": "RemoteObjectId", "optio
nal": true } | 76 { "name": "configObjectId", "$ref": "RemoteObjectId", "optio
nal": true } |
43 ] | 77 ] |
44 }, | 78 }, |
45 { | 79 { |
46 "id": "ObjectPreview", | 80 "id": "ObjectPreview", |
47 "type": "object", | 81 "type": "object", |
48 "hidden": true, | 82 "experimental": true, |
49 "description": "Object containing abbreviated remote object valu
e.", | 83 "description": "Object containing abbreviated remote object valu
e.", |
50 "properties": [ | 84 "properties": [ |
51 { "name": "type", "type": "string", "enum": ["object", "func
tion", "undefined", "string", "number", "boolean", "symbol"], "description": "Ob
ject type." }, | 85 { "name": "type", "type": "string", "enum": ["object", "func
tion", "undefined", "string", "number", "boolean", "symbol"], "description": "Ob
ject type." }, |
52 { "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." }, | 86 { "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." }, |
53 { "name": "description", "type": "string", "optional": true,
"description": "String representation of the object." }, | 87 { "name": "description", "type": "string", "optional": true,
"description": "String representation of the object." }, |
54 { "name": "overflow", "type": "boolean", "description": "Tru
e iff some of the properties or entries of the original object did not fit." }, | 88 { "name": "overflow", "type": "boolean", "description": "Tru
e iff some of the properties or entries of the original object did not fit." }, |
55 { "name": "properties", "type": "array", "items": { "$ref":
"PropertyPreview" }, "description": "List of the properties." }, | 89 { "name": "properties", "type": "array", "items": { "$ref":
"PropertyPreview" }, "description": "List of the properties." }, |
56 { "name": "entries", "type": "array", "items": { "$ref": "En
tryPreview" }, "optional": true, "description": "List of the entries. Specified
for <code>map</code> and <code>set</code> subtype values only." } | 90 { "name": "entries", "type": "array", "items": { "$ref": "En
tryPreview" }, "optional": true, "description": "List of the entries. Specified
for <code>map</code> and <code>set</code> subtype values only." } |
57 ] | 91 ] |
58 }, | 92 }, |
59 { | 93 { |
60 "id": "PropertyPreview", | 94 "id": "PropertyPreview", |
61 "type": "object", | 95 "type": "object", |
62 "hidden": true, | 96 "experimental": true, |
63 "properties": [ | 97 "properties": [ |
64 { "name": "name", "type": "string", "description": "Property
name." }, | 98 { "name": "name", "type": "string", "description": "Property
name." }, |
65 { "name": "type", "type": "string", "enum": ["object", "func
tion", "undefined", "string", "number", "boolean", "symbol", "accessor"], "descr
iption": "Object type. Accessor means that the property itself is an accessor pr
operty." }, | 99 { "name": "type", "type": "string", "enum": ["object", "func
tion", "undefined", "string", "number", "boolean", "symbol", "accessor"], "descr
iption": "Object type. Accessor means that the property itself is an accessor pr
operty." }, |
66 { "name": "value", "type": "string", "optional": true, "desc
ription": "User-friendly property value string." }, | 100 { "name": "value", "type": "string", "optional": true, "desc
ription": "User-friendly property value string." }, |
67 { "name": "valuePreview", "$ref": "ObjectPreview", "optional
": true, "description": "Nested value preview." }, | 101 { "name": "valuePreview", "$ref": "ObjectPreview", "optional
": true, "description": "Nested value preview." }, |
68 { "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." } | 102 { "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." } |
69 ] | 103 ] |
70 }, | 104 }, |
71 { | 105 { |
72 "id": "EntryPreview", | 106 "id": "EntryPreview", |
73 "type": "object", | 107 "type": "object", |
74 "hidden": true, | 108 "experimental": true, |
75 "properties": [ | 109 "properties": [ |
76 { "name": "key", "$ref": "ObjectPreview", "optional": true,
"description": "Preview of the key. Specified for map-like collection entries."
}, | 110 { "name": "key", "$ref": "ObjectPreview", "optional": true,
"description": "Preview of the key. Specified for map-like collection entries."
}, |
77 { "name": "value", "$ref": "ObjectPreview", "description": "
Preview of the value." } | 111 { "name": "value", "$ref": "ObjectPreview", "description": "
Preview of the value." } |
78 ] | 112 ] |
79 }, | 113 }, |
80 { | 114 { |
81 "id": "PropertyDescriptor", | 115 "id": "PropertyDescriptor", |
82 "type": "object", | 116 "type": "object", |
83 "description": "Object property descriptor.", | 117 "description": "Object property descriptor.", |
84 "properties": [ | 118 "properties": [ |
85 { "name": "name", "type": "string", "description": "Property
name or symbol description." }, | 119 { "name": "name", "type": "string", "description": "Property
name or symbol description." }, |
86 { "name": "value", "$ref": "RemoteObject", "optional": true,
"description": "The value associated with the property." }, | 120 { "name": "value", "$ref": "RemoteObject", "optional": true,
"description": "The value associated with the property." }, |
87 { "name": "writable", "type": "boolean", "optional": true, "
description": "True if the value associated with the property may be changed (da
ta descriptors only)." }, | 121 { "name": "writable", "type": "boolean", "optional": true, "
description": "True if the value associated with the property may be changed (da
ta descriptors only)." }, |
88 { "name": "get", "$ref": "RemoteObject", "optional": true, "
description": "A function which serves as a getter for the property, or <code>un
defined</code> if there is no getter (accessor descriptors only)." }, | 122 { "name": "get", "$ref": "RemoteObject", "optional": true, "
description": "A function which serves as a getter for the property, or <code>un
defined</code> if there is no getter (accessor descriptors only)." }, |
89 { "name": "set", "$ref": "RemoteObject", "optional": true, "
description": "A function which serves as a setter for the property, or <code>un
defined</code> if there is no setter (accessor descriptors only)." }, | 123 { "name": "set", "$ref": "RemoteObject", "optional": true, "
description": "A function which serves as a setter for the property, or <code>un
defined</code> if there is no setter (accessor descriptors only)." }, |
90 { "name": "configurable", "type": "boolean", "description":
"True if the type of this property descriptor may be changed and if the property
may be deleted from the corresponding object." }, | 124 { "name": "configurable", "type": "boolean", "description":
"True if the type of this property descriptor may be changed and if the property
may be deleted from the corresponding object." }, |
91 { "name": "enumerable", "type": "boolean", "description": "T
rue if this property shows up during enumeration of the properties on the corres
ponding object." }, | 125 { "name": "enumerable", "type": "boolean", "description": "T
rue if this property shows up during enumeration of the properties on the corres
ponding object." }, |
92 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the result was thrown during the evaluation." }, | 126 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the result was thrown during the evaluation." }, |
93 { "name": "isOwn", "optional": true, "type": "boolean", "des
cription": "True if the property is owned for the object.", "hidden": true }, | 127 { "name": "isOwn", "optional": true, "type": "boolean", "des
cription": "True if the property is owned for the object." }, |
94 { "name": "symbol", "$ref": "RemoteObject", "optional": true
, "description": "Property symbol object, if the property is of the <code>symbol
</code> type.", "hidden": true } | 128 { "name": "symbol", "$ref": "RemoteObject", "optional": true
, "description": "Property symbol object, if the property is of the <code>symbol
</code> type." } |
95 ] | 129 ] |
96 }, | 130 }, |
97 { | 131 { |
98 "id": "InternalPropertyDescriptor", | 132 "id": "InternalPropertyDescriptor", |
99 "type": "object", | 133 "type": "object", |
100 "description": "Object internal property descriptor. This proper
ty isn't normally visible in JavaScript code.", | 134 "description": "Object internal property descriptor. This proper
ty isn't normally visible in JavaScript code.", |
101 "properties": [ | 135 "properties": [ |
102 { "name": "name", "type": "string", "description": "Conventi
onal property name." }, | 136 { "name": "name", "type": "string", "description": "Conventi
onal property name." }, |
103 { "name": "value", "$ref": "RemoteObject", "optional": true,
"description": "The value associated with the property." } | 137 { "name": "value", "$ref": "RemoteObject", "optional": true,
"description": "The value associated with the property." } |
104 ], | 138 ] |
105 "hidden": true | |
106 }, | 139 }, |
107 { | 140 { |
108 "id": "CallArgument", | 141 "id": "CallArgument", |
109 "type": "object", | 142 "type": "object", |
110 "description": "Represents function call argument. Either remote
object id <code>objectId</code> or primitive <code>value</code> or neither of (
for undefined) them should be specified.", | 143 "description": "Represents function call argument. Either remote
object id <code>objectId</code>, primitive <code>value</code>, unserializable p
rimitive value or neither of (for undefined) them should be specified.", |
111 "properties": [ | 144 "properties": [ |
112 { "name": "value", "type": "any", "optional": true, "descrip
tion": "Primitive value, or description string if the value can not be JSON-stri
ngified (like NaN, Infinity, -Infinity, -0)." }, | 145 { "name": "value", "type": "any", "optional": true, "descrip
tion": "Primitive value." }, |
113 { "name": "objectId", "$ref": "RemoteObjectId", "optional":
true, "description": "Remote object handle." }, | 146 { "name": "unserializableValue", "$ref": "UnserializableValu
e", "optional": true, "description": "Primitive value which can not be JSON-stri
ngified." }, |
114 { "name": "type", "optional": true, "hidden": true, "type":
"string", "enum": ["object", "function", "undefined", "string", "number", "boole
an", "symbol"], "description": "Object type." } | 147 { "name": "objectId", "$ref": "RemoteObjectId", "optional":
true, "description": "Remote object handle." } |
115 ] | 148 ] |
116 }, | 149 }, |
117 { | 150 { |
118 "id": "ExecutionContextId", | 151 "id": "ExecutionContextId", |
119 "type": "integer", | 152 "type": "integer", |
120 "description": "Id of an execution context." | 153 "description": "Id of an execution context." |
121 }, | 154 }, |
122 { | 155 { |
123 "id": "ExecutionContextDescription", | 156 "id": "ExecutionContextDescription", |
124 "type": "object", | 157 "type": "object", |
125 "description": "Description of an isolated world.", | 158 "description": "Description of an isolated world.", |
126 "properties": [ | 159 "properties": [ |
127 { "name": "id", "$ref": "ExecutionContextId", "description":
"Unique id of the execution context. It can be used to specify in which executi
on context script evaluation should be performed." }, | 160 { "name": "id", "$ref": "ExecutionContextId", "description":
"Unique id of the execution context. It can be used to specify in which executi
on context script evaluation should be performed." }, |
128 { "name": "isDefault", "type": "boolean", "description": "Wh
ether context is the default page context (as opposite to e.g. context of conten
t script).", "hidden": true }, | 161 { "name": "origin", "type": "string", "description": "Execut
ion context origin." }, |
129 { "name": "origin", "type": "string", "description": "Execut
ion context origin.", "hidden": true}, | 162 { "name": "name", "type": "string", "description": "Human re
adable name describing given context." }, |
130 { "name": "name", "type": "string", "description": "Human re
adable name describing given context.", "hidden": true}, | 163 { "name": "auxData", "type": "object", "optional": true, "de
scription": "Embedder-specific auxiliary data." } |
131 { "name": "frameId", "type": "string", "description": "Id of
the owning frame. May be an empty string if the context is not associated with
a frame." } | |
132 ] | 164 ] |
133 }, | 165 }, |
134 { | 166 { |
135 "id": "ExceptionDetails", | 167 "id": "ExceptionDetails", |
136 "type": "object", | 168 "type": "object", |
137 "hidden": true, | |
138 "description": "Detailed information about exception (or error)
that was thrown during script compilation or execution.", | 169 "description": "Detailed information about exception (or error)
that was thrown during script compilation or execution.", |
139 "properties": [ | 170 "properties": [ |
140 { "name": "text", "type": "string", "description": "Exceptio
n text." }, | 171 { "name": "exceptionId", "type": "integer", "description": "
Exception id." }, |
141 { "name": "scriptId", "$ref": "ScriptId", "description": "Sc
ript ID of the exception location." }, | 172 { "name": "text", "type": "string", "description": "Exceptio
n text, which should be used together with exception object when available." }, |
142 { "name": "lineNumber", "type": "integer", "description": "L
ine number of the exception location (0-based)." }, | 173 { "name": "lineNumber", "type": "integer", "description": "L
ine number of the exception location (0-based)." }, |
143 { "name": "columnNumber", "type": "integer", "description":
"Column number of the exception location (0-based)." }, | 174 { "name": "columnNumber", "type": "integer", "description":
"Column number of the exception location (0-based)." }, |
| 175 { "name": "scriptId", "$ref": "ScriptId", "optional": true,
"description": "Script ID of the exception location." }, |
144 { "name": "url", "type": "string", "optional": true, "descri
ption": "URL of the exception location, to be used when the script was not repor
ted." }, | 176 { "name": "url", "type": "string", "optional": true, "descri
ption": "URL of the exception location, to be used when the script was not repor
ted." }, |
145 { "name": "stackTrace", "$ref": "StackTrace", "optional": tr
ue, "description": "JavaScript stack trace if available." } | 177 { "name": "stackTrace", "$ref": "StackTrace", "optional": tr
ue, "description": "JavaScript stack trace if available." }, |
| 178 { "name": "exception", "$ref": "RemoteObject", "optional": t
rue, "description": "Exception object if available." }, |
| 179 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "optional": true, "description": "Identifier of the context where exception ha
ppened." } |
146 ] | 180 ] |
147 }, | 181 }, |
148 { | 182 { |
149 "id": "Timestamp", | 183 "id": "Timestamp", |
150 "type": "number", | 184 "type": "number", |
151 "description": "Number of milliseconds since epoch.", | 185 "description": "Number of milliseconds since epoch." |
152 "hidden": true | |
153 }, | 186 }, |
154 { | 187 { |
155 "id": "CallFrame", | 188 "id": "CallFrame", |
156 "type": "object", | 189 "type": "object", |
157 "description": "Stack entry for runtime errors and assertions.", | 190 "description": "Stack entry for runtime errors and assertions.", |
158 "properties": [ | 191 "properties": [ |
159 { "name": "functionName", "type": "string", "description": "
JavaScript function name." }, | 192 { "name": "functionName", "type": "string", "description": "
JavaScript function name." }, |
160 { "name": "scriptId", "$ref": "ScriptId", "description": "Ja
vaScript script id." }, | 193 { "name": "scriptId", "$ref": "ScriptId", "description": "Ja
vaScript script id." }, |
161 { "name": "url", "type": "string", "description": "JavaScrip
t script name or url." }, | 194 { "name": "url", "type": "string", "description": "JavaScrip
t script name or url." }, |
162 { "name": "lineNumber", "type": "integer", "description": "J
avaScript script line number (0-based)." }, | 195 { "name": "lineNumber", "type": "integer", "description": "J
avaScript script line number (0-based)." }, |
163 { "name": "columnNumber", "type": "integer", "description":
"JavaScript script column number (0-based)." } | 196 { "name": "columnNumber", "type": "integer", "description":
"JavaScript script column number (0-based)." } |
164 ] | 197 ] |
165 }, | 198 }, |
166 { | 199 { |
167 "id": "StackTrace", | 200 "id": "StackTrace", |
168 "type": "object", | 201 "type": "object", |
169 "description": "Call frames for assertions or error messages.", | 202 "description": "Call frames for assertions or error messages.", |
170 "exported": true, | 203 "exported": true, |
171 "properties": [ | 204 "properties": [ |
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." }, | 205 { "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." }, |
173 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "JavaScript function name." }, | 206 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "JavaScript function name." }, |
174 { "name": "parent", "$ref": "StackTrace", "optional": true,
"hidden": true, "description": "Asynchronous JavaScript stack trace that precede
d this stack, if available." } | 207 { "name": "parent", "$ref": "StackTrace", "optional": true,
"description": "Asynchronous JavaScript stack trace that preceded this stack, if
available." } |
175 ] | 208 ] |
176 } | 209 } |
177 ], | 210 ], |
178 "commands": [ | 211 "commands": [ |
179 { | 212 { |
180 "name": "evaluate", | 213 "name": "evaluate", |
181 "async": true, | 214 "async": true, |
182 "parameters": [ | 215 "parameters": [ |
183 { "name": "expression", "type": "string", "description": "Ex
pression to evaluate." }, | 216 { "name": "expression", "type": "string", "description": "Ex
pression to evaluate." }, |
184 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, | 217 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, |
185 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation.", "hidden": true }, | 218 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation." }, |
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 }, | 219 { "name": "silent", "type": "boolean", "optional": true, "de
scription": "In silent mode exceptions thrown during evaluation are not reported
and do not pause execution. Overrides <code>setPauseOnException</code> state."
}, |
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." }, | 220 { "name": "contextId", "$ref": "ExecutionContextId", "option
al": true, "description": "Specifies in which execution context to perform evalu
ation. If the parameter is omitted the evaluation will be performed in the conte
xt of the inspected page." }, |
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." }, | 221 { "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." }, |
189 { "name": "generatePreview", "type": "boolean", "optional":
true, "hidden": true, "description": "Whether preview should be generated for th
e result." }, | 222 { "name": "generatePreview", "type": "boolean", "optional":
true, "experimental": true, "description": "Whether preview should be generated
for the result." }, |
190 { "name": "userGesture", "type": "boolean", "optional": true
, "hidden": true, "description": "Whether execution should be treated as initiat
ed by user in the UI." }, | 223 { "name": "userGesture", "type": "boolean", "optional": true
, "experimental": true, "description": "Whether execution should be treated as i
nitiated 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." } | 224 { "name": "awaitPromise", "type": "boolean", "optional":true
, "description": "Whether execution should wait for promise to be resolved. If t
he result of evaluation is not a Promise, it's considered to be an error." } |
192 ], | 225 ], |
193 "returns": [ | 226 "returns": [ |
194 { "name": "result", "$ref": "RemoteObject", "description": "
Evaluation result." }, | 227 { "name": "result", "$ref": "RemoteObject", "description": "
Evaluation result." }, |
195 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the result was thrown during the evaluation." }, | 228 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} |
196 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "hidden": true, "description": "Exception details."} | |
197 ], | 229 ], |
198 "description": "Evaluates expression on global object." | 230 "description": "Evaluates expression on global object." |
199 }, | 231 }, |
200 { | 232 { |
201 "name": "awaitPromise", | 233 "name": "awaitPromise", |
202 "hidden": true, | |
203 "async": true, | 234 "async": true, |
204 "parameters": [ | 235 "parameters": [ |
205 { "name": "promiseObjectId", "$ref": "RemoteObjectId", "desc
ription": "Identifier of the promise." }, | 236 { "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." }, | 237 { "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." } | 238 { "name": "generatePreview", "type": "boolean", "optional":
true, "description": "Whether preview should be generated for the result." } |
208 ], | 239 ], |
209 "returns": [ | 240 "returns": [ |
210 { "name": "result", "$ref": "RemoteObject", "description": "
Promise result. Will contain rejected value if promise was rejected." }, | 241 { "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."
} | 242 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details if stack strace is available."
} |
213 ], | 243 ], |
214 "description": "Add handler to promise with given promise object
id." | 244 "description": "Add handler to promise with given promise object
id." |
215 }, | 245 }, |
216 { | 246 { |
217 "name": "callFunctionOn", | 247 "name": "callFunctionOn", |
| 248 "async": true, |
218 "parameters": [ | 249 "parameters": [ |
219 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to call function on." }, | 250 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to call function on." }, |
220 { "name": "functionDeclaration", "type": "string", "descript
ion": "Declaration of the function to call." }, | 251 { "name": "functionDeclaration", "type": "string", "descript
ion": "Declaration of the function to call." }, |
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." }, | 252 { "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." }, |
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 }, | 253 { "name": "silent", "type": "boolean", "optional": true, "de
scription": "In silent mode exceptions thrown during evaluation are not reported
and do not pause execution. Overrides <code>setPauseOnException</code> state."
}, |
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." }, | 254 { "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." }, |
224 { "name": "generatePreview", "type": "boolean", "optional":
true, "hidden": true, "description": "Whether preview should be generated for th
e result." }, | 255 { "name": "generatePreview", "type": "boolean", "optional":
true, "experimental": true, "description": "Whether preview should be generated
for the result." }, |
225 { "name": "userGesture", "type": "boolean", "optional": true
, "hidden": true, "description": "Whether execution should be treated as initiat
ed by user in the UI." } | 256 { "name": "userGesture", "type": "boolean", "optional": true
, "experimental": true, "description": "Whether execution should be treated as i
nitiated by user in the UI." }, |
| 257 { "name": "awaitPromise", "type": "boolean", "optional":true
, "description": "Whether execution should wait for promise to be resolved. If t
he result of evaluation is not a Promise, it's considered to be an error." } |
226 ], | 258 ], |
227 "returns": [ | 259 "returns": [ |
228 { "name": "result", "$ref": "RemoteObject", "description": "
Call result." }, | 260 { "name": "result", "$ref": "RemoteObject", "description": "
Call result." }, |
229 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the result was thrown during the evaluation." } | 261 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} |
230 ], | 262 ], |
231 "description": "Calls function with given declaration on the giv
en object. Object group of the result is inherited from the target object." | 263 "description": "Calls function with given declaration on the giv
en object. Object group of the result is inherited from the target object." |
232 }, | 264 }, |
233 { | 265 { |
234 "name": "getProperties", | 266 "name": "getProperties", |
235 "parameters": [ | 267 "parameters": [ |
236 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to return properties for." }, | 268 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to return properties for." }, |
237 { "name": "ownProperties", "optional": true, "type": "boolea
n", "description": "If true, returns properties belonging only to the element it
self, not to its prototype chain." }, | 269 { "name": "ownProperties", "optional": true, "type": "boolea
n", "description": "If true, returns properties belonging only to the element it
self, not to its prototype chain." }, |
238 { "name": "accessorPropertiesOnly", "optional": true, "type"
: "boolean", "description": "If true, returns accessor properties (with getter/s
etter) only; internal properties are not returned either.", "hidden": true }, | 270 { "name": "accessorPropertiesOnly", "optional": true, "type"
: "boolean", "description": "If true, returns accessor properties (with getter/s
etter) only; internal properties are not returned either.", "experimental": true
}, |
239 { "name": "generatePreview", "type": "boolean", "optional":
true, "hidden": true, "description": "Whether preview should be generated for th
e results." } | 271 { "name": "generatePreview", "type": "boolean", "optional":
true, "experimental": true, "description": "Whether preview should be generated
for the results." } |
240 ], | 272 ], |
241 "returns": [ | 273 "returns": [ |
242 { "name": "result", "type": "array", "items": { "$ref": "Pro
pertyDescriptor" }, "description": "Object properties." }, | 274 { "name": "result", "type": "array", "items": { "$ref": "Pro
pertyDescriptor" }, "description": "Object properties." }, |
243 { "name": "internalProperties", "optional": true, "type": "a
rray", "items": { "$ref": "InternalPropertyDescriptor" }, "description": "Intern
al object properties (only of the element itself).", "hidden": true }, | 275 { "name": "internalProperties", "optional": true, "type": "a
rray", "items": { "$ref": "InternalPropertyDescriptor" }, "description": "Intern
al object properties (only of the element itself)." }, |
244 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "hidden": true, "description": "Exception details."} | 276 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} |
245 ], | 277 ], |
246 "description": "Returns properties of a given object. Object gro
up of the result is inherited from the target object." | 278 "description": "Returns properties of a given object. Object gro
up of the result is inherited from the target object." |
247 }, | 279 }, |
248 { | 280 { |
249 "name": "releaseObject", | 281 "name": "releaseObject", |
250 "parameters": [ | 282 "parameters": [ |
251 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to release." } | 283 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to release." } |
252 ], | 284 ], |
253 "description": "Releases remote object with given id." | 285 "description": "Releases remote object with given id." |
254 }, | 286 }, |
255 { | 287 { |
256 "name": "releaseObjectGroup", | 288 "name": "releaseObjectGroup", |
257 "parameters": [ | 289 "parameters": [ |
258 { "name": "objectGroup", "type": "string", "description": "S
ymbolic object group name." } | 290 { "name": "objectGroup", "type": "string", "description": "S
ymbolic object group name." } |
259 ], | 291 ], |
260 "description": "Releases all remote objects that belong to a giv
en group." | 292 "description": "Releases all remote objects that belong to a giv
en group." |
261 }, | 293 }, |
262 { | 294 { |
263 "name": "run", | 295 "name": "runIfWaitingForDebugger", |
264 "hidden": true, | 296 "description": "Tells inspected instance to run if it was waitin
g for debugger to attach." |
265 "description": "Tells inspected instance(worker or page) that it
can run in case it was started paused." | |
266 }, | 297 }, |
267 { | 298 { |
268 "name": "enable", | 299 "name": "enable", |
269 "description": "Enables reporting of execution contexts creation
by means of <code>executionContextCreated</code> event. When the reporting gets
enabled the event will be sent immediately for each existing execution context.
" | 300 "description": "Enables reporting of execution contexts creation
by means of <code>executionContextCreated</code> event. When the reporting gets
enabled the event will be sent immediately for each existing execution context.
" |
270 }, | 301 }, |
271 { | 302 { |
272 "name": "disable", | 303 "name": "disable", |
273 "hidden": true, | |
274 "description": "Disables reporting of execution contexts creatio
n." | 304 "description": "Disables reporting of execution contexts creatio
n." |
275 }, | 305 }, |
276 { | 306 { |
277 "name": "discardConsoleEntries", | 307 "name": "discardConsoleEntries", |
278 "hidden": true, | |
279 "description": "Discards collected exceptions and console API ca
lls." | 308 "description": "Discards collected exceptions and console API ca
lls." |
280 }, | 309 }, |
281 { | 310 { |
282 "name": "setCustomObjectFormatterEnabled", | 311 "name": "setCustomObjectFormatterEnabled", |
283 "parameters": [ | 312 "parameters": [ |
284 { | 313 { |
285 "name": "enabled", | 314 "name": "enabled", |
286 "type": "boolean" | 315 "type": "boolean" |
287 } | 316 } |
288 ], | 317 ], |
289 "hidden": true | 318 "experimental": true |
290 }, | 319 }, |
291 { | 320 { |
292 "name": "compileScript", | 321 "name": "compileScript", |
293 "hidden": true, | |
294 "parameters": [ | 322 "parameters": [ |
295 { "name": "expression", "type": "string", "description": "Ex
pression to compile." }, | 323 { "name": "expression", "type": "string", "description": "Ex
pression to compile." }, |
296 { "name": "sourceURL", "type": "string", "description": "Sou
rce url to be set for the script." }, | 324 { "name": "sourceURL", "type": "string", "description": "Sou
rce url to be set for the script." }, |
297 { "name": "persistScript", "type": "boolean", "description":
"Specifies whether the compiled script should be persisted." }, | 325 { "name": "persistScript", "type": "boolean", "description":
"Specifies whether the compiled script should be persisted." }, |
298 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "description": "Specifies in which isolated context to perform script run. Eac
h content script lives in an isolated context and this parameter is used to spec
ify one of those contexts." } | 326 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "optional": true, "description": "Specifies in which execution context to perf
orm script run. If the parameter is omitted the evaluation will be performed in
the context of the inspected page." } |
299 ], | 327 ], |
300 "returns": [ | 328 "returns": [ |
301 { "name": "scriptId", "$ref": "ScriptId", "optional": true,
"description": "Id of the script." }, | 329 { "name": "scriptId", "$ref": "ScriptId", "optional": true,
"description": "Id of the script." }, |
302 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} | 330 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} |
303 ], | 331 ], |
304 "description": "Compiles expression." | 332 "description": "Compiles expression." |
305 }, | 333 }, |
306 { | 334 { |
307 "name": "runScript", | 335 "name": "runScript", |
308 "hidden": true, | 336 "async": true, |
309 "parameters": [ | 337 "parameters": [ |
310 { "name": "scriptId", "$ref": "ScriptId", "description": "Id
of the script to run." }, | 338 { "name": "scriptId", "$ref": "ScriptId", "description": "Id
of the script to run." }, |
311 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "description": "Specifies in which isolated context to perform script run. Eac
h content script lives in an isolated context and this parameter is used to spec
ify one of those contexts." }, | 339 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "optional": true, "description": "Specifies in which execution context to perf
orm script run. If the parameter is omitted the evaluation will be performed in
the context of the inspected page." }, |
312 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, | 340 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, |
313 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b
oolean", "optional": true, "description": "Specifies whether script run should s
top on exceptions and mute console. Overrides setPauseOnException state." }, | 341 { "name": "silent", "type": "boolean", "optional": true, "de
scription": "In silent mode exceptions thrown during evaluation are not reported
and do not pause execution. Overrides <code>setPauseOnException</code> state."
}, |
314 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation." } | 342 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation." }, |
| 343 { "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." }, |
| 344 { "name": "generatePreview", "type": "boolean", "optional":
true, "description": "Whether preview should be generated for the result." }, |
| 345 { "name": "awaitPromise", "type": "boolean", "optional": tru
e, "description": "Whether execution should wait for promise to be resolved. If
the result of evaluation is not a Promise, it's considered to be an error." } |
315 ], | 346 ], |
316 "returns": [ | 347 "returns": [ |
317 { "name": "result", "$ref": "RemoteObject", "description": "
Run result." }, | 348 { "name": "result", "$ref": "RemoteObject", "description": "
Run result." }, |
318 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} | 349 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} |
319 ], | 350 ], |
320 "description": "Runs script with given id in a given context." | 351 "description": "Runs script with given id in a given context." |
321 } | 352 } |
322 ], | 353 ], |
323 "events": [ | 354 "events": [ |
324 { | 355 { |
(...skipping 11 matching lines...) Expand all Loading... |
336 "description": "Issued when execution context is destroyed." | 367 "description": "Issued when execution context is destroyed." |
337 }, | 368 }, |
338 { | 369 { |
339 "name": "executionContextsCleared", | 370 "name": "executionContextsCleared", |
340 "description": "Issued when all executionContexts were cleared i
n browser" | 371 "description": "Issued when all executionContexts were cleared i
n browser" |
341 }, | 372 }, |
342 { | 373 { |
343 "name": "exceptionThrown", | 374 "name": "exceptionThrown", |
344 "description": "Issued when exception was thrown and unhandled."
, | 375 "description": "Issued when exception was thrown and unhandled."
, |
345 "parameters": [ | 376 "parameters": [ |
346 { "name": "exceptionId", "type": "integer", "description": "
Exception id." }, | |
347 { "name": "timestamp", "$ref": "Timestamp", "description": "
Timestamp of the exception." }, | 377 { "name": "timestamp", "$ref": "Timestamp", "description": "
Timestamp of the exception." }, |
348 { "name": "details", "$ref": "ExceptionDetails" }, | 378 { "name": "exceptionDetails", "$ref": "ExceptionDetails" } |
349 { "name": "exception", "$ref": "RemoteObject", "optional": t
rue, "description": "Exception object." }, | 379 ] |
350 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "optional": true, "description": "Identifier of the context where exception ha
ppened." } | |
351 ], | |
352 "hidden": true | |
353 }, | 380 }, |
354 { | 381 { |
355 "name": "exceptionRevoked", | 382 "name": "exceptionRevoked", |
356 "description": "Issued when unhandled exception was revoked.", | 383 "description": "Issued when unhandled exception was revoked.", |
357 "parameters": [ | 384 "parameters": [ |
358 { "name": "message", "type": "string", "description": "Messa
ge describing why exception was revoked." }, | 385 { "name": "reason", "type": "string", "description": "Reason
describing why exception was revoked." }, |
359 { "name": "exceptionId", "type": "integer", "description": "
The id of revoked exception, as reported in <code>exceptionUnhandled</code>." } | 386 { "name": "exceptionId", "type": "integer", "description": "
The id of revoked exception, as reported in <code>exceptionUnhandled</code>." } |
360 ], | 387 ] |
361 "hidden": true | |
362 }, | 388 }, |
363 { | 389 { |
364 "name": "consoleAPICalled", | 390 "name": "consoleAPICalled", |
365 "description": "Issued when console API was called.", | 391 "description": "Issued when console API was called.", |
366 "parameters": [ | 392 "parameters": [ |
367 { "name": "type", "type": "string", "enum": ["log", "debug",
"info", "error", "warning", "dir", "dirxml", "table", "trace", "clear", "startG
roup", "startGroupCollapsed", "endGroup", "assert", "profile", "profileEnd"], "d
escription": "Type of the call." }, | 393 { "name": "type", "type": "string", "enum": ["log", "debug",
"info", "error", "warning", "dir", "dirxml", "table", "trace", "clear", "startG
roup", "startGroupCollapsed", "endGroup", "assert", "profile", "profileEnd"], "d
escription": "Type of the call." }, |
368 { "name": "args", "type": "array", "items": { "$ref": "Remot
eObject" }, "description": "Call arguments." }, | 394 { "name": "args", "type": "array", "items": { "$ref": "Remot
eObject" }, "description": "Call arguments." }, |
369 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "description": "Identifier of the context where the call was made." }, | 395 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "description": "Identifier of the context where the call was made." }, |
370 { "name": "timestamp", "$ref": "Timestamp", "description": "
Call timestamp." }, | 396 { "name": "timestamp", "$ref": "Timestamp", "description": "
Call timestamp." }, |
371 { "name": "stackTrace", "$ref": "StackTrace", "optional": tr
ue, "description": "Stack trace captured when the call was made." } | 397 { "name": "stackTrace", "$ref": "StackTrace", "optional": tr
ue, "description": "Stack trace captured when the call was made." } |
372 ], | 398 ] |
373 "hidden": true | |
374 }, | 399 }, |
375 { | 400 { |
376 "name": "inspectRequested", | 401 "name": "inspectRequested", |
| 402 "description": "Issued when object should be inspected (for exam
ple, as a result of inspect() command line API call).", |
377 "parameters": [ | 403 "parameters": [ |
378 { "name": "object", "$ref": "RemoteObject" }, | 404 { "name": "object", "$ref": "RemoteObject" }, |
379 { "name": "hints", "type": "object" } | 405 { "name": "hints", "type": "object" } |
380 ], | 406 ] |
381 "hidden": true | |
382 } | 407 } |
383 ] | 408 ] |
384 }, | 409 }, |
385 { | 410 { |
386 "domain": "Debugger", | 411 "domain": "Debugger", |
387 "description": "Debugger domain exposes JavaScript debugging capabilitie
s. It allows setting and removing breakpoints, stepping through execution, explo
ring stack traces, etc.", | 412 "description": "Debugger domain exposes JavaScript debugging capabilitie
s. It allows setting and removing breakpoints, stepping through execution, explo
ring stack traces, etc.", |
388 "dependencies": ["Runtime"], | 413 "dependencies": ["Runtime"], |
389 "types": [ | 414 "types": [ |
390 { | 415 { |
391 "id": "BreakpointId", | 416 "id": "BreakpointId", |
(...skipping 10 matching lines...) Expand all Loading... |
402 "type": "object", | 427 "type": "object", |
403 "properties": [ | 428 "properties": [ |
404 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Script identifier as reported in the <code>Debugger.scriptParsed</code>."
}, | 429 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Script identifier as reported in the <code>Debugger.scriptParsed</code>."
}, |
405 { "name": "lineNumber", "type": "integer", "description": "L
ine number in the script (0-based)." }, | 430 { "name": "lineNumber", "type": "integer", "description": "L
ine number in the script (0-based)." }, |
406 { "name": "columnNumber", "type": "integer", "optional": tru
e, "description": "Column number in the script (0-based)." } | 431 { "name": "columnNumber", "type": "integer", "optional": tru
e, "description": "Column number in the script (0-based)." } |
407 ], | 432 ], |
408 "description": "Location in the source code." | 433 "description": "Location in the source code." |
409 }, | 434 }, |
410 { | 435 { |
411 "id": "ScriptPosition", | 436 "id": "ScriptPosition", |
412 "hidden": true, | 437 "experimental": true, |
413 "type": "object", | 438 "type": "object", |
414 "properties": [ | 439 "properties": [ |
415 { "name": "lineNumber", "type": "integer" }, | 440 { "name": "lineNumber", "type": "integer" }, |
416 { "name": "columnNumber", "type": "integer" } | 441 { "name": "columnNumber", "type": "integer" } |
417 ], | 442 ], |
418 "description": "Location in the source code." | 443 "description": "Location in the source code." |
419 }, | 444 }, |
420 { | 445 { |
421 "id": "CallFrame", | 446 "id": "CallFrame", |
422 "type": "object", | 447 "type": "object", |
423 "properties": [ | 448 "properties": [ |
424 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Call frame identifier. This identifier is only valid while the virtual machi
ne is paused." }, | 449 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Call frame identifier. This identifier is only valid while the virtual machi
ne is paused." }, |
425 { "name": "functionName", "type": "string", "description": "
Name of the JavaScript function called on this call frame." }, | 450 { "name": "functionName", "type": "string", "description": "
Name of the JavaScript function called on this call frame." }, |
426 { "name": "functionLocation", "$ref": "Location", "optional"
: true, "hidden": true, "description": "Location in the source code." }, | 451 { "name": "functionLocation", "$ref": "Location", "optional"
: true, "experimental": true, "description": "Location in the source code." }, |
427 { "name": "location", "$ref": "Location", "description": "Lo
cation in the source code." }, | 452 { "name": "location", "$ref": "Location", "description": "Lo
cation in the source code." }, |
428 { "name": "scopeChain", "type": "array", "items": { "$ref":
"Scope" }, "description": "Scope chain for this call frame." }, | 453 { "name": "scopeChain", "type": "array", "items": { "$ref":
"Scope" }, "description": "Scope chain for this call frame." }, |
429 { "name": "this", "$ref": "Runtime.RemoteObject", "descripti
on": "<code>this</code> object for this call frame." }, | 454 { "name": "this", "$ref": "Runtime.RemoteObject", "descripti
on": "<code>this</code> object for this call frame." }, |
430 { "name": "returnValue", "$ref": "Runtime.RemoteObject", "op
tional": true, "hidden": true, "description": "The value being returned, if the
function is at return point." } | 455 { "name": "returnValue", "$ref": "Runtime.RemoteObject", "op
tional": true, "description": "The value being returned, if the function is at r
eturn point." } |
431 ], | 456 ], |
432 "description": "JavaScript call frame. Array of call frames form
the call stack." | 457 "description": "JavaScript call frame. Array of call frames form
the call stack." |
433 }, | 458 }, |
434 { | 459 { |
435 "id": "Scope", | 460 "id": "Scope", |
436 "type": "object", | 461 "type": "object", |
437 "properties": [ | 462 "properties": [ |
438 { "name": "type", "type": "string", "enum": ["global", "loca
l", "with", "closure", "catch", "block", "script"], "description": "Scope type."
}, | 463 { "name": "type", "type": "string", "enum": ["global", "loca
l", "with", "closure", "catch", "block", "script"], "description": "Scope type."
}, |
439 { "name": "object", "$ref": "Runtime.RemoteObject", "descrip
tion": "Object representing the scope. For <code>global</code> and <code>with</c
ode> scopes it represents the actual object; for the rest of the scopes, it is a
rtificial transient object enumerating scope variables as its properties." }, | 464 { "name": "object", "$ref": "Runtime.RemoteObject", "descrip
tion": "Object representing the scope. For <code>global</code> and <code>with</c
ode> scopes it represents the actual object; for the rest of the scopes, it is a
rtificial transient object enumerating scope variables as its properties." }, |
440 { "name": "name", "type": "string", "optional": true, "hidde
n": true }, | 465 { "name": "name", "type": "string", "optional": true }, |
441 { "name": "startLocation", "$ref": "Location", "optional": t
rue, "hidden": true, "description": "Location in the source code where scope sta
rts" }, | 466 { "name": "startLocation", "$ref": "Location", "optional": t
rue, "description": "Location in the source code where scope starts" }, |
442 { "name": "endLocation", "$ref": "Location", "optional": tru
e, "hidden": true, "description": "Location in the source code where scope ends"
} | 467 { "name": "endLocation", "$ref": "Location", "optional": tru
e, "description": "Location in the source code where scope ends" } |
443 ], | 468 ], |
444 "description": "Scope description." | 469 "description": "Scope description." |
445 }, | 470 }, |
446 { | 471 { |
447 "id": "SearchMatch", | 472 "id": "SearchMatch", |
448 "type": "object", | 473 "type": "object", |
449 "description": "Search match for resource.", | 474 "description": "Search match for resource.", |
450 "exported": true, | 475 "exported": true, |
451 "properties": [ | 476 "properties": [ |
452 { "name": "lineNumber", "type": "number", "description": "Li
ne number in resource content." }, | 477 { "name": "lineNumber", "type": "number", "description": "Li
ne number in resource content." }, |
453 { "name": "lineContent", "type": "string", "description": "L
ine with match content." } | 478 { "name": "lineContent", "type": "string", "description": "L
ine with match content." } |
454 ], | 479 ], |
455 "hidden": true | 480 "experimental": true |
456 } | 481 } |
457 ], | 482 ], |
458 "commands": [ | 483 "commands": [ |
459 { | 484 { |
460 "name": "enable", | 485 "name": "enable", |
461 "description": "Enables debugger for the given page. Clients sho
uld not assume that the debugging has been enabled until the result for this com
mand is received." | 486 "description": "Enables debugger for the given page. Clients sho
uld not assume that the debugging has been enabled until the result for this com
mand is received." |
462 }, | 487 }, |
463 { | 488 { |
464 "name": "disable", | 489 "name": "disable", |
465 "description": "Disables debugger for given page." | 490 "description": "Disables debugger for given page." |
466 }, | 491 }, |
467 { | 492 { |
468 "name": "setBreakpointsActive", | 493 "name": "setBreakpointsActive", |
469 "parameters": [ | 494 "parameters": [ |
470 { "name": "active", "type": "boolean", "description": "New v
alue for breakpoints active state." } | 495 { "name": "active", "type": "boolean", "description": "New v
alue for breakpoints active state." } |
471 ], | 496 ], |
472 "description": "Activates / deactivates all breakpoints on the p
age." | 497 "description": "Activates / deactivates all breakpoints on the p
age." |
473 }, | 498 }, |
474 { | 499 { |
475 "name": "setSkipAllPauses", | 500 "name": "setSkipAllPauses", |
476 "hidden": true, | |
477 "parameters": [ | 501 "parameters": [ |
478 { "name": "skipped", "type": "boolean", "description": "New
value for skip pauses state." } | 502 { "name": "skip", "type": "boolean", "description": "New val
ue for skip pauses state." } |
479 ], | 503 ], |
480 "description": "Makes page not interrupt on any pauses (breakpoi
nt, exception, dom exception etc)." | 504 "description": "Makes page not interrupt on any pauses (breakpoi
nt, exception, dom exception etc)." |
481 }, | 505 }, |
482 { | 506 { |
483 "name": "setBreakpointByUrl", | 507 "name": "setBreakpointByUrl", |
484 "parameters": [ | 508 "parameters": [ |
485 { "name": "lineNumber", "type": "integer", "description": "L
ine number to set breakpoint at." }, | 509 { "name": "lineNumber", "type": "integer", "description": "L
ine number to set breakpoint at." }, |
486 { "name": "url", "type": "string", "optional": true, "descri
ption": "URL of the resources to set breakpoint on." }, | 510 { "name": "url", "type": "string", "optional": true, "descri
ption": "URL of the resources to set breakpoint on." }, |
487 { "name": "urlRegex", "type": "string", "optional": true, "d
escription": "Regex pattern for the URLs of the resources to set breakpoints on.
Either <code>url</code> or <code>urlRegex</code> must be specified." }, | 511 { "name": "urlRegex", "type": "string", "optional": true, "d
escription": "Regex pattern for the URLs of the resources to set breakpoints on.
Either <code>url</code> or <code>urlRegex</code> must be specified." }, |
488 { "name": "columnNumber", "type": "integer", "optional": tru
e, "description": "Offset in the line to set breakpoint at." }, | 512 { "name": "columnNumber", "type": "integer", "optional": tru
e, "description": "Offset in the line to set breakpoint at." }, |
(...skipping 20 matching lines...) Expand all Loading... |
509 { | 533 { |
510 "name": "removeBreakpoint", | 534 "name": "removeBreakpoint", |
511 "parameters": [ | 535 "parameters": [ |
512 { "name": "breakpointId", "$ref": "BreakpointId" } | 536 { "name": "breakpointId", "$ref": "BreakpointId" } |
513 ], | 537 ], |
514 "description": "Removes JavaScript breakpoint." | 538 "description": "Removes JavaScript breakpoint." |
515 }, | 539 }, |
516 { | 540 { |
517 "name": "continueToLocation", | 541 "name": "continueToLocation", |
518 "parameters": [ | 542 "parameters": [ |
519 { "name": "location", "$ref": "Location", "description": "Lo
cation to continue to." }, | 543 { "name": "location", "$ref": "Location", "description": "Lo
cation to continue to." } |
520 { "name": "interstatementLocation", "type": "boolean", "opti
onal": true, "hidden": true, "description": "Allows breakpoints at the intemedia
te positions inside statements." } | |
521 ], | 544 ], |
522 "description": "Continues execution until specific location is r
eached." | 545 "description": "Continues execution until specific location is r
eached." |
523 }, | 546 }, |
524 { | 547 { |
525 "name": "stepOver", | 548 "name": "stepOver", |
526 "description": "Steps over the statement." | 549 "description": "Steps over the statement." |
527 }, | 550 }, |
528 { | 551 { |
529 "name": "stepInto", | 552 "name": "stepInto", |
530 "description": "Steps into the function call." | 553 "description": "Steps into the function call." |
(...skipping 14 matching lines...) Expand all Loading... |
545 "name": "searchInContent", | 568 "name": "searchInContent", |
546 "parameters": [ | 569 "parameters": [ |
547 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Id of the script to search in." }, | 570 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Id of the script to search in." }, |
548 { "name": "query", "type": "string", "description": "String
to search for." }, | 571 { "name": "query", "type": "string", "description": "String
to search for." }, |
549 { "name": "caseSensitive", "type": "boolean", "optional": tr
ue, "description": "If true, search is case sensitive." }, | 572 { "name": "caseSensitive", "type": "boolean", "optional": tr
ue, "description": "If true, search is case sensitive." }, |
550 { "name": "isRegex", "type": "boolean", "optional": true, "d
escription": "If true, treats string parameter as regex." } | 573 { "name": "isRegex", "type": "boolean", "optional": true, "d
escription": "If true, treats string parameter as regex." } |
551 ], | 574 ], |
552 "returns": [ | 575 "returns": [ |
553 { "name": "result", "type": "array", "items": { "$ref": "Sea
rchMatch" }, "description": "List of search matches." } | 576 { "name": "result", "type": "array", "items": { "$ref": "Sea
rchMatch" }, "description": "List of search matches." } |
554 ], | 577 ], |
| 578 "experimental": true, |
555 "description": "Searches for given string in script content." | 579 "description": "Searches for given string in script content." |
556 }, | 580 }, |
557 { | 581 { |
558 "name": "canSetScriptSource", | |
559 "returns": [ | |
560 { "name": "result", "type": "boolean", "description": "True
if <code>setScriptSource</code> is supported." } | |
561 ], | |
562 "description": "Always returns true." | |
563 }, | |
564 { | |
565 "name": "setScriptSource", | 582 "name": "setScriptSource", |
566 "parameters": [ | 583 "parameters": [ |
567 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Id of the script to edit." }, | 584 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Id of the script to edit." }, |
568 { "name": "scriptSource", "type": "string", "description": "
New content of the script." }, | 585 { "name": "scriptSource", "type": "string", "description": "
New content of the script." }, |
569 { "name": "preview", "type": "boolean", "optional": true, "d
escription": " If true the change will not actually be applied. Preview mode may
be used to get result description without actually modifying the code.", "hidde
n": true } | 586 { "name": "dryRun", "type": "boolean", "optional": true, "de
scription": " If true the change will not actually be applied. Dry run may be us
ed to get result description without actually modifying the code." } |
570 ], | 587 ], |
571 "returns": [ | 588 "returns": [ |
572 { "name": "callFrames", "type": "array", "optional": true, "
items": { "$ref": "CallFrame" }, "description": "New stack trace in case editing
has happened while VM was stopped." }, | 589 { "name": "callFrames", "type": "array", "optional": true, "
items": { "$ref": "CallFrame" }, "description": "New stack trace in case editing
has happened while VM was stopped." }, |
573 { "name": "stackChanged", "type": "boolean", "optional": tru
e, "description": "Whether current call stack was modified after applying the c
hanges.", "hidden": true }, | 590 { "name": "stackChanged", "type": "boolean", "optional": tru
e, "description": "Whether current call stack was modified after applying the c
hanges." }, |
574 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any.", "hidden": true }, | 591 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any." }, |
575 { "name": "compileError", "optional": true, "$ref": "Runtime
.ExceptionDetails", "description": "Error data if any." } | 592 { "name": "exceptionDetails", "optional": true, "$ref": "Run
time.ExceptionDetails", "description": "Exception details if any." } |
576 ], | 593 ], |
577 "description": "Edits JavaScript source live." | 594 "description": "Edits JavaScript source live." |
578 }, | 595 }, |
579 { | 596 { |
580 "name": "restartFrame", | 597 "name": "restartFrame", |
581 "parameters": [ | 598 "parameters": [ |
582 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Call frame identifier to evaluate on." } | 599 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Call frame identifier to evaluate on." } |
583 ], | 600 ], |
584 "returns": [ | 601 "returns": [ |
585 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "New stack trace." }, | 602 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "New stack trace." }, |
586 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any." } | 603 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any." } |
587 ], | 604 ], |
588 "hidden": true, | |
589 "description": "Restarts particular call frame from the beginnin
g." | 605 "description": "Restarts particular call frame from the beginnin
g." |
590 }, | 606 }, |
591 { | 607 { |
592 "name": "getScriptSource", | 608 "name": "getScriptSource", |
593 "parameters": [ | 609 "parameters": [ |
594 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Id of the script to get source for." } | 610 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Id of the script to get source for." } |
595 ], | 611 ], |
596 "returns": [ | 612 "returns": [ |
597 { "name": "scriptSource", "type": "string", "description": "
Script source." } | 613 { "name": "scriptSource", "type": "string", "description": "
Script source." } |
598 ], | 614 ], |
599 "description": "Returns source for the script with given id." | 615 "description": "Returns source for the script with given id." |
600 }, | 616 }, |
601 { | 617 { |
602 "name": "setPauseOnExceptions", | 618 "name": "setPauseOnExceptions", |
603 "parameters": [ | 619 "parameters": [ |
604 { "name": "state", "type": "string", "enum": ["none", "uncau
ght", "all"], "description": "Pause on exceptions mode." } | 620 { "name": "state", "type": "string", "enum": ["none", "uncau
ght", "all"], "description": "Pause on exceptions mode." } |
605 ], | 621 ], |
606 "description": "Defines pause on exceptions state. Can be set to
stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on
exceptions state is <code>none</code>." | 622 "description": "Defines pause on exceptions state. Can be set to
stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on
exceptions state is <code>none</code>." |
607 }, | 623 }, |
608 { | 624 { |
609 "name": "evaluateOnCallFrame", | 625 "name": "evaluateOnCallFrame", |
610 "parameters": [ | 626 "parameters": [ |
611 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Call frame identifier to evaluate on." }, | 627 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Call frame identifier to evaluate on." }, |
612 { "name": "expression", "type": "string", "description": "Ex
pression to evaluate." }, | 628 { "name": "expression", "type": "string", "description": "Ex
pression to evaluate." }, |
613 { "name": "objectGroup", "type": "string", "optional": true,
"description": "String object group name to put result into (allows rapid relea
sing resulting object handles using <code>releaseObjectGroup</code>)." }, | 629 { "name": "objectGroup", "type": "string", "optional": true,
"description": "String object group name to put result into (allows rapid relea
sing resulting object handles using <code>releaseObjectGroup</code>)." }, |
614 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Specifies whether command line API should be availab
le to the evaluated expression, defaults to false.", "hidden": true }, | 630 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Specifies whether command line API should be availab
le to the evaluated expression, defaults to false." }, |
615 { "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 }, | 631 { "name": "silent", "type": "boolean", "optional": true, "de
scription": "In silent mode exceptions thrown during evaluation are not reported
and do not pause execution. Overrides <code>setPauseOnException</code> state."
}, |
616 { "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." }, | 632 { "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." }, |
617 { "name": "generatePreview", "type": "boolean", "optional":
true, "hidden": true, "description": "Whether preview should be generated for th
e result." } | 633 { "name": "generatePreview", "type": "boolean", "optional":
true, "experimental": true, "description": "Whether preview should be generated
for the result." } |
618 ], | 634 ], |
619 "returns": [ | 635 "returns": [ |
620 { "name": "result", "$ref": "Runtime.RemoteObject", "descrip
tion": "Object wrapper for the evaluation result." }, | 636 { "name": "result", "$ref": "Runtime.RemoteObject", "descrip
tion": "Object wrapper for the evaluation result." }, |
621 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the result was thrown during the evaluation." }, | 637 { "name": "exceptionDetails", "$ref": "Runtime.ExceptionDeta
ils", "optional": true, "description": "Exception details."} |
622 { "name": "exceptionDetails", "$ref": "Runtime.ExceptionDeta
ils", "optional": true, "hidden": true, "description": "Exception details."} | |
623 ], | 638 ], |
624 "description": "Evaluates expression on a given call frame." | 639 "description": "Evaluates expression on a given call frame." |
625 }, | 640 }, |
626 { | 641 { |
627 "name": "setVariableValue", | 642 "name": "setVariableValue", |
628 "parameters": [ | 643 "parameters": [ |
629 { "name": "scopeNumber", "type": "integer", "description": "
0-based number of scope as was listed in scope chain. Only 'local', 'closure' an
d 'catch' scope types are allowed. Other scopes could be manipulated manually."
}, | 644 { "name": "scopeNumber", "type": "integer", "description": "
0-based number of scope as was listed in scope chain. Only 'local', 'closure' an
d 'catch' scope types are allowed. Other scopes could be manipulated manually."
}, |
630 { "name": "variableName", "type": "string", "description": "
Variable name." }, | 645 { "name": "variableName", "type": "string", "description": "
Variable name." }, |
631 { "name": "newValue", "$ref": "Runtime.CallArgument", "descr
iption": "New variable value." }, | 646 { "name": "newValue", "$ref": "Runtime.CallArgument", "descr
iption": "New variable value." }, |
632 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Id of callframe that holds variable." } | 647 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Id of callframe that holds variable." } |
633 ], | 648 ], |
634 "hidden": true, | |
635 "description": "Changes value of variable in a callframe. Object
-based scopes are not supported and must be mutated manually." | 649 "description": "Changes value of variable in a callframe. Object
-based scopes are not supported and must be mutated manually." |
636 }, | 650 }, |
637 { | 651 { |
638 "name": "getBacktrace", | |
639 "returns": [ | |
640 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "Call stack the virtual machine stopped on." }, | |
641 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any." } | |
642 ], | |
643 "hidden": true, | |
644 "description": "Returns call stack including variables changed s
ince VM was paused. VM must be paused." | |
645 }, | |
646 { | |
647 "name": "setAsyncCallStackDepth", | 652 "name": "setAsyncCallStackDepth", |
648 "parameters": [ | 653 "parameters": [ |
649 { "name": "maxDepth", "type": "integer", "description": "Max
imum depth of async call stacks. Setting to <code>0</code> will effectively disa
ble collecting async call stacks (default)." } | 654 { "name": "maxDepth", "type": "integer", "description": "Max
imum depth of async call stacks. Setting to <code>0</code> will effectively disa
ble collecting async call stacks (default)." } |
650 ], | 655 ], |
651 "hidden": true, | |
652 "description": "Enables or disables async call stacks tracking." | 656 "description": "Enables or disables async call stacks tracking." |
653 }, | 657 }, |
654 { | 658 { |
655 "name": "setBlackboxPatterns", | 659 "name": "setBlackboxPatterns", |
656 "parameters": [ | 660 "parameters": [ |
657 { "name": "patterns", "type": "array", "items": { "type": "s
tring" }, "description": "Array of regexps that will be used to check script url
for blackbox state." } | 661 { "name": "patterns", "type": "array", "items": { "type": "s
tring" }, "description": "Array of regexps that will be used to check script url
for blackbox state." } |
658 ], | 662 ], |
659 "hidden": true, | 663 "experimental": true, |
660 "description": "Replace previous blackbox patterns with passed o
nes. Forces backend to skip stepping/pausing in scripts with url matching one of
the patterns. VM will try to leave blackboxed script by performing 'step in' se
veral times, finally resorting to 'step out' if unsuccessful." | 664 "description": "Replace previous blackbox patterns with passed o
nes. Forces backend to skip stepping/pausing in scripts with url matching one of
the patterns. VM will try to leave blackboxed script by performing 'step in' se
veral times, finally resorting to 'step out' if unsuccessful." |
661 }, | 665 }, |
662 { | 666 { |
663 "name": "setBlackboxedRanges", | 667 "name": "setBlackboxedRanges", |
664 "parameters": [ | 668 "parameters": [ |
665 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Id of the script." }, | 669 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Id of the script." }, |
666 { "name": "positions", "type": "array", "items": { "$ref": "
ScriptPosition" } } | 670 { "name": "positions", "type": "array", "items": { "$ref": "
ScriptPosition" } } |
667 ], | 671 ], |
668 "hidden": true, | 672 "experimental": true, |
669 "description": "Makes backend skip steps in the script in blackb
oxed ranges. VM will try leave blacklisted scripts by performing 'step in' sever
al times, finally resorting to 'step out' if unsuccessful. Positions array conta
ins positions where blackbox state is changed. First interval isn't blackboxed.
Array should be sorted." | 673 "description": "Makes backend skip steps in the script in blackb
oxed ranges. VM will try leave blacklisted scripts by performing 'step in' sever
al times, finally resorting to 'step out' if unsuccessful. Positions array conta
ins positions where blackbox state is changed. First interval isn't blackboxed.
Array should be sorted." |
670 } | 674 } |
671 ], | 675 ], |
672 "events": [ | 676 "events": [ |
673 { | 677 { |
674 "name": "scriptParsed", | 678 "name": "scriptParsed", |
675 "parameters": [ | 679 "parameters": [ |
676 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Identifier of the script parsed." }, | 680 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Identifier of the script parsed." }, |
677 { "name": "url", "type": "string", "description": "URL or na
me of the script parsed (if any)." }, | 681 { "name": "url", "type": "string", "description": "URL or na
me of the script parsed (if any)." }, |
678 { "name": "startLine", "type": "integer", "description": "Li
ne offset of the script within the resource with given URL (for script tags)." }
, | 682 { "name": "startLine", "type": "integer", "description": "Li
ne offset of the script within the resource with given URL (for script tags)." }
, |
679 { "name": "startColumn", "type": "integer", "description": "
Column offset of the script within the resource with given URL." }, | 683 { "name": "startColumn", "type": "integer", "description": "
Column offset of the script within the resource with given URL." }, |
680 { "name": "endLine", "type": "integer", "description": "Last
line of the script." }, | 684 { "name": "endLine", "type": "integer", "description": "Last
line of the script." }, |
681 { "name": "endColumn", "type": "integer", "description": "Le
ngth of the last line of the script." }, | 685 { "name": "endColumn", "type": "integer", "description": "Le
ngth of the last line of the script." }, |
682 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo
ntextId", "description": "Specifies script creation context.", "hidden": true }, | 686 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo
ntextId", "description": "Specifies script creation context." }, |
683 { "name": "hash", "type": "string", "hidden": true, "descrip
tion": "Content hash of the script."}, | 687 { "name": "hash", "type": "string", "description": "Content
hash of the script."}, |
684 { "name": "isContentScript", "type": "boolean", "optional":
true, "description": "Determines whether this script is a user extension script.
" }, | 688 { "name": "executionContextAuxData", "type": "object", "opti
onal": true, "description": "Embedder-specific auxiliary data." }, |
685 { "name": "isInternalScript", "type": "boolean", "optional":
true, "description": "Determines whether this script is an internal script.", "
hidden": true }, | 689 { "name": "isLiveEdit", "type": "boolean", "optional": true,
"description": "True, if this script is generated as a result of the live edit
operation.", "experimental": true }, |
686 { "name": "isLiveEdit", "type": "boolean", "optional": true,
"description": "True, if this script is generated as a result of the live edit
operation.", "hidden": true }, | |
687 { "name": "sourceMapURL", "type": "string", "optional": true
, "description": "URL of source map associated with script (if any)." }, | 690 { "name": "sourceMapURL", "type": "string", "optional": true
, "description": "URL of source map associated with script (if any)." }, |
688 { "name": "hasSourceURL", "type": "boolean", "optional": tru
e, "description": "True, if this script has sourceURL.", "hidden": true }, | 691 { "name": "hasSourceURL", "type": "boolean", "optional": tru
e, "description": "True, if this script has sourceURL.", "experimental": true } |
689 { "name": "deprecatedCommentWasUsed", "type": "boolean", "op
tional": true, "hidden": true, "description": "True, if '//@ sourceURL' or '//@
sourceMappingURL' was used."} | |
690 ], | 692 ], |
691 "description": "Fired when virtual machine parses script. This e
vent is also fired for all known and uncollected scripts upon enabling debugger.
" | 693 "description": "Fired when virtual machine parses script. This e
vent is also fired for all known and uncollected scripts upon enabling debugger.
" |
692 }, | 694 }, |
693 { | 695 { |
694 "name": "scriptFailedToParse", | 696 "name": "scriptFailedToParse", |
695 "parameters": [ | 697 "parameters": [ |
696 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Identifier of the script parsed." }, | 698 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Identifier of the script parsed." }, |
697 { "name": "url", "type": "string", "description": "URL or na
me of the script parsed (if any)." }, | 699 { "name": "url", "type": "string", "description": "URL or na
me of the script parsed (if any)." }, |
698 { "name": "startLine", "type": "integer", "description": "Li
ne offset of the script within the resource with given URL (for script tags)." }
, | 700 { "name": "startLine", "type": "integer", "description": "Li
ne offset of the script within the resource with given URL (for script tags)." }
, |
699 { "name": "startColumn", "type": "integer", "description": "
Column offset of the script within the resource with given URL." }, | 701 { "name": "startColumn", "type": "integer", "description": "
Column offset of the script within the resource with given URL." }, |
700 { "name": "endLine", "type": "integer", "description": "Last
line of the script." }, | 702 { "name": "endLine", "type": "integer", "description": "Last
line of the script." }, |
701 { "name": "endColumn", "type": "integer", "description": "Le
ngth of the last line of the script." }, | 703 { "name": "endColumn", "type": "integer", "description": "Le
ngth of the last line of the script." }, |
702 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo
ntextId", "description": "Specifies script creation context.", "hidden": true }, | 704 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo
ntextId", "description": "Specifies script creation context." }, |
703 { "name": "hash", "type": "string", "hidden": true, "descrip
tion": "Content hash of the script."}, | 705 { "name": "hash", "type": "string", "description": "Content
hash of the script."}, |
704 { "name": "isContentScript", "type": "boolean", "optional":
true, "description": "Determines whether this script is a user extension script.
" }, | 706 { "name": "executionContextAuxData", "type": "object", "opti
onal": true, "description": "Embedder-specific auxiliary data." }, |
705 { "name": "isInternalScript", "type": "boolean", "optional":
true, "description": "Determines whether this script is an internal script.", "
hidden": true }, | |
706 { "name": "sourceMapURL", "type": "string", "optional": true
, "description": "URL of source map associated with script (if any)." }, | 707 { "name": "sourceMapURL", "type": "string", "optional": true
, "description": "URL of source map associated with script (if any)." }, |
707 { "name": "hasSourceURL", "type": "boolean", "optional": tru
e, "description": "True, if this script has sourceURL.", "hidden": true }, | 708 { "name": "hasSourceURL", "type": "boolean", "optional": tru
e, "description": "True, if this script has sourceURL.", "experimental": true } |
708 { "name": "deprecatedCommentWasUsed", "type": "boolean", "op
tional": true, "hidden": true, "description": "True, if '//@ sourceURL' or '//@
sourceMappingURL' was used."} | |
709 ], | 709 ], |
710 "description": "Fired when virtual machine fails to parse the sc
ript." | 710 "description": "Fired when virtual machine fails to parse the sc
ript." |
711 }, | 711 }, |
712 { | 712 { |
713 "name": "breakpointResolved", | 713 "name": "breakpointResolved", |
714 "parameters": [ | 714 "parameters": [ |
715 { "name": "breakpointId", "$ref": "BreakpointId", "descripti
on": "Breakpoint unique identifier." }, | 715 { "name": "breakpointId", "$ref": "BreakpointId", "descripti
on": "Breakpoint unique identifier." }, |
716 { "name": "location", "$ref": "Location", "description": "Ac
tual breakpoint location." } | 716 { "name": "location", "$ref": "Location", "description": "Ac
tual breakpoint location." } |
717 ], | 717 ], |
718 "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." |
719 }, | 719 }, |
720 { | 720 { |
721 "name": "paused", | 721 "name": "paused", |
722 "parameters": [ | 722 "parameters": [ |
723 { "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." }, |
724 { "name": "reason", "type": "string", "enum": [ "XHR", "DOM"
, "EventListener", "exception", "assert", "debugCommand", "promiseRejection", "o
ther" ], "description": "Pause reason.", "exported": true }, | 724 { "name": "reason", "type": "string", "enum": [ "XHR", "DOM"
, "EventListener", "exception", "assert", "debugCommand", "promiseRejection", "o
ther" ], "description": "Pause reason.", "exported": true }, |
725 { "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." }, |
726 { "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" }, |
727 { "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." } |
728 ], | 728 ], |
729 "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." |
730 }, | 730 }, |
731 { | 731 { |
732 "name": "resumed", | 732 "name": "resumed", |
733 "description": "Fired when the virtual machine resumed execution
." | 733 "description": "Fired when the virtual machine resumed execution
." |
734 } | 734 } |
735 ] | 735 ] |
736 }, | 736 }, |
737 { | 737 { |
(...skipping 30 matching lines...) Expand all Loading... |
768 "description": "Does nothing." | 768 "description": "Does nothing." |
769 } | 769 } |
770 ], | 770 ], |
771 "events": [ | 771 "events": [ |
772 { | 772 { |
773 "name": "messageAdded", | 773 "name": "messageAdded", |
774 "parameters": [ | 774 "parameters": [ |
775 { "name": "message", "$ref": "ConsoleMessage", "description"
: "Console message that has been added." } | 775 { "name": "message", "$ref": "ConsoleMessage", "description"
: "Console message that has been added." } |
776 ], | 776 ], |
777 "description": "Issued when new console message is added." | 777 "description": "Issued when new console message is added." |
778 }, | |
779 { | |
780 "name": "messageRepeatCountUpdated", | |
781 "parameters": [ | |
782 { "name": "count", "type": "integer", "description": "New re
peat count value." }, | |
783 { "name": "timestamp", "$ref": "Runtime.Timestamp", "descrip
tion": "Timestamp of most recent message in batch.", "hidden": true } | |
784 ], | |
785 "description": "Not issued.", | |
786 "deprecated": true | |
787 }, | |
788 { | |
789 "name": "messagesCleared", | |
790 "description": "Not issued.", | |
791 "deprecated": true | |
792 } | 778 } |
793 ] | 779 ] |
794 }, | 780 }, |
795 { | 781 { |
796 "domain": "Profiler", | 782 "domain": "Profiler", |
797 "dependencies": ["Runtime", "Debugger"], | 783 "dependencies": ["Runtime", "Debugger"], |
798 "hidden": true, | |
799 "types": [ | 784 "types": [ |
800 { | 785 { |
801 "id": "CPUProfileNode", | 786 "id": "ProfileNode", |
802 "type": "object", | 787 "type": "object", |
803 "description": "CPU Profile node. Holds callsite information, ex
ecution statistics and child nodes.", | 788 "description": "Profile node. Holds callsite information, execut
ion statistics and child nodes.", |
804 "properties": [ | 789 "properties": [ |
| 790 { "name": "id", "type": "integer", "description": "Unique id
of the node." }, |
805 { "name": "callFrame", "$ref": "Runtime.CallFrame", "descrip
tion": "Function location." }, | 791 { "name": "callFrame", "$ref": "Runtime.CallFrame", "descrip
tion": "Function location." }, |
806 { "name": "hitCount", "type": "integer", "description": "Num
ber of samples where this node was on top of the call stack." }, | 792 { "name": "hitCount", "type": "integer", "optional": true, "
experimental": true, "description": "Number of samples where this node was on to
p of the call stack." }, |
807 { "name": "children", "type": "array", "items": { "$ref": "C
PUProfileNode" }, "description": "Child nodes." }, | 793 { "name": "children", "type": "array", "items": { "type": "i
nteger" }, "optional": true, "description": "Child node ids." }, |
808 { "name": "deoptReason", "type": "string", "description": "T
he reason of being not optimized. The function may be deoptimized or marked as d
on't optimize."}, | 794 { "name": "deoptReason", "type": "string", "optional": true,
"description": "The reason of being not optimized. The function may be deoptimi
zed or marked as don't optimize."}, |
809 { "name": "id", "type": "integer", "description": "Unique id
of the node." }, | 795 { "name": "positionTicks", "type": "array", "items": { "$ref
": "PositionTickInfo" }, "optional": true, "experimental": true, "description":
"An array of source position ticks." } |
810 { "name": "positionTicks", "type": "array", "items": { "$ref
": "PositionTickInfo" }, "description": "An array of source position ticks." } | |
811 ] | 796 ] |
812 }, | 797 }, |
813 { | 798 { |
814 "id": "CPUProfile", | 799 "id": "Profile", |
815 "type": "object", | 800 "type": "object", |
816 "description": "Profile.", | 801 "description": "Profile.", |
817 "properties": [ | 802 "properties": [ |
818 { "name": "head", "$ref": "CPUProfileNode" }, | 803 { "name": "nodes", "type": "array", "items": { "$ref": "Prof
ileNode" }, "description": "The list of profile nodes. First item is the root no
de." }, |
819 { "name": "startTime", "type": "number", "description": "Pro
filing start time in seconds." }, | 804 { "name": "startTime", "type": "number", "description": "Pro
filing start timestamp in microseconds." }, |
820 { "name": "endTime", "type": "number", "description": "Profi
ling end time in seconds." }, | 805 { "name": "endTime", "type": "number", "description": "Profi
ling end timestamp in microseconds." }, |
821 { "name": "samples", "optional": true, "type": "array", "ite
ms": { "type": "integer" }, "description": "Ids of samples top nodes." }, | 806 { "name": "samples", "optional": true, "type": "array", "ite
ms": { "type": "integer" }, "description": "Ids of samples top nodes." }, |
822 { "name": "timestamps", "optional": true, "type": "array", "
items": { "type": "number" }, "description": "Timestamps of the samples in micro
seconds." } | 807 { "name": "timeDeltas", "optional": true, "type": "array", "
items": { "type": "integer" }, "description": "Time intervals between adjacent s
amples in microseconds. The first delta is relative to the profile startTime." } |
823 ] | 808 ] |
824 }, | 809 }, |
825 { | 810 { |
826 "id": "PositionTickInfo", | 811 "id": "PositionTickInfo", |
827 "type": "object", | 812 "type": "object", |
| 813 "experimental": true, |
828 "description": "Specifies a number of samples attributed to a ce
rtain source position.", | 814 "description": "Specifies a number of samples attributed to a ce
rtain source position.", |
829 "properties": [ | 815 "properties": [ |
830 { "name": "line", "type": "integer", "description": "Source
line number (1-based)." }, | 816 { "name": "line", "type": "integer", "description": "Source
line number (1-based)." }, |
831 { "name": "ticks", "type": "integer", "description": "Number
of samples attributed to the source line." } | 817 { "name": "ticks", "type": "integer", "description": "Number
of samples attributed to the source line." } |
832 ] | 818 ] |
833 } | 819 } |
834 ], | 820 ], |
835 "commands": [ | 821 "commands": [ |
836 { | 822 { |
837 "name": "enable" | 823 "name": "enable" |
838 }, | 824 }, |
839 { | 825 { |
840 "name": "disable" | 826 "name": "disable" |
841 }, | 827 }, |
842 { | 828 { |
843 "name": "setSamplingInterval", | 829 "name": "setSamplingInterval", |
844 "parameters": [ | 830 "parameters": [ |
845 { "name": "interval", "type": "integer", "description": "New
sampling interval in microseconds." } | 831 { "name": "interval", "type": "integer", "description": "New
sampling interval in microseconds." } |
846 ], | 832 ], |
847 "description": "Changes CPU profiler sampling interval. Must be
called before CPU profiles recording started." | 833 "description": "Changes CPU profiler sampling interval. Must be
called before CPU profiles recording started." |
848 }, | 834 }, |
849 { | 835 { |
850 "name": "start" | 836 "name": "start" |
851 }, | 837 }, |
852 { | 838 { |
853 "name": "stop", | 839 "name": "stop", |
854 "returns": [ | 840 "returns": [ |
855 { "name": "profile", "$ref": "CPUProfile", "description": "R
ecorded profile." } | 841 { "name": "profile", "$ref": "Profile", "description": "Reco
rded profile." } |
856 ] | 842 ] |
857 } | 843 } |
858 ], | 844 ], |
859 "events": [ | 845 "events": [ |
860 { | 846 { |
861 "name": "consoleProfileStarted", | 847 "name": "consoleProfileStarted", |
862 "parameters": [ | 848 "parameters": [ |
863 { "name": "id", "type": "string" }, | 849 { "name": "id", "type": "string" }, |
864 { "name": "location", "$ref": "Debugger.Location", "descript
ion": "Location of console.profile()." }, | 850 { "name": "location", "$ref": "Debugger.Location", "descript
ion": "Location of console.profile()." }, |
865 { "name": "title", "type": "string", "optional": true, "desc
ription": "Profile title passed as argument to console.profile()." } | 851 { "name": "title", "type": "string", "optional": true, "desc
ription": "Profile title passed as an argument to console.profile()." } |
866 ], | 852 ], |
867 "description": "Sent when new profile recodring is started using
console.profile() call." | 853 "description": "Sent when new profile recodring is started using
console.profile() call." |
868 }, | 854 }, |
869 { | 855 { |
870 "name": "consoleProfileFinished", | 856 "name": "consoleProfileFinished", |
871 "parameters": [ | 857 "parameters": [ |
872 { "name": "id", "type": "string" }, | 858 { "name": "id", "type": "string" }, |
873 { "name": "location", "$ref": "Debugger.Location", "descript
ion": "Location of console.profileEnd()." }, | 859 { "name": "location", "$ref": "Debugger.Location", "descript
ion": "Location of console.profileEnd()." }, |
874 { "name": "profile", "$ref": "CPUProfile" }, | 860 { "name": "profile", "$ref": "Profile" }, |
875 { "name": "title", "type": "string", "optional": true, "desc
ription": "Profile title passed as argunet to console.profile()." } | 861 { "name": "title", "type": "string", "optional": true, "desc
ription": "Profile title passed as an argument to console.profile()." } |
876 ] | 862 ] |
877 } | 863 } |
878 ] | 864 ] |
879 }, | 865 }, |
880 { | 866 { |
881 "domain": "HeapProfiler", | 867 "domain": "HeapProfiler", |
882 "dependencies": ["Runtime"], | 868 "dependencies": ["Runtime"], |
883 "hidden": true, | 869 "experimental": true, |
884 "types": [ | 870 "types": [ |
885 { | 871 { |
886 "id": "HeapSnapshotObjectId", | 872 "id": "HeapSnapshotObjectId", |
887 "type": "string", | 873 "type": "string", |
888 "description": "Heap snapshot object id." | 874 "description": "Heap snapshot object id." |
889 }, | 875 }, |
890 { | 876 { |
891 "id": "SamplingHeapProfileNode", | 877 "id": "SamplingHeapProfileNode", |
892 "type": "object", | 878 "type": "object", |
893 "description": "Sampling Heap Profile node. Holds callsite infor
mation, allocation statistics and child nodes.", | 879 "description": "Sampling Heap Profile node. Holds callsite infor
mation, allocation statistics and child nodes.", |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 { | 988 { |
1003 "name": "heapStatsUpdate", | 989 "name": "heapStatsUpdate", |
1004 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", | 990 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", |
1005 "parameters": [ | 991 "parameters": [ |
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."} | 992 { "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."} |
1007 ] | 993 ] |
1008 } | 994 } |
1009 ] | 995 ] |
1010 }] | 996 }] |
1011 } | 997 } |
OLD | NEW |