tot: Console

Contents

Console domain defines methods and events for interaction with the JavaScript console. Console collects messages created by means of the JavaScript Console API. One needs to enable this domain using enable 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 messageAdded notification upon enabling.

Commands

Console.clearMessages

request: {
"id": <number>,
"method": "Console.clearMessages"

}

response: {
"id": <number>,
"error": <object>

}

Clears console messages collected in the browser.

Console.disable

request: {
"id": <number>,
"method": "Console.disable"

}

response: {
"id": <number>,
"error": <object>

}

Disables console domain, prevents further console messages from being reported to the client.

Console.enable

request: {
"id": <number>,
"method": "Console.enable"

}

response: {
"id": <number>,
"error": <object>

}

Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification.