Skip to content

global.console.debug() does not log as in the documentation #20787

@azisso

Description

@azisso
  • Version: v8.7.0
  • Platform: Windows 10 x64
  • Subsystem:

Simply typing into node the following line does not print:

> global.console.debug(2)
undefined

Although documentation states:

The console.debug() function is an alias for console.log()

I see the implementation here: https://github.com/nodejs/node/blob/master/lib/console.js#L201
But I suspect it's not applied to the global console object here: https://github.com/nodejs/node/blob/master/lib/internal/bootstrap/node.js#L352

Or maybe it's something else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssues that look for answers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions