node.js - npm debug module is not working -
i need utilize debug module replace console.log s in node application. install debug module in application using next command.
npm install debug then initialize debug variable seek print info below.
var debug = require('debug')('http'); debug('debug information'); but nil displayed in terminal. kind of help appreciated.
don't forget set debug env variable list of debug functions, below illustration within interpreter
~ debug=http node > var debug = require('debug')('http') undefined > debug('test debug log') http test debug log +0ms undefined node.js debugging
No comments:
Post a Comment