Debugging Node.js processes with cluster.fork()

前端 未结 6 2140
南方客
南方客 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:22

    For those who wish to debug child processes in VS Code, just add this to launch.json configuration:

    "autoAttachChildProcesses": true
    

    https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_remote-debugging

提交回复
热议问题