debug is alias for console.error but only if process.evn.NODE_DEBUG contains 'module' string, otherwise it just do nothing.
Look at https://github.com/joyent/node/blob/master/lib/module.js#L65 Lines 65-74 is definition of debug четверг, 15 ноября 2012 г., 18:25:05 UTC+4 пользователь Angelo Chen написал: > > Hi, > > looking at nodejs source code, notice this: > > debug('Module._load REQUEST ' + (request) + ' parent: ' + parent.id); > > where can i find the doc for debug? thanks, > > Angelo > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
