Tag: intellij idea docker

在Docker容器中远程debugging运行进程

我在一个Docker容器中运行一个node.js应用程序。 我需要用Intellij Ultimate 15debugging这个应用程序。 demoapp: build: . command: 'bash -c "npm install && npm run debug"' ports: – "8989:8989" environment: VIRTUAL_HOST: 'demoapp.docker' VIRTUAL_PORT: 8989 来自package.json的debug脚本 "debug": "(node-inspector –web-port=8989 app.js &) && node –debug app.js" 并在IDE中进行configuration IDE响应Frame is not available 。 我想它不能连接。 难道我做错了什么? 而且,我可以使用Chrome进行debugging。 如果我访问demoapp.docker:8989它连接,我可以开始debugging。