OLD | NEW |
1 { | 1 { |
2 "version": { "major": "1", "minor": "1" }, | 2 "version": { "major": "1", "minor": "1" }, |
3 "domains": [{ | 3 "domains": [{ |
4 "domain": "Runtime", | 4 "domain": "Runtime", |
5 "description": "Runtime domain exposes JavaScript runtime by means of re
mote evaluation and mirror objects. Evaluation results are returned as mirror ob
ject that expose object type, string representation and unique identifier that c
an be used for further object reference. Original objects are maintained in memo
ry unless they are either explicitly released or are released along with the oth
er objects in their object group.", | 5 "description": "Runtime domain exposes JavaScript runtime by means of re
mote evaluation and mirror objects. Evaluation results are returned as mirror ob
ject that expose object type, string representation and unique identifier that c
an be used for further object reference. Original objects are maintained in memo
ry unless they are either explicitly released or are released along with the oth
er objects in their object group.", |
6 "types": [ | 6 "types": [ |
7 { | 7 { |
8 "id": "ScriptId", | 8 "id": "ScriptId", |
9 "type": "string", | 9 "type": "string", |
10 "description": "Unique script identifier." | 10 "description": "Unique script identifier." |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 { "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." }, | 126 { "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": "isDefault", "type": "boolean", "description": "Wh
ether context is the default page context (as opposite to e.g. context of conten
t script).", "hidden": true }, | 127 { "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 }, |
128 { "name": "origin", "type": "string", "description": "Execut
ion context origin.", "hidden": true}, | 128 { "name": "origin", "type": "string", "description": "Execut
ion context origin.", "hidden": true}, |
129 { "name": "name", "type": "string", "description": "Human re
adable name describing given context.", "hidden": true}, | 129 { "name": "name", "type": "string", "description": "Human re
adable name describing given context.", "hidden": true}, |
130 { "name": "frameId", "type": "string", "description": "Id of
the owning frame. May be an empty string if the context is not associated with
a frame." } | 130 { "name": "frameId", "type": "string", "description": "Id of
the owning frame. May be an empty string if the context is not associated with
a frame." } |
131 ] | 131 ] |
132 }, | 132 }, |
133 { | 133 { |
134 "id": "ExceptionDetails", | 134 "id": "ExceptionDetails", |
135 "type": "object", | 135 "type": "object", |
136 "description": "Detailed information on exception (or error) tha
t was thrown during script compilation or execution.", | 136 "hidden": true, |
| 137 "description": "Detailed information about exception (or error)
that was thrown during script compilation or execution.", |
137 "properties": [ | 138 "properties": [ |
138 { "name": "text", "type": "string", "description": "Exceptio
n text." }, | 139 { "name": "text", "type": "string", "description": "Exceptio
n text." }, |
139 { "name": "url", "type": "string", "optional": true, "descri
ption": "URL of the message origin." }, | 140 { "name": "scriptId", "$ref": "ScriptId", "description": "Sc
ript ID of the exception location." }, |
140 { "name": "scriptId", "type": "string", "optional": true, "d
escription": "Script ID of the message origin." }, | 141 { "name": "lineNumber", "type": "integer", "description": "L
ine number of the exception location (0-based)." }, |
141 { "name": "line", "type": "integer", "optional": true, "desc
ription": "Line number in the resource that generated this message." }, | 142 { "name": "columnNumber", "type": "integer", "description":
"Column number of the exception location (0-based)." }, |
142 { "name": "column", "type": "integer", "optional": true, "de
scription": "Column number in the resource that generated this message." }, | 143 { "name": "url", "type": "string", "optional": true, "descri
ption": "URL of the exception location, to be used when the script was not repor
ted." }, |
143 { "name": "stack", "$ref": "StackTrace", "optional": true, "
description": "JavaScript stack trace for assertions and error messages." } | 144 { "name": "stackTrace", "$ref": "StackTrace", "optional": tr
ue, "description": "JavaScript stack trace if available." } |
144 ] | 145 ] |
145 }, | 146 }, |
146 { | 147 { |
| 148 "id": "Timestamp", |
| 149 "type": "number", |
| 150 "description": "Number of milliseconds since epoch.", |
| 151 "hidden": true |
| 152 }, |
| 153 { |
147 "id": "CallFrame", | 154 "id": "CallFrame", |
148 "type": "object", | 155 "type": "object", |
149 "description": "Stack entry for runtime errors and assertions.", | 156 "description": "Stack entry for runtime errors and assertions.", |
150 "properties": [ | 157 "properties": [ |
151 { "name": "functionName", "type": "string", "description": "
JavaScript function name." }, | 158 { "name": "functionName", "type": "string", "description": "
JavaScript function name." }, |
152 { "name": "scriptId", "$ref": "ScriptId", "description": "Ja
vaScript script id." }, | 159 { "name": "scriptId", "$ref": "ScriptId", "description": "Ja
vaScript script id." }, |
153 { "name": "url", "type": "string", "description": "JavaScrip
t script name or url." }, | 160 { "name": "url", "type": "string", "description": "JavaScrip
t script name or url." }, |
154 { "name": "lineNumber", "type": "integer", "description": "J
avaScript script line number." }, | 161 { "name": "lineNumber", "type": "integer", "description": "J
avaScript script line number (0-based)." }, |
155 { "name": "columnNumber", "type": "integer", "description":
"JavaScript script column number." } | 162 { "name": "columnNumber", "type": "integer", "description":
"JavaScript script column number (0-based)." } |
156 ] | 163 ] |
157 }, | 164 }, |
158 { | 165 { |
159 "id": "StackTrace", | 166 "id": "StackTrace", |
160 "type": "object", | 167 "type": "object", |
161 "description": "Call frames for assertions or error messages.", | 168 "description": "Call frames for assertions or error messages.", |
162 "properties": [ | 169 "properties": [ |
163 { "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." }, | 170 { "name": "description", "type": "string", "optional": true,
"description": "String label of this stack trace. For async traces this may be
a name of the function that initiated the async call." }, |
164 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "JavaScript function name." }, | 171 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "JavaScript function name." }, |
165 { "name": "parent", "$ref": "StackTrace", "optional": true,
"hidden": true, "description": "Asynchronous JavaScript stack trace that precede
d this stack, if available." } | 172 { "name": "parent", "$ref": "StackTrace", "optional": true,
"hidden": true, "description": "Asynchronous JavaScript stack trace that precede
d this stack, if available." } |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 "parameters": [ | 308 "parameters": [ |
302 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "description": "Id of the destroyed context" } | 309 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "description": "Id of the destroyed context" } |
303 ], | 310 ], |
304 "description": "Issued when execution context is destroyed." | 311 "description": "Issued when execution context is destroyed." |
305 }, | 312 }, |
306 { | 313 { |
307 "name": "executionContextsCleared", | 314 "name": "executionContextsCleared", |
308 "description": "Issued when all executionContexts were cleared i
n browser" | 315 "description": "Issued when all executionContexts were cleared i
n browser" |
309 }, | 316 }, |
310 { | 317 { |
| 318 "name": "exceptionThrown", |
| 319 "description": "Issued when exception was thrown and unhandled."
, |
| 320 "parameters": [ |
| 321 { "name": "exceptionId", "type": "integer", "description": "
Exception id." }, |
| 322 { "name": "timestamp", "$ref": "Timestamp", "description": "
Timestamp of the exception." }, |
| 323 { "name": "details", "$ref": "ExceptionDetails" }, |
| 324 { "name": "exception", "$ref": "RemoteObject", "optional": t
rue, "description": "Exception object." }, |
| 325 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "optional": true, "description": "Identifier of the context where exception ha
ppened." } |
| 326 ], |
| 327 "hidden": true |
| 328 }, |
| 329 { |
| 330 "name": "exceptionRevoked", |
| 331 "description": "Issued when unhandled exception was revoked.", |
| 332 "parameters": [ |
| 333 { "name": "message", "type": "string", "description": "Messa
ge describing why exception was revoked." }, |
| 334 { "name": "exceptionId", "type": "integer", "description": "
The id of revoked exception, as reported in <code>exceptionUnhandled</code>." } |
| 335 ], |
| 336 "hidden": true |
| 337 }, |
| 338 { |
| 339 "name": "consoleAPICalled", |
| 340 "description": "Issued when console API was called.", |
| 341 "parameters": [ |
| 342 { "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." }, |
| 343 { "name": "args", "type": "array", "items": { "$ref": "Remot
eObject" }, "description": "Call arguments." }, |
| 344 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "description": "Identifier of the context where the call was made." }, |
| 345 { "name": "timestamp", "$ref": "Timestamp", "description": "
Call timestamp." }, |
| 346 { "name": "stackTrace", "$ref": "StackTrace", "optional": tr
ue, "description": "Stack trace captured when the call was made." } |
| 347 ], |
| 348 "hidden": true |
| 349 }, |
| 350 { |
311 "name": "inspectRequested", | 351 "name": "inspectRequested", |
312 "parameters": [ | 352 "parameters": [ |
313 { "name": "object", "$ref": "RemoteObject" }, | 353 { "name": "object", "$ref": "RemoteObject" }, |
314 { "name": "hints", "type": "object" } | 354 { "name": "hints", "type": "object" } |
315 ], | 355 ], |
316 "hidden": true | 356 "hidden": true |
317 } | 357 } |
318 ] | 358 ] |
319 }, | 359 }, |
320 { | 360 { |
(...skipping 19 matching lines...) Expand all Loading... |
340 { "name": "lineNumber", "type": "integer", "description": "L
ine number in the script (0-based)." }, | 380 { "name": "lineNumber", "type": "integer", "description": "L
ine number in the script (0-based)." }, |
341 { "name": "columnNumber", "type": "integer", "optional": tru
e, "description": "Column number in the script (0-based)." } | 381 { "name": "columnNumber", "type": "integer", "optional": tru
e, "description": "Column number in the script (0-based)." } |
342 ], | 382 ], |
343 "description": "Location in the source code." | 383 "description": "Location in the source code." |
344 }, | 384 }, |
345 { | 385 { |
346 "id": "ScriptPosition", | 386 "id": "ScriptPosition", |
347 "hidden": true, | 387 "hidden": true, |
348 "type": "object", | 388 "type": "object", |
349 "properties": [ | 389 "properties": [ |
350 { "name": "line", "type": "integer" }, | 390 { "name": "lineNumber", "type": "integer" }, |
351 { "name": "column", "type": "integer" } | 391 { "name": "columnNumber", "type": "integer" } |
352 ], | 392 ], |
353 "description": "Location in the source code." | 393 "description": "Location in the source code." |
354 }, | 394 }, |
355 { | 395 { |
356 "id": "FunctionDetails", | |
357 "hidden": true, | |
358 "type": "object", | |
359 "properties": [ | |
360 { "name": "location", "$ref": "Location", "optional": true,
"description": "Location of the function, none for native functions." }, | |
361 { "name": "functionName", "type": "string", "description": "
Name of the function." }, | |
362 { "name": "isGenerator", "type": "boolean", "description": "
Whether this is a generator function." }, | |
363 { "name": "scopeChain", "type": "array", "optional": true, "
items": { "$ref": "Scope" }, "description": "Scope chain for this closure." } | |
364 ], | |
365 "description": "Information about the function." | |
366 }, | |
367 { | |
368 "id": "CallFrame", | 396 "id": "CallFrame", |
369 "type": "object", | 397 "type": "object", |
370 "properties": [ | 398 "properties": [ |
371 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Call frame identifier. This identifier is only valid while the virtual machi
ne is paused." }, | 399 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Call frame identifier. This identifier is only valid while the virtual machi
ne is paused." }, |
372 { "name": "functionName", "type": "string", "description": "
Name of the JavaScript function called on this call frame." }, | 400 { "name": "functionName", "type": "string", "description": "
Name of the JavaScript function called on this call frame." }, |
373 { "name": "functionLocation", "$ref": "Location", "optional"
: true, "hidden": true, "description": "Location in the source code." }, | 401 { "name": "functionLocation", "$ref": "Location", "optional"
: true, "hidden": true, "description": "Location in the source code." }, |
374 { "name": "location", "$ref": "Location", "description": "Lo
cation in the source code." }, | 402 { "name": "location", "$ref": "Location", "description": "Lo
cation in the source code." }, |
375 { "name": "scopeChain", "type": "array", "items": { "$ref":
"Scope" }, "description": "Scope chain for this call frame." }, | 403 { "name": "scopeChain", "type": "array", "items": { "$ref":
"Scope" }, "description": "Scope chain for this call frame." }, |
376 { "name": "this", "$ref": "Runtime.RemoteObject", "descripti
on": "<code>this</code> object for this call frame." }, | 404 { "name": "this", "$ref": "Runtime.RemoteObject", "descripti
on": "<code>this</code> object for this call frame." }, |
377 { "name": "returnValue", "$ref": "Runtime.RemoteObject", "op
tional": true, "hidden": true, "description": "The value being returned, if the
function is at return point." } | 405 { "name": "returnValue", "$ref": "Runtime.RemoteObject", "op
tional": true, "hidden": true, "description": "The value being returned, if the
function is at return point." } |
378 ], | 406 ], |
379 "description": "JavaScript call frame. Array of call frames form
the call stack." | 407 "description": "JavaScript call frame. Array of call frames form
the call stack." |
380 }, | 408 }, |
381 { | 409 { |
382 "id": "Scope", | 410 "id": "Scope", |
383 "type": "object", | 411 "type": "object", |
384 "properties": [ | 412 "properties": [ |
385 { "name": "type", "type": "string", "enum": ["global", "loca
l", "with", "closure", "catch", "block", "script"], "description": "Scope type."
}, | 413 { "name": "type", "type": "string", "enum": ["global", "loca
l", "with", "closure", "catch", "block", "script"], "description": "Scope type."
}, |
386 { "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." }, | 414 { "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." }, |
387 { "name": "name", "type": "string", "optional": true, "hidde
n": true }, | 415 { "name": "name", "type": "string", "optional": true, "hidde
n": true }, |
388 { "name": "startLocation", "$ref": "Location", "optional": t
rue, "hidden": true, "description": "Location in the source code where scope sta
rts" }, | 416 { "name": "startLocation", "$ref": "Location", "optional": t
rue, "hidden": true, "description": "Location in the source code where scope sta
rts" }, |
389 { "name": "endLocation", "$ref": "Location", "optional": tru
e, "hidden": true, "description": "Location in the source code where scope ends"
} | 417 { "name": "endLocation", "$ref": "Location", "optional": tru
e, "hidden": true, "description": "Location in the source code where scope ends"
} |
390 ], | 418 ], |
391 "description": "Scope description." | 419 "description": "Scope description." |
392 }, | 420 }, |
393 { | 421 { |
394 "id": "SetScriptSourceError", | |
395 "type": "object", | |
396 "properties": [ | |
397 { "name": "message", "type": "string", "description": "Compi
ler error message" }, | |
398 { "name": "lineNumber", "type": "integer", "description": "C
ompile error line number (1-based)" }, | |
399 { "name": "columnNumber", "type": "integer", "description":
"Compile error column number (1-based)" } | |
400 ], | |
401 "description": "Error data for setScriptSource command. Contains
uncompilable script source error.", | |
402 "hidden": true | |
403 }, | |
404 { | |
405 "id": "SearchMatch", | 422 "id": "SearchMatch", |
406 "type": "object", | 423 "type": "object", |
407 "description": "Search match for resource.", | 424 "description": "Search match for resource.", |
408 "properties": [ | 425 "properties": [ |
409 { "name": "lineNumber", "type": "number", "description": "Li
ne number in resource content." }, | 426 { "name": "lineNumber", "type": "number", "description": "Li
ne number in resource content." }, |
410 { "name": "lineContent", "type": "string", "description": "L
ine with match content." } | 427 { "name": "lineContent", "type": "string", "description": "L
ine with match content." } |
411 ], | 428 ], |
412 "hidden": true | 429 "hidden": true |
413 } | 430 } |
414 ], | 431 ], |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 "name": "setScriptSource", | 539 "name": "setScriptSource", |
523 "parameters": [ | 540 "parameters": [ |
524 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Id of the script to edit." }, | 541 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Id of the script to edit." }, |
525 { "name": "scriptSource", "type": "string", "description": "
New content of the script." }, | 542 { "name": "scriptSource", "type": "string", "description": "
New content of the script." }, |
526 { "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 } | 543 { "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 } |
527 ], | 544 ], |
528 "returns": [ | 545 "returns": [ |
529 { "name": "callFrames", "type": "array", "optional": true, "
items": { "$ref": "CallFrame" }, "description": "New stack trace in case editing
has happened while VM was stopped." }, | 546 { "name": "callFrames", "type": "array", "optional": true, "
items": { "$ref": "CallFrame" }, "description": "New stack trace in case editing
has happened while VM was stopped." }, |
530 { "name": "stackChanged", "type": "boolean", "optional": tru
e, "description": "Whether current call stack was modified after applying the c
hanges.", "hidden": true }, | 547 { "name": "stackChanged", "type": "boolean", "optional": tru
e, "description": "Whether current call stack was modified after applying the c
hanges.", "hidden": true }, |
531 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any.", "hidden": true }, | 548 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any.", "hidden": true }, |
532 { "name": "compileError", "optional": true, "$ref": "SetScri
ptSourceError", "description": "Error data if any." } | 549 { "name": "compileError", "optional": true, "$ref": "Runtime
.ExceptionDetails", "description": "Error data if any." } |
533 ], | 550 ], |
534 "description": "Edits JavaScript source live." | 551 "description": "Edits JavaScript source live." |
535 }, | 552 }, |
536 { | 553 { |
537 "name": "restartFrame", | 554 "name": "restartFrame", |
538 "parameters": [ | 555 "parameters": [ |
539 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Call frame identifier to evaluate on." } | 556 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Call frame identifier to evaluate on." } |
540 ], | 557 ], |
541 "returns": [ | 558 "returns": [ |
542 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "New stack trace." }, | 559 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "New stack trace." }, |
543 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any." } | 560 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any." } |
544 ], | 561 ], |
545 "hidden": true, | 562 "hidden": true, |
546 "description": "Restarts particular call frame from the beginnin
g." | 563 "description": "Restarts particular call frame from the beginnin
g." |
547 }, | 564 }, |
548 { | 565 { |
549 "name": "getScriptSource", | 566 "name": "getScriptSource", |
550 "parameters": [ | 567 "parameters": [ |
551 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Id of the script to get source for." } | 568 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Id of the script to get source for." } |
552 ], | 569 ], |
553 "returns": [ | 570 "returns": [ |
554 { "name": "scriptSource", "type": "string", "description": "
Script source." } | 571 { "name": "scriptSource", "type": "string", "description": "
Script source." } |
555 ], | 572 ], |
556 "description": "Returns source for the script with given id." | 573 "description": "Returns source for the script with given id." |
557 }, | 574 }, |
558 { | 575 { |
559 "name": "getFunctionDetails", | |
560 "hidden": true, | |
561 "parameters": [ | |
562 { "name": "functionId", "$ref": "Runtime.RemoteObjectId", "d
escription": "Id of the function to get details for." } | |
563 ], | |
564 "returns": [ | |
565 { "name": "details", "$ref": "FunctionDetails", "description
": "Information about the function." } | |
566 ], | |
567 "description": "Returns detailed information on given function." | |
568 }, | |
569 { | |
570 "name": "setPauseOnExceptions", | 576 "name": "setPauseOnExceptions", |
571 "parameters": [ | 577 "parameters": [ |
572 { "name": "state", "type": "string", "enum": ["none", "uncau
ght", "all"], "description": "Pause on exceptions mode." } | 578 { "name": "state", "type": "string", "enum": ["none", "uncau
ght", "all"], "description": "Pause on exceptions mode." } |
573 ], | 579 ], |
574 "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>." | 580 "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>." |
575 }, | 581 }, |
576 { | 582 { |
577 "name": "evaluateOnCallFrame", | 583 "name": "evaluateOnCallFrame", |
578 "parameters": [ | 584 "parameters": [ |
579 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Call frame identifier to evaluate on." }, | 585 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Call frame identifier to evaluate on." }, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 "parameters": [ | 688 "parameters": [ |
683 { "name": "breakpointId", "$ref": "BreakpointId", "descripti
on": "Breakpoint unique identifier." }, | 689 { "name": "breakpointId", "$ref": "BreakpointId", "descripti
on": "Breakpoint unique identifier." }, |
684 { "name": "location", "$ref": "Location", "description": "Ac
tual breakpoint location." } | 690 { "name": "location", "$ref": "Location", "description": "Ac
tual breakpoint location." } |
685 ], | 691 ], |
686 "description": "Fired when breakpoint is resolved to an actual s
cript and location." | 692 "description": "Fired when breakpoint is resolved to an actual s
cript and location." |
687 }, | 693 }, |
688 { | 694 { |
689 "name": "paused", | 695 "name": "paused", |
690 "parameters": [ | 696 "parameters": [ |
691 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "Call stack the virtual machine stopped on." }, | 697 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "Call stack the virtual machine stopped on." }, |
692 { "name": "reason", "type": "string", "enum": [ "XHR", "DOM"
, "EventListener", "exception", "assert", "CSPViolation", "debugCommand", "promi
seRejection", "other" ], "description": "Pause reason." }, | 698 { "name": "reason", "type": "string", "enum": [ "XHR", "DOM"
, "EventListener", "exception", "assert", "debugCommand", "promiseRejection", "o
ther" ], "description": "Pause reason." }, |
693 { "name": "data", "type": "object", "optional": true, "descr
iption": "Object containing break-specific auxiliary properties." }, | 699 { "name": "data", "type": "object", "optional": true, "descr
iption": "Object containing break-specific auxiliary properties." }, |
694 { "name": "hitBreakpoints", "type": "array", "optional": tru
e, "items": { "type": "string" }, "description": "Hit breakpoints IDs", "hidden"
: true }, | 700 { "name": "hitBreakpoints", "type": "array", "optional": tru
e, "items": { "type": "string" }, "description": "Hit breakpoints IDs", "hidden"
: true }, |
695 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any.", "hidden": true } | 701 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any.", "hidden": true } |
696 ], | 702 ], |
697 "description": "Fired when the virtual machine stopped on breakp
oint or exception or any other stop criteria." | 703 "description": "Fired when the virtual machine stopped on breakp
oint or exception or any other stop criteria." |
698 }, | 704 }, |
699 { | 705 { |
700 "name": "resumed", | 706 "name": "resumed", |
701 "description": "Fired when the virtual machine resumed execution
." | 707 "description": "Fired when the virtual machine resumed execution
." |
702 } | 708 } |
703 ] | 709 ] |
704 }, | 710 }, |
705 { | 711 { |
706 "domain": "Console", | 712 "domain": "Console", |
707 "description": "Console domain defines methods and events for interactio
n with the JavaScript console. Console collects messages created by means of the
<a href='http://getfirebug.com/wiki/index.php/Console_API'>JavaScript Console A
PI</a>. One needs to enable this domain using <code>enable</code> command in ord
er to start receiving the console messages. Browser collects messages issued whi
le console domain is not enabled as well and reports them using <code>messageAdd
ed</code> notification upon enabling.", | 713 "description": "Console domain defines methods and events for interactio
n with the JavaScript console. Console collects messages created by means of the
<a href='http://getfirebug.com/wiki/index.php/Console_API'>JavaScript Console A
PI</a>. One needs to enable this domain using <code>enable</code> command in ord
er to start receiving the console messages. Browser collects messages issued whi
le console domain is not enabled as well and reports them using <code>messageAdd
ed</code> notification upon enabling.", |
708 "dependencies": ["Runtime"], | 714 "dependencies": ["Runtime"], |
709 "types": [ | 715 "types": [ |
710 { | 716 { |
711 "id": "Timestamp", | |
712 "type": "number", | |
713 "description": "Number of seconds since epoch.", | |
714 "hidden": true | |
715 }, | |
716 { | |
717 "id": "ConsoleMessage", | 717 "id": "ConsoleMessage", |
718 "type": "object", | 718 "type": "object", |
719 "description": "Console message.", | 719 "description": "Console message.", |
720 "properties": [ | 720 "properties": [ |
721 { "name": "source", "type": "string", "enum": ["xml", "javas
cript", "network", "console-api", "storage", "appcache", "rendering", "security"
, "other", "deprecation"], "description": "Message source." }, | 721 { "name": "source", "type": "string", "enum": ["xml", "javas
cript", "network", "console-api", "storage", "appcache", "rendering", "security"
, "other", "deprecation", "worker"], "description": "Message source." }, |
722 { "name": "level", "type": "string", "enum": ["log", "warnin
g", "error", "debug", "info", "revokedError"], "description": "Message severity.
" }, | 722 { "name": "level", "type": "string", "enum": ["log", "warnin
g", "error", "debug", "info"], "description": "Message severity." }, |
723 { "name": "text", "type": "string", "description": "Message
text." }, | 723 { "name": "text", "type": "string", "description": "Message
text." }, |
724 { "name": "type", "type": "string", "optional": true, "enum"
: ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupC
ollapsed", "endGroup", "assert", "profile", "profileEnd"], "description": "Conso
le message type." }, | 724 { "name": "type", "type": "string", "optional": true, "enum"
: ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupC
ollapsed", "endGroup", "assert", "profile", "profileEnd"], "description": "Never
present. Use Runtime.consoleAPICalled instead." }, |
725 { "name": "scriptId", "type": "string", "optional": true, "d
escription": "Script ID of the message origin." }, | 725 { "name": "scriptId", "type": "string", "optional": true, "d
escription": "Script ID of the message origin." }, |
726 { "name": "url", "type": "string", "optional": true, "descri
ption": "URL of the message origin." }, | 726 { "name": "url", "type": "string", "optional": true, "descri
ption": "URL of the message origin." }, |
727 { "name": "line", "type": "integer", "optional": true, "desc
ription": "Line number in the resource that generated this message." }, | 727 { "name": "line", "type": "integer", "optional": true, "desc
ription": "Line number in the resource that generated this message." }, |
728 { "name": "column", "type": "integer", "optional": true, "de
scription": "Column number in the resource that generated this message." }, | 728 { "name": "column", "type": "integer", "optional": true, "de
scription": "Column number in the resource that generated this message." }, |
729 { "name": "repeatCount", "type": "integer", "optional": true
, "description": "Repeat count for repeated messages." }, | 729 { "name": "repeatCount", "type": "integer", "optional": true
, "description": "Repeat count for repeated messages." }, |
730 { "name": "parameters", "type": "array", "items": { "$ref":
"Runtime.RemoteObject" }, "optional": true, "description": "Message parameters i
n case of the formatted message." }, | 730 { "name": "parameters", "type": "array", "items": { "$ref":
"Runtime.RemoteObject" }, "optional": true, "description": "Never present. Use R
untime.consoleAPICalled instead." }, |
731 { "name": "stack", "$ref": "Runtime.StackTrace", "optional":
true, "description": "JavaScript stack trace for assertions and error messages.
" }, | 731 { "name": "stack", "$ref": "Runtime.StackTrace", "optional":
true, "description": "JavaScript stack trace for assertions and error messages.
" }, |
732 { "name": "networkRequestId", "type": "string", "optional":
true, "description": "Identifier of the network request associated with this mes
sage." }, | 732 { "name": "networkRequestId", "type": "string", "optional":
true, "description": "Identifier of the network request associated with this mes
sage." }, |
733 { "name": "timestamp", "$ref": "Timestamp", "description": "
Timestamp, when this message was fired.", "hidden": true }, | 733 { "name": "timestamp", "$ref": "Runtime.Timestamp", "descrip
tion": "Timestamp, when this message was fired.", "hidden": true }, |
734 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo
ntextId", "optional": true, "description": "Identifier of the context where this
message was created", "hidden": true }, | 734 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo
ntextId", "optional": true, "description": "Identifier of the context where this
message was created", "hidden": true }, |
735 { "name": "messageId", "type": "integer", "hidden": true, "o
ptional": true, "description": "Message id." }, | 735 { "name": "workerId", "type": "string", "optional": true, "d
escription": "Identifier of the worker this message came from.", "hidden": true
} |
736 { "name": "relatedMessageId", "type": "integer", "hidden": t
rue, "optional": true, "description": "Related message id." } | |
737 ] | 736 ] |
738 } | 737 } |
739 ], | 738 ], |
740 "commands": [ | 739 "commands": [ |
741 { | 740 { |
742 "name": "enable", | 741 "name": "enable", |
743 "description": "Enables console domain, sends the messages colle
cted so far to the client by means of the <code>messageAdded</code> notification
." | 742 "description": "Enables console domain, sends the messages colle
cted so far to the client by means of the <code>messageAdded</code> notification
." |
744 }, | 743 }, |
745 { | 744 { |
746 "name": "disable", | 745 "name": "disable", |
747 "description": "Disables console domain, prevents further consol
e messages from being reported to the client." | 746 "description": "Disables console domain, prevents further consol
e messages from being reported to the client." |
748 }, | 747 }, |
749 { | 748 { |
750 "name": "clearMessages", | 749 "name": "clearMessages", |
751 "description": "Clears console messages collected in the browser
." | 750 "description": "Clears console messages collected in the browser
." |
752 } | 751 } |
753 ], | 752 ], |
754 "events": [ | 753 "events": [ |
755 { | 754 { |
756 "name": "messageAdded", | 755 "name": "messageAdded", |
757 "parameters": [ | 756 "parameters": [ |
758 { "name": "message", "$ref": "ConsoleMessage", "description"
: "Console message that has been added." } | 757 { "name": "message", "$ref": "ConsoleMessage", "description"
: "Console message that has been added." } |
759 ], | 758 ], |
760 "description": "Issued when new console message is added." | 759 "description": "Issued when new console message is added." |
761 }, | 760 }, |
762 { | 761 { |
763 "name": "messageRepeatCountUpdated", | 762 "name": "messageRepeatCountUpdated", |
764 "parameters": [ | 763 "parameters": [ |
765 { "name": "count", "type": "integer", "description": "New re
peat count value." }, | 764 { "name": "count", "type": "integer", "description": "New re
peat count value." }, |
766 { "name": "timestamp", "$ref": "Timestamp", "description": "
Timestamp of most recent message in batch.", "hidden": true } | 765 { "name": "timestamp", "$ref": "Runtime.Timestamp", "descrip
tion": "Timestamp of most recent message in batch.", "hidden": true } |
767 ], | 766 ], |
768 "description": "Is not issued. Will be gone in the future versio
ns of the protocol.", | 767 "description": "Is not issued. Will be gone in the future versio
ns of the protocol.", |
769 "deprecated": true | 768 "deprecated": true |
770 }, | 769 }, |
771 { | 770 { |
772 "name": "messagesCleared", | 771 "name": "messagesCleared", |
773 "description": "Issued when console is cleared. This happens eit
her upon <code>clearMessages</code> command or after page navigation." | 772 "description": "Not issued.", |
| 773 "deprecated": true |
774 } | 774 } |
775 ] | 775 ] |
776 }, | 776 }, |
777 { | 777 { |
778 "domain": "Profiler", | 778 "domain": "Profiler", |
779 "dependencies": ["Runtime", "Debugger"], | 779 "dependencies": ["Runtime", "Debugger"], |
780 "hidden": true, | 780 "hidden": true, |
781 "types": [ | 781 "types": [ |
782 { | 782 { |
783 "id": "CPUProfileNode", | 783 "id": "CPUProfileNode", |
784 "type": "object", | 784 "type": "object", |
785 "description": "CPU Profile node. Holds callsite information, ex
ecution statistics and child nodes.", | 785 "description": "CPU Profile node. Holds callsite information, ex
ecution statistics and child nodes.", |
786 "properties": [ | 786 "properties": [ |
787 { "name": "functionName", "type": "string", "description": "
Function name." }, | 787 { "name": "callFrame", "$ref": "Runtime.CallFrame", "descrip
tion": "Function location." }, |
788 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Script identifier." }, | |
789 { "name": "url", "type": "string", "description": "URL." }, | |
790 { "name": "lineNumber", "type": "integer", "description": "1
-based line number of the function start position." }, | |
791 { "name": "columnNumber", "type": "integer", "description":
"1-based column number of the function start position." }, | |
792 { "name": "hitCount", "type": "integer", "description": "Num
ber of samples where this node was on top of the call stack." }, | 788 { "name": "hitCount", "type": "integer", "description": "Num
ber of samples where this node was on top of the call stack." }, |
793 { "name": "callUID", "type": "number", "description": "Call
UID." }, | |
794 { "name": "children", "type": "array", "items": { "$ref": "C
PUProfileNode" }, "description": "Child nodes." }, | 789 { "name": "children", "type": "array", "items": { "$ref": "C
PUProfileNode" }, "description": "Child nodes." }, |
795 { "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": "deoptReason", "type": "string", "description": "T
he reason of being not optimized. The function may be deoptimized or marked as d
on't optimize."}, |
796 { "name": "id", "type": "integer", "description": "Unique id
of the node." }, | 791 { "name": "id", "type": "integer", "description": "Unique id
of the node." }, |
797 { "name": "positionTicks", "type": "array", "items": { "$ref
": "PositionTickInfo" }, "description": "An array of source position ticks." } | 792 { "name": "positionTicks", "type": "array", "items": { "$ref
": "PositionTickInfo" }, "description": "An array of source position ticks." } |
798 ] | 793 ] |
799 }, | 794 }, |
800 { | 795 { |
801 "id": "CPUProfile", | 796 "id": "CPUProfile", |
802 "type": "object", | 797 "type": "object", |
803 "description": "Profile.", | 798 "description": "Profile.", |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 { | 867 { |
873 "id": "HeapSnapshotObjectId", | 868 "id": "HeapSnapshotObjectId", |
874 "type": "string", | 869 "type": "string", |
875 "description": "Heap snapshot object id." | 870 "description": "Heap snapshot object id." |
876 }, | 871 }, |
877 { | 872 { |
878 "id": "SamplingHeapProfileNode", | 873 "id": "SamplingHeapProfileNode", |
879 "type": "object", | 874 "type": "object", |
880 "description": "Sampling Heap Profile node. Holds callsite infor
mation, allocation statistics and child nodes.", | 875 "description": "Sampling Heap Profile node. Holds callsite infor
mation, allocation statistics and child nodes.", |
881 "properties": [ | 876 "properties": [ |
882 { "name": "functionName", "type": "string", "description": "
Function name." }, | 877 { "name": "callFrame", "$ref": "Runtime.CallFrame", "descrip
tion": "Function location." }, |
883 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Script identifier." }, | |
884 { "name": "url", "type": "string", "description": "URL." }, | |
885 { "name": "lineNumber", "type": "integer", "description": "1
-based line number of the function start position." }, | |
886 { "name": "columnNumber", "type": "integer", "description":
"1-based column number of the function start position." }, | |
887 { "name": "selfSize", "type": "number", "description": "Allo
cations size in bytes for the node excluding children." }, | 878 { "name": "selfSize", "type": "number", "description": "Allo
cations size in bytes for the node excluding children." }, |
888 { "name": "children", "type": "array", "items": { "$ref": "S
amplingHeapProfileNode" }, "description": "Child nodes." } | 879 { "name": "children", "type": "array", "items": { "$ref": "S
amplingHeapProfileNode" }, "description": "Child nodes." } |
889 ] | 880 ] |
890 }, | 881 }, |
891 { | 882 { |
892 "id": "SamplingHeapProfile", | 883 "id": "SamplingHeapProfile", |
893 "type": "object", | 884 "type": "object", |
894 "description": "Profile.", | 885 "description": "Profile.", |
895 "properties": [ | 886 "properties": [ |
896 { "name": "head", "$ref": "SamplingHeapProfileNode" } | 887 { "name": "head", "$ref": "SamplingHeapProfileNode" } |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
993 { | 984 { |
994 "name": "heapStatsUpdate", | 985 "name": "heapStatsUpdate", |
995 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", | 986 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", |
996 "parameters": [ | 987 "parameters": [ |
997 { "name": "statsUpdate", "type": "array", "items": { "type":
"integer" }, "description": "An array of triplets. Each triplet describes a fra
gment. The first integer is the fragment index, the second integer is a total co
unt of objects for the fragment, the third integer is a total size of the object
s for the fragment."} | 988 { "name": "statsUpdate", "type": "array", "items": { "type":
"integer" }, "description": "An array of triplets. Each triplet describes a fra
gment. The first integer is the fragment index, the second integer is a total co
unt of objects for the fragment, the third integer is a total size of the object
s for the fragment."} |
998 ] | 989 ] |
999 } | 990 } |
1000 ] | 991 ] |
1001 }] | 992 }] |
1002 } | 993 } |
OLD | NEW |