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