How do you debug a Node.js server running with Chrome/WebKit as the remote debugger?

后端 未结 4 1516
清歌不尽
清歌不尽 2021-02-01 06:21

If you have your Node running

node --debug server.js

This gives me a port number xxxx, should I use this port number when starting Chrome?

4条回答
  •  余生分开走
    2021-02-01 06:30

    Use node-inspector to remotely debug your node application from Chrome that you've started with the --debug option as you've shown.

提交回复
热议问题