[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.

猜你喜欢

转载自www.cnblogs.com/Answer1215/p/10502331.html