[Debug] Debug Node.js Application by using Chrome Dev tools

For example you have a server.js file, and you want to debug some problems;

 

What you can do is:

node --inspect-brk server.js

 

Then go to chrome broswer:

chrome://inspect

 

You will find node.js target and you can use Chrome dev tool to do the debugging.

posted @ 2019-03-09 18:16  Zhentiw  阅读(164)  评论(0编辑  收藏  举报