3 "description": "Console domain defines methods and events for interaction with the JavaScript console. Console collects messages created by means of the <a href='http://getfirebug.com/wiki/index.php/Console_API'>JavaScript Console API</a>. One needs to enable this domain using <code>enable</code> command in order to start receiving the console messages. Browser collects messages issued while console domain is not enabled as well and reports them using <code>messageAdded</code> notification upon enabling.",
6 "id": "ConsoleNetworkRequestId",
8 "description": "Unique request identifier. FIXME: Duplicate of Network.RequestId <https://webkit.org/b/125664> Web Inspector: FIX Type Dependency Issues"
11 "id": "ConsoleDOMNodeId",
13 "description": "Unique DOM node identifier. FIXME: Duplicate of DOM.NodeId <https://webkit.org/b/125664> Web Inspector: FIX Type Dependency Issues"
16 "id": "ConsoleMessage",
18 "description": "Console message.",
20 { "name": "source", "type": "string", "enum": ["xml", "javascript", "network", "console-api", "storage", "appcache", "rendering", "css", "security", "other"], "description": "Message source." },
21 { "name": "level", "type": "string", "enum": ["log", "warning", "error", "debug"], "description": "Message severity." },
22 { "name": "text", "type": "string", "description": "Message text." },
23 { "name": "type", "type": "string", "optional": true, "enum": ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupCollapsed", "endGroup", "assert", "timing", "profile", "profileEnd"], "description": "Console message type." },
24 { "name": "url", "type": "string", "optional": true, "description": "URL of the message origin." },
25 { "name": "line", "type": "integer", "optional": true, "description": "Line number in the resource that generated this message." },
26 { "name": "column", "type": "integer", "optional": true, "description": "Column number on the line in the resource that generated this message." },
27 { "name": "repeatCount", "type": "integer", "optional": true, "description": "Repeat count for repeated messages." },
28 { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Message parameters in case of the formatted message." },
29 { "name": "stackTrace", "$ref": "StackTrace", "optional": true, "description": "JavaScript stack trace for assertions and error messages." },
30 { "name": "networkRequestId", "$ref": "ConsoleNetworkRequestId", "optional": true, "description": "Identifier of the network request associated with this message." }
36 "description": "Stack entry for console errors and assertions.",
38 { "name": "functionName", "type": "string", "description": "JavaScript function name." },
39 { "name": "url", "type": "string", "description": "JavaScript script name or url." },
40 { "name": "lineNumber", "type": "integer", "description": "JavaScript script line number." },
41 { "name": "columnNumber", "type": "integer", "description": "JavaScript script column number." }
47 "items": { "$ref": "CallFrame" },
48 "description": "Call frames for assertions or error messages."
54 "description": "Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification."
58 "description": "Disables console domain, prevents further console messages from being reported to the client."
61 "name": "clearMessages",
62 "description": "Clears console messages collected in the browser."
65 "name": "setMonitoringXHREnabled",
67 { "name": "enabled", "type": "boolean", "description": "Monitoring enabled state." }
69 "description": "Toggles monitoring of XMLHttpRequest. If <code>true</code>, console will receive messages upon each XHR issued."
72 "name": "addInspectedNode",
74 { "name": "nodeId", "$ref": "ConsoleDOMNodeId", "description": "DOM node id to be accessible by means of $x command line API." }
76 "description": "Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions)."
81 "name": "messageAdded",
83 { "name": "message", "$ref": "ConsoleMessage", "description": "Console message that has been added." }
85 "description": "Issued when new console message is added."
88 "name": "messageRepeatCountUpdated",
90 { "name": "count", "type": "integer", "description": "New repeat count value." }
92 "description": "Issued when subsequent message(s) are equal to the previous one(s)."
95 "name": "messagesCleared",
96 "description": "Issued when console is cleared. This happens either upon <code>clearMessages</code> command or after page navigation."