I am trying to attach a remote debugger to a node.js app running in docker from within WebStorm but am unable to do. I can successfully run docker app from IDE but cannot debug it.
I am following this guide to setup remote interpreter : https://www.jetbrains.com/help/webstorm/running-and-debugging-node-js.html#node_debugging_overview
My docker-compose.yaml looks something like this:
ports:
- 8080:8080
- 9229:9229
command: [ "npm", "run","debug" ]
package.json has debug script defined like :
"debug":"node --inspect-brk"
If someone has set this up can you please suggest what am I not doing correct ?
