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": "clearMessages", | |
pfeldman
2016/07/16 01:56:10
discardConsoleEntries
dgozman
2016/07/18 19:18:53
Done.
| |
258 "description": "Clears collected exceptions and console API call s." | |
pfeldman
2016/07/16 01:56:10
hidden
dgozman
2016/07/18 19:18:53
Done.
| |
259 }, | |
260 { | |
257 "name": "setCustomObjectFormatterEnabled", | 261 "name": "setCustomObjectFormatterEnabled", |
258 "parameters": [ | 262 "parameters": [ |
259 { | 263 { |
260 "name": "enabled", | 264 "name": "enabled", |
261 "type": "boolean" | 265 "type": "boolean" |
262 } | 266 } |
263 ], | 267 ], |
264 "hidden": true | 268 "hidden": true |
265 }, | 269 }, |
266 { | 270 { |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
714 "description": "Fired when the virtual machine stopped on breakp oint or exception or any other stop criteria." | 718 "description": "Fired when the virtual machine stopped on breakp oint or exception or any other stop criteria." |
715 }, | 719 }, |
716 { | 720 { |
717 "name": "resumed", | 721 "name": "resumed", |
718 "description": "Fired when the virtual machine resumed execution ." | 722 "description": "Fired when the virtual machine resumed execution ." |
719 } | 723 } |
720 ] | 724 ] |
721 }, | 725 }, |
722 { | 726 { |
723 "domain": "Console", | 727 "domain": "Console", |
724 "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.", | 728 "description": "This domain is deprecated - use Runtime or Log instead." , |
725 "dependencies": ["Runtime"], | 729 "dependencies": ["Runtime"], |
730 "deprecated": true, | |
726 "types": [ | 731 "types": [ |
727 { | 732 { |
728 "id": "ConsoleMessage", | 733 "id": "ConsoleMessage", |
729 "type": "object", | 734 "type": "object", |
730 "description": "Console message.", | 735 "description": "Console message.", |
731 "properties": [ | 736 "properties": [ |
732 { "name": "source", "type": "string", "enum": ["xml", "javas cript", "network", "console-api", "storage", "appcache", "rendering", "security" , "other", "deprecation", "worker"], "description": "Message source." }, | 737 { "name": "source", "type": "string", "enum": ["xml", "javas cript", "network", "console-api", "storage", "appcache", "rendering", "security" , "other", "deprecation", "worker"], "description": "Message source." }, |
733 { "name": "level", "type": "string", "enum": ["log", "warnin g", "error", "debug", "info"], "description": "Message severity." }, | 738 { "name": "level", "type": "string", "enum": ["log", "warnin g", "error", "debug", "info"], "description": "Message severity." }, |
734 { "name": "text", "type": "string", "description": "Message text." }, | 739 { "name": "text", "type": "string", "description": "Message text." }, |
735 { "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." }, | 740 { "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." }, |
736 { "name": "scriptId", "type": "string", "optional": true, "d escription": "Script ID of the message origin." }, | 741 { "name": "scriptId", "type": "string", "optional": true, "d escription": "Never present." }, |
pfeldman
2016/07/16 01:56:09
nuke, it was optional, so you are free to not pass
dgozman
2016/07/18 19:18:52
Done.
| |
737 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." }, | 742 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." }, |
738 { "name": "line", "type": "integer", "optional": true, "desc ription": "Line number in the resource that generated this message." }, | 743 { "name": "line", "type": "integer", "optional": true, "desc ription": "Line number in the resource that generated this message (1-based)." } , |
739 { "name": "column", "type": "integer", "optional": true, "de scription": "Column number in the resource that generated this message." }, | 744 { "name": "column", "type": "integer", "optional": true, "de scription": "Column number in the resource that generated this message (1-based) ." }, |
740 { "name": "repeatCount", "type": "integer", "optional": true , "description": "Repeat count for repeated messages." }, | 745 { "name": "repeatCount", "type": "integer", "optional": true , "description": "Never present." }, |
741 { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Never present. Use R untime.consoleAPICalled instead." }, | 746 { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Never present. Use R untime.consoleAPICalled instead." }, |
742 { "name": "stack", "$ref": "Runtime.StackTrace", "optional": true, "description": "JavaScript stack trace for assertions and error messages. " }, | 747 { "name": "stack", "$ref": "Runtime.StackTrace", "optional": true, "description": "Never present." }, |
pfeldman
2016/07/16 01:56:10
nuke, it was optional, so you are free to not pass
dgozman
2016/07/18 19:18:52
Done.
| |
743 { "name": "networkRequestId", "type": "string", "optional": true, "description": "Identifier of the network request associated with this mes sage." }, | 748 { "name": "networkRequestId", "type": "string", "optional": true, "description": "Never present. Use Log domain instead." } |
pfeldman
2016/07/16 01:56:10
nuke, it was optional, so you are free to not pass
dgozman
2016/07/18 19:18:53
Done.
| |
744 { "name": "timestamp", "$ref": "Runtime.Timestamp", "descrip tion": "Timestamp, when this message was fired.", "hidden": true }, | |
745 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "optional": true, "description": "Identifier of the context where this message was created", "hidden": true }, | |
746 { "name": "workerId", "type": "string", "optional": true, "d escription": "Identifier of the worker this message came from.", "hidden": true } | |
747 ] | 749 ] |
748 } | 750 } |
749 ], | 751 ], |
750 "commands": [ | 752 "commands": [ |
751 { | 753 { |
752 "name": "enable", | 754 "name": "enable", |
753 "description": "Enables console domain, sends the messages colle cted so far to the client by means of the <code>messageAdded</code> notification ." | 755 "description": "Enables console domain, sends the messages colle cted so far to the client by means of the <code>messageAdded</code> notification ." |
754 }, | 756 }, |
755 { | 757 { |
756 "name": "disable", | 758 "name": "disable", |
757 "description": "Disables console domain, prevents further consol e messages from being reported to the client." | 759 "description": "Disables console domain, prevents further consol e messages from being reported to the client." |
758 }, | 760 }, |
759 { | 761 { |
760 "name": "clearMessages", | 762 "name": "clearMessages", |
761 "description": "Clears console messages collected in the browser ." | 763 "description": "Does nothing." |
762 } | 764 } |
763 ], | 765 ], |
764 "events": [ | 766 "events": [ |
765 { | 767 { |
766 "name": "messageAdded", | 768 "name": "messageAdded", |
767 "parameters": [ | 769 "parameters": [ |
768 { "name": "message", "$ref": "ConsoleMessage", "description" : "Console message that has been added." } | 770 { "name": "message", "$ref": "ConsoleMessage", "description" : "Console message that has been added." } |
769 ], | 771 ], |
770 "description": "Issued when new console message is added." | 772 "description": "Issued when new console message is added." |
771 }, | 773 }, |
772 { | 774 { |
773 "name": "messageRepeatCountUpdated", | 775 "name": "messageRepeatCountUpdated", |
774 "parameters": [ | 776 "parameters": [ |
775 { "name": "count", "type": "integer", "description": "New re peat count value." }, | 777 { "name": "count", "type": "integer", "description": "New re peat count value." }, |
776 { "name": "timestamp", "$ref": "Runtime.Timestamp", "descrip tion": "Timestamp of most recent message in batch.", "hidden": true } | 778 { "name": "timestamp", "$ref": "Runtime.Timestamp", "descrip tion": "Timestamp of most recent message in batch.", "hidden": true } |
777 ], | 779 ], |
778 "description": "Is not issued. Will be gone in the future versio ns of the protocol.", | 780 "description": "Not issued.", |
779 "deprecated": true | 781 "deprecated": true |
780 }, | 782 }, |
781 { | 783 { |
782 "name": "messagesCleared", | 784 "name": "messagesCleared", |
783 "description": "Not issued.", | 785 "description": "Not issued.", |
784 "deprecated": true | 786 "deprecated": true |
785 } | 787 } |
786 ] | 788 ] |
787 }, | 789 }, |
788 { | 790 { |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
995 { | 997 { |
996 "name": "heapStatsUpdate", | 998 "name": "heapStatsUpdate", |
997 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments", | 999 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments", |
998 "parameters": [ | 1000 "parameters": [ |
999 { "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 { "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."} |
1000 ] | 1002 ] |
1001 } | 1003 } |
1002 ] | 1004 ] |
1003 }] | 1005 }] |
1004 } | 1006 } |
OLD | NEW |