Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
33
rated 0 times [  40] [ 7]  / answers: 1 / hits: 16217  / 9 Years ago, tue, march 3, 2015, 12:00:00

The console.debug() function can be invoked in the browser console.



However there is one error when console.debug() is called in Nodejs.



TypeError: Object #<Console> has no method 'debug'
at Object.<anonymous> (c:sharenodereceive.js:20:9)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:929:3


Why? Is there any way to replace console.debug in Nodejs?


More From » node.js

 Answers
6

There's no console.debug() method in NodeJS. Here is the documentation for the console object, so you can choose the best method for you to use.


[#67591] Sunday, March 1, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
keric

Total Points: 572
Total Questions: 93
Total Answers: 97

Location: Cyprus
Member since Mon, Oct 24, 2022
2 Years ago
;