第一次试node-inspector简直酷炫啊
发布于 8 年前 作者 reverland 4506 次浏览 来自 分享

一直都console.log console.log console.log。。。

看了下特性列表

Navigate in your source files
Set breakpoints (and specify trigger conditions)
Step over, step in, step out, resume (continue)
Inspect scopes, variables, object properties: 是不是可以免去满篇的print了
Hover your mouse over an expression in your source to display its value in a tooltip
Edit variables and object properties:check and modify on the fly~
Continue to location
Break on exceptions: 这是啥意思。。。等到出问题看看
Disable/enable all breakpoints
CPU and HEAP profiling: 一直觉得我这种闭包递归满天飞的写法会有内存的问题,虽然现在没用过这些,有这个大概能对程序稳定性更有信心了。
Network client requests inspection: 终于可以不设置中间人来查看https流量了。。
Console output inspection

Screenshot from 2016-01-17 11:50:38.png

Screenshot from 2016-01-17 11:50:26.png

Screenshot from 2016-01-17 11:50:03.png

Screenshot from 2016-01-17 11:49:43.png

7 回复

node-inspector在项目大的时候会比较慢,其他都很好,vsc是做过优化的

赞下,回来再看

mark,有时间再仔细看看。

这资源占用。。。

Screenshot from 2016-01-17 18:14:51.png

vscode多好 以前也用这= = 但是太麻烦了

回到顶部