Chrome DevTools

Console Domain

This domain is deprecated - use Runtime or Log instead.

Deprecated

Methods

Events

Types

Methods

Chrome DevTools

Console.clearMessages #

Does nothing.


Chrome DevTools

Console.disable #

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


Chrome DevTools

Console.enable #

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

Events

Chrome DevTools

Console.messageAdded #

Issued when new console message is added.

Parameters

message
ConsoleMessage

Console message that has been added.

Types

Chrome DevTools

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
Optional
string

URL of the message origin.

line
Optional
integer

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

column
Optional
integer

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