2.3.1.Allow node.js server to output log
1.sudo npm install debug -save
2.var debug = require('debug')('app');
3.添加debug message: debug('booting');
4.在命令列中執行: export DEBUG=app
5.在命令列中執行: node app.js
Last updated
Was this helpful?
1.sudo npm install debug -save
2.var debug = require('debug')('app');
3.添加debug message: debug('booting');
4.在命令列中執行: export DEBUG=app
5.在命令列中執行: node app.js
Last updated
Was this helpful?