How to debug remote node.js app using chrome devtools

后端 未结 3 1391
轻奢々
轻奢々 2020-12-31 12:56

I have a simple console node.js app that is running on a remote server. I would like to debug it remotely using the Chrome DevTools. How can I do that?

3条回答
  •  佛祖请我去吃肉
    2020-12-31 13:28

    You can follow the steps

    1)Run the application in remote
    2)Open application in chrome
    3)Open Developer Tools--->Sources
    4)Ctrl + p
    5)Open file you want to debug  there
    6)Place debug points in your now opened file.
    

提交回复
热议问题