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.
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.