OLD | NEW |
1 { | 1 { |
2 "version": { "major": "1", "minor": "2" }, | 2 "version": { "major": "1", "minor": "2" }, |
3 "domains": [ | 3 "domains": [ |
4 { | 4 { |
5 "domain": "Schema", | 5 "domain": "Schema", |
6 "description": "Provides information about the protocol schema.", | 6 "description": "Provides information about the protocol schema.", |
7 "types": [ | 7 "types": [ |
8 { | 8 { |
9 "id": "Domain", | 9 "id": "Domain", |
10 "type": "object", | 10 "type": "object", |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 { | 197 { |
198 "id": "StackTrace", | 198 "id": "StackTrace", |
199 "type": "object", | 199 "type": "object", |
200 "description": "Call frames for assertions or error messages.", | 200 "description": "Call frames for assertions or error messages.", |
201 "properties": [ | 201 "properties": [ |
202 { "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." }, | 202 { "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." }, |
203 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "JavaScript function name." }, | 203 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "JavaScript function name." }, |
204 { "name": "parent", "$ref": "StackTrace", "optional": true,
"description": "Asynchronous JavaScript stack trace that preceded this stack, if
available." }, | 204 { "name": "parent", "$ref": "StackTrace", "optional": true,
"description": "Asynchronous JavaScript stack trace that preceded this stack, if
available." }, |
205 { "name": "promiseCreationFrame", "$ref": "CallFrame", "opti
onal": true, "experimental": true, "description": "Creation frame of the Promise
which produced the next synchronous trace when resolved, if available." } | 205 { "name": "promiseCreationFrame", "$ref": "CallFrame", "opti
onal": true, "experimental": true, "description": "Creation frame of the Promise
which produced the next synchronous trace when resolved, if available." } |
206 ] | 206 ] |
| 207 }, |
| 208 { "id": "CoverageRange", |
| 209 "type": "object", |
| 210 "description": "Coverage data for a source range.", |
| 211 "properties": [ |
| 212 { "name": "startLineNumber", "type": "integer", "description
": "JavaScript script line number (0-based) for the range start." }, |
| 213 { "name": "startColumnNumber", "type": "integer", "descripti
on": "JavaScript script column number (0-based) for the range start." }, |
| 214 { "name": "endLineNumber", "type": "integer", "description":
"JavaScript script line number (0-based) for the range end." }, |
| 215 { "name": "endColumnNumber", "type": "integer", "description
": "JavaScript script column number (0-based) for the range end." }, |
| 216 { "name": "count", "type": "integer", "description": "Collec
ted execution count of the source range." } |
| 217 ], |
| 218 "experimental": "true" |
| 219 }, |
| 220 { "id": "FunctionCoverage", |
| 221 "type": "object", |
| 222 "description": "Coverage data for a JavaScript function.", |
| 223 "properties": [ |
| 224 { "name": "functionName", "type": "string", "description": "
JavaScript function name." }, |
| 225 { "name": "ranges", "type": "array", "items": { "$ref": "Cov
erageRange" }, "description": "Source ranges inside the function with coverage d
ata." } |
| 226 ], |
| 227 "experimental": "true" |
| 228 }, |
| 229 { |
| 230 "id": "ScriptCoverage", |
| 231 "type": "object", |
| 232 "description": "Coverage data for a JavaScript script.", |
| 233 "properties": [ |
| 234 { "name": "scriptId", "$ref": "ScriptId", "description": "Ja
vaScript script id." }, |
| 235 { "name": "url", "type": "string", "description": "JavaScrip
t script name or url." }, |
| 236 { "name": "functions", "type": "array", "items": { "$ref": "
FunctionCoverage" }, "description": "Functions contained in the script that has
coverage data." } |
| 237 ], |
| 238 "experimental": "true" |
207 } | 239 } |
208 ], | 240 ], |
209 "commands": [ | 241 "commands": [ |
210 { | 242 { |
211 "name": "evaluate", | 243 "name": "evaluate", |
212 "parameters": [ | 244 "parameters": [ |
213 { "name": "expression", "type": "string", "description": "Ex
pression to evaluate." }, | 245 { "name": "expression", "type": "string", "description": "Ex
pression to evaluate." }, |
214 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, | 246 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, |
215 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation." }, | 247 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation." }, |
216 { "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."
}, | 248 { "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."
}, |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation." }, | 368 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation." }, |
337 { "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." }, | 369 { "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." }, |
338 { "name": "generatePreview", "type": "boolean", "optional":
true, "description": "Whether preview should be generated for the result." }, | 370 { "name": "generatePreview", "type": "boolean", "optional":
true, "description": "Whether preview should be generated for the result." }, |
339 { "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." } | 371 { "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." } |
340 ], | 372 ], |
341 "returns": [ | 373 "returns": [ |
342 { "name": "result", "$ref": "RemoteObject", "description": "
Run result." }, | 374 { "name": "result", "$ref": "RemoteObject", "description": "
Run result." }, |
343 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} | 375 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} |
344 ], | 376 ], |
345 "description": "Runs script with given id in a given context." | 377 "description": "Runs script with given id in a given context." |
| 378 }, |
| 379 { |
| 380 "name": "startPreciseCoverage", |
| 381 "description": "Enable precise code coverage. Coverage data for
JavaScript executed before enabling precise code coverage may be incomplete. Ena
bling prevents running optimized code and resets execution counters.", |
| 382 "experimental": true |
| 383 }, |
| 384 { |
| 385 "name": "stopPreciseCoverage", |
| 386 "description": "Disable precise code coverage. Disabling release
s unnecessary execution count records and allows executing optimized code.", |
| 387 "experimental": true |
| 388 }, |
| 389 { |
| 390 "name": "takePreciseCoverage", |
| 391 "returns": [ |
| 392 { "name": "result", "type": "array", "items": { "$ref": "Scr
iptCoverage" }, "description": "Coverage data for the current isolate." } |
| 393 ], |
| 394 "description": "Collect coverage data for the current isolate, a
nd resets execution counters. Precise code coverage needs to have started.", |
| 395 "experimental": true |
| 396 }, |
| 397 { |
| 398 "name": "getBestEffortCoverage", |
| 399 "returns": [ |
| 400 { "name": "result", "type": "array", "items": { "$ref": "Scr
iptCoverage" }, "description": "Coverage data for the current isolate." } |
| 401 ], |
| 402 "description": "Collect coverage data for the current isolate. T
he coverage data may be incomplete due to garbage collection.", |
| 403 "experimental": true |
346 } | 404 } |
347 ], | 405 ], |
348 "events": [ | 406 "events": [ |
349 { | 407 { |
350 "name": "executionContextCreated", | 408 "name": "executionContextCreated", |
351 "parameters": [ | 409 "parameters": [ |
352 { "name": "context", "$ref": "ExecutionContextDescription",
"description": "A newly created execution contex." } | 410 { "name": "context", "$ref": "ExecutionContextDescription",
"description": "A newly created execution contex." } |
353 ], | 411 ], |
354 "description": "Issued when new execution context is created." | 412 "description": "Issued when new execution context is created." |
355 }, | 413 }, |
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 { | 1054 { |
997 "name": "heapStatsUpdate", | 1055 "name": "heapStatsUpdate", |
998 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", | 1056 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", |
999 "parameters": [ | 1057 "parameters": [ |
1000 { "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."} | 1058 { "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."} |
1001 ] | 1059 ] |
1002 } | 1060 } |
1003 ] | 1061 ] |
1004 }] | 1062 }] |
1005 } | 1063 } |
OLD | NEW |