Remotely debugging my node app that is hosted on AWS

前端 未结 7 503
别那么骄傲
别那么骄傲 2021-01-29 21:10

I would like to connect to my node server running in debug mode on AWS (node --debug app.js) from my development machine, and be able to debug my app remotely.

Two quest

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-29 21:17

    One more option to use 0.0.0.0 to listen to request from outside:

    node-debug --web-host=0.0.0.0 --cli app.js
    

    and visit this address to debug:

    http://:8080/?port=5858
    

    it would be better if HTTP/2 is available since there are lots of small files.

提交回复
热议问题