diff options
author | Benjamin Zaslavsky <benjamin.zaslavsky@gmail.com> | 2017-11-14 23:59:57 +0100 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2017-11-18 12:38:59 +0100 |
commit | 45e6642476389fe5442c23b08a3ea99fcc752e56 (patch) | |
tree | 3f0f659e41d4d9c0d70258e35d5b691f4068e03f /doc | |
parent | 0a1fba02a65b0b6bb53ca2d6966eaca67265e7d6 (diff) | |
download | android-node-v8-45e6642476389fe5442c23b08a3ea99fcc752e56.tar.gz android-node-v8-45e6642476389fe5442c23b08a3ea99fcc752e56.tar.bz2 android-node-v8-45e6642476389fe5442c23b08a3ea99fcc752e56.zip |
console: add support for console.debug
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 <cjihrig@gmail.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/console.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/api/console.md b/doc/api/console.md index 8a9ca1ac86..54d86cea16 100644 --- a/doc/api/console.md +++ b/doc/api/console.md @@ -238,6 +238,15 @@ undefined > ``` +### console.debug(data[, ...args]) +<!-- YAML +added: v8.0.0 +--> +* `data` {any} +* `...args` {any} + +The `console.debug()` function is an alias for [`console.log()`][]. + ### console.dir(obj[, options]) <!-- YAML added: v0.1.101 |