From 40d4fee8d727bf147b0a2a2fb638ca7518b0910e Mon Sep 17 00:00:00 2001 From: Benjamin Zaslavsky Date: Tue, 14 Nov 2017 23:59:57 +0100 Subject: [PATCH] console: add support for console.debug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds the console.debug() method, alias for console.log(). This method is exposed by V8 and was only available in inspector until now. Also adds matching test and documentation. PR-URL: https://github.com/nodejs/node/pull/17033 Refs: https://github.com/nodejs/node/pull/17004 Reviewed-By: Colin Ihrig Reviewed-By: Khaidi Chu Reviewed-By: Michaƫl Zasso Reviewed-By: Anna Henningsen Reviewed-By: Timothy Gu Reviewed-By: James M Snell --- doc/api/console.md | 9 +++++++++ lib/console.js | 3 +++ test/parallel/test-console.js | 11 +++++++++++ 3 files changed, 23 insertions(+) diff --git a/doc/api/console.md b/doc/api/console.md index 8a9ca1ac8614fe..54d86cea161feb 100644 --- a/doc/api/console.md +++ b/doc/api/console.md @@ -238,6 +238,15 @@ undefined > ``` +### console.debug(data[, ...args]) + +* `data` {any} +* `...args` {any} + +The `console.debug()` function is an alias for [`console.log()`][]. + ### console.dir(obj[, options])