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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 { | 247 { |
248 "name": "enable", | 248 "name": "enable", |
249 "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.
" | 249 "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.
" |
250 }, | 250 }, |
251 { | 251 { |
252 "name": "disable", | 252 "name": "disable", |
253 "hidden": true, | 253 "hidden": true, |
254 "description": "Disables reporting of execution contexts creatio
n." | 254 "description": "Disables reporting of execution contexts creatio
n." |
255 }, | 255 }, |
256 { | 256 { |
| 257 "name": "discardConsoleEntries", |
| 258 "hidden": true, |
| 259 "description": "Discards collected exceptions and console API ca
lls." |
| 260 }, |
| 261 { |
257 "name": "setCustomObjectFormatterEnabled", | 262 "name": "setCustomObjectFormatterEnabled", |
258 "parameters": [ | 263 "parameters": [ |
259 { | 264 { |
260 "name": "enabled", | 265 "name": "enabled", |
261 "type": "boolean" | 266 "type": "boolean" |
262 } | 267 } |
263 ], | 268 ], |
264 "hidden": true | 269 "hidden": true |
265 }, | 270 }, |
266 { | 271 { |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 "description": "Fired when the virtual machine stopped on breakp
oint or exception or any other stop criteria." | 708 "description": "Fired when the virtual machine stopped on breakp
oint or exception or any other stop criteria." |
704 }, | 709 }, |
705 { | 710 { |
706 "name": "resumed", | 711 "name": "resumed", |
707 "description": "Fired when the virtual machine resumed execution
." | 712 "description": "Fired when the virtual machine resumed execution
." |
708 } | 713 } |
709 ] | 714 ] |
710 }, | 715 }, |
711 { | 716 { |
712 "domain": "Console", | 717 "domain": "Console", |
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.", | 718 "description": "This domain is deprecated - use Runtime or Log instead."
, |
714 "dependencies": ["Runtime"], | 719 "dependencies": ["Runtime"], |
| 720 "deprecated": true, |
715 "types": [ | 721 "types": [ |
716 { | 722 { |
717 "id": "ConsoleMessage", | 723 "id": "ConsoleMessage", |
718 "type": "object", | 724 "type": "object", |
719 "description": "Console message.", | 725 "description": "Console message.", |
720 "properties": [ | 726 "properties": [ |
721 { "name": "source", "type": "string", "enum": ["xml", "javas
cript", "network", "console-api", "storage", "appcache", "rendering", "security"
, "other", "deprecation", "worker"], "description": "Message source." }, | 727 { "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"], "description": "Message severity." }, | 728 { "name": "level", "type": "string", "enum": ["log", "warnin
g", "error", "debug", "info"], "description": "Message severity." }, |
723 { "name": "text", "type": "string", "description": "Message
text." }, | 729 { "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": "Never
present. Use Runtime.consoleAPICalled instead." }, | |
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." }, | 730 { "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." }, | 731 { "name": "line", "type": "integer", "optional": true, "desc
ription": "Line number in the resource that generated this message (1-based)." }
, |
728 { "name": "column", "type": "integer", "optional": true, "de
scription": "Column number in the resource that generated this message." }, | 732 { "name": "column", "type": "integer", "optional": true, "de
scription": "Column number in the resource that generated this message (1-based)
." } |
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": "Never present. Use R
untime.consoleAPICalled instead." }, | |
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." }, | |
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 }, | |
735 { "name": "workerId", "type": "string", "optional": true, "d
escription": "Identifier of the worker this message came from.", "hidden": true
} | |
736 ] | 733 ] |
737 } | 734 } |
738 ], | 735 ], |
739 "commands": [ | 736 "commands": [ |
740 { | 737 { |
741 "name": "enable", | 738 "name": "enable", |
742 "description": "Enables console domain, sends the messages colle
cted so far to the client by means of the <code>messageAdded</code> notification
." | 739 "description": "Enables console domain, sends the messages colle
cted so far to the client by means of the <code>messageAdded</code> notification
." |
743 }, | 740 }, |
744 { | 741 { |
745 "name": "disable", | 742 "name": "disable", |
746 "description": "Disables console domain, prevents further consol
e messages from being reported to the client." | 743 "description": "Disables console domain, prevents further consol
e messages from being reported to the client." |
747 }, | 744 }, |
748 { | 745 { |
749 "name": "clearMessages", | 746 "name": "clearMessages", |
750 "description": "Clears console messages collected in the browser
." | 747 "description": "Does nothing." |
751 } | 748 } |
752 ], | 749 ], |
753 "events": [ | 750 "events": [ |
754 { | 751 { |
755 "name": "messageAdded", | 752 "name": "messageAdded", |
756 "parameters": [ | 753 "parameters": [ |
757 { "name": "message", "$ref": "ConsoleMessage", "description"
: "Console message that has been added." } | 754 { "name": "message", "$ref": "ConsoleMessage", "description"
: "Console message that has been added." } |
758 ], | 755 ], |
759 "description": "Issued when new console message is added." | 756 "description": "Issued when new console message is added." |
760 }, | 757 }, |
761 { | 758 { |
762 "name": "messageRepeatCountUpdated", | 759 "name": "messageRepeatCountUpdated", |
763 "parameters": [ | 760 "parameters": [ |
764 { "name": "count", "type": "integer", "description": "New re
peat count value." }, | 761 { "name": "count", "type": "integer", "description": "New re
peat count value." }, |
765 { "name": "timestamp", "$ref": "Runtime.Timestamp", "descrip
tion": "Timestamp of most recent message in batch.", "hidden": true } | 762 { "name": "timestamp", "$ref": "Runtime.Timestamp", "descrip
tion": "Timestamp of most recent message in batch.", "hidden": true } |
766 ], | 763 ], |
767 "description": "Is not issued. Will be gone in the future versio
ns of the protocol.", | 764 "description": "Not issued.", |
768 "deprecated": true | 765 "deprecated": true |
769 }, | 766 }, |
770 { | 767 { |
771 "name": "messagesCleared", | 768 "name": "messagesCleared", |
772 "description": "Not issued.", | 769 "description": "Not issued.", |
773 "deprecated": true | 770 "deprecated": true |
774 } | 771 } |
775 ] | 772 ] |
776 }, | 773 }, |
777 { | 774 { |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 { | 981 { |
985 "name": "heapStatsUpdate", | 982 "name": "heapStatsUpdate", |
986 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", | 983 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", |
987 "parameters": [ | 984 "parameters": [ |
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."} | 985 { "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."} |
989 ] | 986 ] |
990 } | 987 } |
991 ] | 988 ] |
992 }] | 989 }] |
993 } | 990 } |
OLD | NEW |