alexch / rerun

Restarts an app when the filesystem changes. Uses growl and FSEventStream if on OS X.
Other
981 stars 79 forks source link

Q: how to trigger *automatic* pause/resume with debug #139

Open kikonen opened 1 year ago

kikonen commented 1 year ago

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?

alexch commented 1 year ago

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.