How do I use docker-compose.debug.yml to debug my node running in docker?

后端 未结 2 1042
予麋鹿
予麋鹿 2021-01-13 18:35

I have used vs docker extension to create docker files. But I don\'t know what is the \"proper\" way to use docker-compose.debug.yml to debug my code, e.g. how do I set my e

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-13 19:08

    I had the same issue. Using --inspect=0.0.0.0:9229 solved it. I recommend you use --inspect-brk too, to have the node process wait for the debugger to attach.

提交回复
热议问题