最近学习nodejs,写了js文件,然后跑到window命令行运行这个js文件。目前会的调试技巧就是,写console.log(要打印的信息),然后去命令行看,所以特地问下nodejs高手:
nodejs开发,有什么实用的调试技巧,怎么调试nodejs代码?
黄舟2017-04-17 13:41:44
node-inspector is a good thing, relatively lightweight.
The debug of vscode is also good and can be used together.
黄舟2017-04-17 13:41:44
The chrome developer tools can actually be adjusted, but it’s not very convenient