stable (1.2) latest (tip-of-tree) v8-inspector (node) Home Domains Accessibility Animation ApplicationCache CSS CacheStorage Console DOM DOMDebugger DOMStorage Database Debugger DeviceOrientation Emulation HeapProfiler IO IndexedDB Input Inspector LayerTree Log Memory Network Page Profiler Rendering Runtime Schema Security ServiceWorker Storage SystemInfo Target Tethering Tracing
Chrome Debugging Protocol Viewer - latest (tip-of-tree)

Console Domain

This domain is deprecated - use Runtime or Log instead.

Deprecated

Methods

Console. enable

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

Console. disable

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

Console. clearMessages

Does nothing.

Events

Console. messageAdded

Issued when new console message is added.

Parameters
message
ConsoleMessage Console message that has been added.

Types

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).