Node in Docker shuts down when breakpoint hit

I've looked for a solution for this, but haven't been successful. I'm running node in a docker container and trying to debug it. I've got the debugger attached and can hit breakpoints, but when one hits the server shuts down... apparently gracefully.

Debug config:

 

Node interpreter:

 

Logging looks normal and as soon as any breakpoint hits I get

Gracefully stopping... (press Ctrl+C again to force)

Process finished with exit code 0

 

I'm sure I'm doing something silly, but I'm not sure what.

评论操作 固定链接

I missed the part where the documentation said...

Note that this file must have node or npm in the command field, for example, command: node ./src/app.js

It seems to be working now.

1

请先登录再写评论。