我的 NestJS 应用程序中的调试出现问题。
我的设置:
package.json
"start:debug": "nest start --debug=0.0.0.0:9229 --watch"
PhpStorm 运行/调试配置
npm run start:debug
,我的应用程序正常旋转--watch
)Starting inspector on 0.0.0.0:9229 failed: address already in use
,调试器无法再次连接。使其再次工作的唯一方法是按 Ctrl + C 停止整个过程并再次运行。
有没有办法以这种方式进行设置,以便我在更改任何内容后不需要重新启动应用程序?我在 NestJS 文档中没有看到任何
--watch
和 --debug
不能一起工作的内容。
应该在dockerfile中安装ps cmd
# Install procps which includes the 'ps' command
# RUN apt-get update && apt-get install -y procps