rerun
rerun copied to clipboard
Q: how to trigger *automatic* pause/resume with debug
Scenario:
I want to have both rerun and debug with remote (or in console) debugging enabled in docker container. However, so far haven't seen way to make these co-exist nicely. I.e. when breakpoint is hit, then should be able to pause rerun, so that it won't restart process if files are modified (which is quite normal thing to do in this context).
Keyboard option to pause won't naturally work, since there is multiple containers launched at once via docker compose, each of them having rerun + debug.
Any suggestions how to make this work sensibly?
Off the top of my head, no. There might be a way to patch it in if you can get the debugger to create/delete a little file that a patched Rerun could look for (.rerun-pause
), or if there's another way to tap in to the debugger API -- I have never gone deep into the native code side of Ruby.