Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: src/inspector/js_protocol.json

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

Powered by Google App Engine
This is Rietveld 408576698