node.js - nodejs开发,有什么实用的调试技巧,怎么调试nodejs代码?
ringa_lee
ringa_lee 2017-04-17 13:39:44
0
4
646

最近学习nodejs,写了js文件,然后跑到window命令行运行这个js文件。目前会的调试技巧就是,写console.log(要打印的信息),然后去命令行看,所以特地问下nodejs高手:
nodejs开发,有什么实用的调试技巧,怎么调试nodejs代码?

ringa_lee
ringa_lee

ringa_lee

reply all(4)
小葫芦

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!