Server-side console.debug() doesn't output anything

Is this a bug, or am I missing something? Create a new meteor project, and in /server/main.js add these two statements to Meteor.startup:

  console.debug('Debug');
  console.log('Log');

When running the app with 1.6.1 on Ubuntu, I only see the “Log” statement:

meteor --port 3010
[[[[[ ~/condeb ]]]]]                      

=> Started proxy.                             
=> Started MongoDB.                           
I20180221-00:04:09.047(-8)? Log               
=> Started your app.

=> App running at: http://localhost:3010/

Apparently, nodejs doesn’t have a console.debug. I can’t get the link to copy on my phone, but search for nodejs console.debug.

echo "console.debug(2 * 2)" | node shows 4, with node v9.5.0, but indeed, console.debug() is a no op in Node v8, and Meteor 1.6.1 bundles Node v8.9.4.

2 Likes