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

How to use byebug/debugger? #86

Open
sekmo opened this issue Oct 31, 2024 · 2 comments
Open

How to use byebug/debugger? #86

sekmo opened this issue Oct 31, 2024 · 2 comments

Comments

@sekmo
Copy link

sekmo commented Oct 31, 2024

In other dockerized Rails apps, I'm able to throw a byebug/byebugger line in the code I'm testing, then send a request to the controller that I'm testing, verify the logs that byebug halted the execution, then I can do docker attach CONTAINERNAME to tap into byebug and do my stuff. But with this setup looks like I cannot do that: once I run docker attach, it gets stuck, and the only thing I can do is ctrl p-q to send an escape sequence.

I've already tried adding in compose.yaml stdin_open: true - in addition to tty: true which is already present.

Can you please help me with this?

@nickjj
Copy link
Owner

nickjj commented Nov 1, 2024

Hi,

Do you have an example of another Dockerized app where it's working that I can take a look at?

Have you also tried using pry just to see if it works? #73 has details on how to get that to work.

@sekmo
Copy link
Author

sekmo commented Nov 1, 2024

Unfortunately I cannot, because are private projects.
Thanks for pointing out to the issue, I'll have a look!

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