Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kikonen opened this issue Feb 23, 2023 · 1 comment
Open

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

kikonen opened this issue Feb 23, 2023 · 1 comment

Comments

@kikonen
Copy link

kikonen commented Feb 23, 2023

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
Copy link
Owner

alexch commented Feb 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants