I want to use byebug to debug my application but the app is never stop although I already put byebug
inside my code. Here is my Gemfile.
group :deve
To enable debugger mode:
docker-compose run --service-ports web
See this blog post
I was having issues with changes to files (like adding byebug
) being synced and found adding consistent
to the volume definition helped:
volumes:
- .:/usr/src/app:consistent
When using docker-compose
in combination with byebug
this needs to be added to make it work properly. Found in this blog post
Add this to docker-compose.yml
web:
...
stdin_open: true
tty: true
Then run docker-compose in deamonized mode and attach to the web container with docker:
docker-compose up -d
docker attach myappname_web_1