Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / JavaScript

console.debug — diagnostic messages

console.debug sends data to the console at the debug level. Message visibility and appearance depend on the implementation and console filters.

Version: ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support

Syntax

console.debug(...data)

console.debug(...data) belongs to the Console standard, not ECMAScript itself. It accepts any number of arguments, returns undefined, and prints nothing without arguments.

Like console.log, it supports formatting such as %d; its logging level is debug instead of log. Message appearance and available filters are implementation-defined. If a message is missing, check the console's level filters.

The example should display items=3 when the relevant level is visible. Any separately displayed undefined is the call's result, not the message.

Examples

console.debug("items=%d", 3);

Result

items=3

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources