Remotely debugging my node app that is hosted on AWS

前端 未结 7 490
别那么骄傲
别那么骄傲 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:31

    Forward remote debugger port with ssh from your dev machine

    ssh -L 5858:127.0.0.1:5858 ubuntu@some.ec2.host.com
    

    And now you can start node-inspector as if the debugger is running locally.

提交回复
热议问题