Console

sealed interface Console(source)

The console object provides access to the debugging console (e.g., the Web console in Firefox).

MDN Reference

Functions

Link copied to clipboard
abstract fun assert(condition: Boolean = definedExternally, vararg data: JsAny?)

The console.assert() static method writes an error message to the console if the assertion is false.

Link copied to clipboard
abstract fun clear()

The console.clear() static method clears the console if possible.

Link copied to clipboard
abstract fun count(label: String = definedExternally)

The console.count() static method logs the number of times that this particular call to count() has been called.

Link copied to clipboard
abstract fun countReset(label: String = definedExternally)

The console.countReset() static method resets counter used with console/count_static.

Link copied to clipboard
abstract fun debug(vararg data: JsAny?)

The console.debug() static method outputs a message to the console at the 'debug' log level.

abstract fun debug(vararg data: String?)
Link copied to clipboard
abstract fun dir(item: JsAny? = definedExternally, options: JsAny? = definedExternally)

The console.dir() static method displays a list of the properties of the specified JavaScript object.

Link copied to clipboard
abstract fun dirxml(vararg data: JsAny?)

The console.dirxml() static method displays an interactive tree of the descendant elements of the specified XML/HTML element.

abstract fun dirxml(vararg data: String?)
Link copied to clipboard
abstract fun error(vararg data: JsAny?)

The console.error() static method outputs a message to the console at the 'error' log level.

abstract fun error(vararg data: String?)
Link copied to clipboard
abstract fun group(vararg data: JsAny?)

The console.group() static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by an additional level, until console/groupEnd_static is called.

abstract fun group(vararg data: String?)
Link copied to clipboard
abstract fun groupCollapsed(vararg data: JsAny?)

The console.groupCollapsed() static method creates a new inline group in the console.

abstract fun groupCollapsed(vararg data: String?)
Link copied to clipboard
abstract fun groupEnd()

The console.groupEnd() static method exits the current inline group in the console.

Link copied to clipboard
abstract fun info(vararg data: JsAny?)

The console.info() static method outputs a message to the console at the 'info' log level.

abstract fun info(vararg data: String?)
Link copied to clipboard
abstract fun log(vararg data: JsAny?)

The console.log() static method outputs a message to the console.

abstract fun log(vararg data: String?)
Link copied to clipboard
abstract fun table(tabularData: JsAny? = definedExternally, properties: ReadonlyArray<JsString> = definedExternally)

The console.table() static method displays tabular data as a table.

Link copied to clipboard
abstract fun time(label: String = definedExternally)

The console.time() static method starts a timer you can use to track how long an operation takes.

Link copied to clipboard
abstract fun timeEnd(label: String = definedExternally)

The console.timeEnd() static method stops a timer that was previously started by calling console/time_static.

Link copied to clipboard
abstract fun timeLog(label: String = definedExternally, vararg data: JsAny?)

The console.timeLog() static method logs the current value of a timer that was previously started by calling console/time_static.

Link copied to clipboard
abstract fun timeStamp(label: String = definedExternally)
Link copied to clipboard
abstract fun trace(vararg data: JsAny?)

The console.trace() static method outputs a stack trace to the console.

abstract fun trace(vararg data: String?)
Link copied to clipboard
abstract fun warn(vararg data: JsAny?)

The console.warn() static method outputs a warning message to the console at the 'warning' log level.

abstract fun warn(vararg data: String?)