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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 { "name": "name", "type": "string", "description": "Human re
adable name describing given context.", "experimental": true }, | 136 { "name": "name", "type": "string", "description": "Human re
adable name describing given context.", "experimental": true }, |
137 { "name": "auxData", "type": "object", "optional": true, "de
scription": "Embedder-specific auxiliary data.", "experimental": true } | 137 { "name": "auxData", "type": "object", "optional": true, "de
scription": "Embedder-specific auxiliary data.", "experimental": true } |
138 ] | 138 ] |
139 }, | 139 }, |
140 { | 140 { |
141 "id": "ExceptionDetails", | 141 "id": "ExceptionDetails", |
142 "type": "object", | 142 "type": "object", |
143 "experimental": true, | 143 "experimental": true, |
144 "description": "Detailed information about exception (or error)
that was thrown during script compilation or execution.", | 144 "description": "Detailed information about exception (or error)
that was thrown during script compilation or execution.", |
145 "properties": [ | 145 "properties": [ |
146 { "name": "text", "type": "string", "description": "Exceptio
n text." }, | 146 { "name": "exceptionId", "type": "integer", "description": "
Exception id." }, |
147 { "name": "scriptId", "$ref": "ScriptId", "description": "Sc
ript ID of the exception location." }, | 147 { "name": "text", "type": "string", "description": "Exceptio
n text, which should be used together with exception object when available." }, |
148 { "name": "lineNumber", "type": "integer", "description": "L
ine number of the exception location (0-based)." }, | 148 { "name": "lineNumber", "type": "integer", "description": "L
ine number of the exception location (0-based)." }, |
149 { "name": "columnNumber", "type": "integer", "description":
"Column number of the exception location (0-based)." }, | 149 { "name": "columnNumber", "type": "integer", "description":
"Column number of the exception location (0-based)." }, |
| 150 { "name": "scriptId", "$ref": "ScriptId", "optional": true,
"description": "Script ID of the exception location." }, |
150 { "name": "url", "type": "string", "optional": true, "descri
ption": "URL of the exception location, to be used when the script was not repor
ted." }, | 151 { "name": "url", "type": "string", "optional": true, "descri
ption": "URL of the exception location, to be used when the script was not repor
ted." }, |
151 { "name": "stackTrace", "$ref": "StackTrace", "optional": tr
ue, "description": "JavaScript stack trace if available." } | 152 { "name": "stackTrace", "$ref": "StackTrace", "optional": tr
ue, "description": "JavaScript stack trace if available." }, |
| 153 { "name": "exception", "$ref": "RemoteObject", "optional": t
rue, "description": "Exception object if available." }, |
| 154 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "optional": true, "description": "Identifier of the context where exception ha
ppened." } |
152 ] | 155 ] |
153 }, | 156 }, |
154 { | 157 { |
155 "id": "Timestamp", | 158 "id": "Timestamp", |
156 "type": "number", | 159 "type": "number", |
157 "description": "Number of milliseconds since epoch.", | 160 "description": "Number of milliseconds since epoch.", |
158 "experimental": true | 161 "experimental": true |
159 }, | 162 }, |
160 { | 163 { |
161 "id": "CallFrame", | 164 "id": "CallFrame", |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 "description": "Issued when execution context is destroyed." | 349 "description": "Issued when execution context is destroyed." |
347 }, | 350 }, |
348 { | 351 { |
349 "name": "executionContextsCleared", | 352 "name": "executionContextsCleared", |
350 "description": "Issued when all executionContexts were cleared i
n browser" | 353 "description": "Issued when all executionContexts were cleared i
n browser" |
351 }, | 354 }, |
352 { | 355 { |
353 "name": "exceptionThrown", | 356 "name": "exceptionThrown", |
354 "description": "Issued when exception was thrown and unhandled."
, | 357 "description": "Issued when exception was thrown and unhandled."
, |
355 "parameters": [ | 358 "parameters": [ |
356 { "name": "exceptionId", "type": "integer", "description": "
Exception id." }, | |
357 { "name": "timestamp", "$ref": "Timestamp", "description": "
Timestamp of the exception." }, | 359 { "name": "timestamp", "$ref": "Timestamp", "description": "
Timestamp of the exception." }, |
358 { "name": "details", "$ref": "ExceptionDetails" }, | 360 { "name": "exceptionDetails", "$ref": "ExceptionDetails" } |
359 { "name": "exception", "$ref": "RemoteObject", "optional": t
rue, "description": "Exception object." }, | |
360 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "optional": true, "description": "Identifier of the context where exception ha
ppened." } | |
361 ], | 361 ], |
362 "experimental": true | 362 "experimental": true |
363 }, | 363 }, |
364 { | 364 { |
365 "name": "exceptionRevoked", | 365 "name": "exceptionRevoked", |
366 "description": "Issued when unhandled exception was revoked.", | 366 "description": "Issued when unhandled exception was revoked.", |
367 "parameters": [ | 367 "parameters": [ |
368 { "name": "message", "type": "string", "description": "Messa
ge describing why exception was revoked." }, | 368 { "name": "reason", "type": "string", "description": "Reason
describing why exception was revoked." }, |
369 { "name": "exceptionId", "type": "integer", "description": "
The id of revoked exception, as reported in <code>exceptionUnhandled</code>." } | 369 { "name": "exceptionId", "type": "integer", "description": "
The id of revoked exception, as reported in <code>exceptionUnhandled</code>." } |
370 ], | 370 ], |
371 "experimental": true | 371 "experimental": true |
372 }, | 372 }, |
373 { | 373 { |
374 "name": "consoleAPICalled", | 374 "name": "consoleAPICalled", |
375 "description": "Issued when console API was called.", | 375 "description": "Issued when console API was called.", |
376 "parameters": [ | 376 "parameters": [ |
377 { "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." }, | 377 { "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." }, |
378 { "name": "args", "type": "array", "items": { "$ref": "Remot
eObject" }, "description": "Call arguments." }, | 378 { "name": "args", "type": "array", "items": { "$ref": "Remot
eObject" }, "description": "Call arguments." }, |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 "name": "setScriptSource", | 568 "name": "setScriptSource", |
569 "parameters": [ | 569 "parameters": [ |
570 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Id of the script to edit." }, | 570 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Id of the script to edit." }, |
571 { "name": "scriptSource", "type": "string", "description": "
New content of the script." }, | 571 { "name": "scriptSource", "type": "string", "description": "
New content of the script." }, |
572 { "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.", "experimenta
l": true } | 572 { "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.", "experimenta
l": true } |
573 ], | 573 ], |
574 "returns": [ | 574 "returns": [ |
575 { "name": "callFrames", "type": "array", "optional": true, "
items": { "$ref": "CallFrame" }, "description": "New stack trace in case editing
has happened while VM was stopped." }, | 575 { "name": "callFrames", "type": "array", "optional": true, "
items": { "$ref": "CallFrame" }, "description": "New stack trace in case editing
has happened while VM was stopped." }, |
576 { "name": "stackChanged", "type": "boolean", "optional": tru
e, "description": "Whether current call stack was modified after applying the c
hanges.", "experimental": true }, | 576 { "name": "stackChanged", "type": "boolean", "optional": tru
e, "description": "Whether current call stack was modified after applying the c
hanges.", "experimental": true }, |
577 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any.", "experimental": tr
ue }, | 577 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any.", "experimental": tr
ue }, |
578 { "name": "compileError", "optional": true, "$ref": "Runtime
.ExceptionDetails", "description": "Error data if any." } | 578 { "name": "exceptionDetails", "optional": true, "$ref": "Run
time.ExceptionDetails", "description": "Exception details if any." } |
579 ], | 579 ], |
580 "description": "Edits JavaScript source live." | 580 "description": "Edits JavaScript source live." |
581 }, | 581 }, |
582 { | 582 { |
583 "name": "restartFrame", | 583 "name": "restartFrame", |
584 "parameters": [ | 584 "parameters": [ |
585 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Call frame identifier to evaluate on." } | 585 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Call frame identifier to evaluate on." } |
586 ], | 586 ], |
587 "returns": [ | 587 "returns": [ |
588 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "New stack trace." }, | 588 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "New stack trace." }, |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 { | 978 { |
979 "name": "heapStatsUpdate", | 979 "name": "heapStatsUpdate", |
980 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", | 980 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", |
981 "parameters": [ | 981 "parameters": [ |
982 { "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."} | 982 { "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."} |
983 ] | 983 ] |
984 } | 984 } |
985 ] | 985 ] |
986 }] | 986 }] |
987 } | 987 } |
OLD | NEW |