Node.js: How to attach to a running process and to debug the server with a console?

后端 未结 7 1431
無奈伤痛
無奈伤痛 2020-12-04 21:51

I use \'forever\' to run my application. I want to attach to the running environment to inspect my application. So what can I do?

7条回答
  •  鱼传尺愫
    2020-12-04 22:18

    For me, running node version 6.9.10 I had to:

    kill -USR1

    then

    node debug -p

    the node inspect -p command failed for this version of node.

提交回复
热议问题