From 162ff56439a4b2df3d8013cefbe4d5bfe8f61dc6 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 5121b59aee9c32..1f7dea5b2b7f15 100644 --- a/doc/api/console.md +++ b/doc/api/console.md @@ -237,6 +237,15 @@ undefined > ``` +### console.debug(data[, ...args]) + +* `data` {any} +* `...args` {any} + +The `console.debug()` function is an alias for [`console.log()`][]. + ### console.dir(obj[, options])