Chrome DevTools Protocol

Methods

Console.clearMessages

Does nothing.

Console.disable

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

Console.enable

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

Events

Console.messageAdded

Issued when new console message is added.

parameters
message
ConsoleMessage

Console message that has been added.

Types

Console.ConsoleMessage

Console message.

Type: object

properties
source
string

Message source.

Allowed Values: xml, javascript, network, console-api, storage, appcache, rendering, security, other, deprecation, worker
level
string

Message severity.

Allowed Values: log, warning, error, debug, info
text
string

Message text.

url
string

URL of the message origin.

line
integer

Line number in the resource that generated this message (1-based).

column
integer

Column number in the resource that generated this message (1-based).