Debugging Node.js processes with cluster.fork()

前端 未结 6 2138
南方客
南方客 2020-12-23 21:39

I\'ve got some code that looks very much like the sample in the Cluster documentation at http://nodejs.org/docs/v0.6.0/api/cluster.html, to wit:

var cluster          


        
6条回答
  •  臣服心动
    2020-12-23 22:14

    Use the --inspect flag for node version higher than or equal to 7.7.0 to debug the node js process, if someone wants more information on how to debug cluster processing and setting up chrome debugger tools for Node JS, please follow my post here.

提交回复
热议问题