debug with docker-compose doesn't work



I'm struggling with following this tutorial(

I could've succeed to debug with docker however not good with 'docker-compose'.

I followed exactly same that the tutorial said. Except the way of adding gems 'debase' and 'ruby-debug-ide', because adding them into built 'docker image' produced LoadError. So I added them first into Gemfile and then built 'docker image'. And then I could debug with docker.

I could execute 'Development: sample_rails_app_docker' as debug mode with 'docker-compose', but it doesn't hit break point.

Could you give me any hints what I should look into?

Logs in console window are below.


/usr/local/bin/docker-compose -f /Users/genki98/Workspace/sample_rails_app_docker/docker-compose.yml exec -e RM_INFO=RM-191.6707.59 -e TEAMCITY_RAKE_RUNNER_MODE=idea -e "TEAMCITY_RAKE_RUNNER_USED_FRAMEWORKS=:test_unit :shoulda " -e RUBYMINE_TESTUNIT_REPORTER=/opt/.rubymine_helpers/rb/testing/patch/testunit -e TEAMCIY_RAKE_TU_AUTORUNNER_PATH=/usr/local/lib/ruby/gems/2.6.0/gems/test-unit-3.2.9/lib/test/unit/autorunner.rb -e LANG=ko_KR.UTF-8 -e ANSICON= -e RUBYLIB=/opt/.rubymine_helpers/rb/testing/patch/common:/opt/.rubymine_helpers/rb/testing/patch/testunit:/usr/local/bundle/gems/debase-0.2.2/lib:/usr/local/bundle/gems/ruby-debug-ide-0.7.0/lib -e TEAMCITY_RAKE_TU_TESTRUNNERMADIATOR_PATH=/usr/local/lib/ruby/gems/2.6.0/gems/test-unit-3.2.9/lib/test/unit/ui/testrunnermediator.rb web sh -c "/usr/local/bin/ruby /usr/local/bundle/gems/ruby-debug-ide-0.7.0/bin/rdebug-ide --key-value --disable-int-handler --evaluation-timeout 10 --evaluation-control --time-limit 100 --memory-limit 0 --rubymine-protocol-extensions --port 1234 --host --dispatcher-port 26168 -- /opt/project/bin/rails server -b -p 3000 -e development"
Fast Debugger (ruby-debug-ide 0.7.0, debase 0.2.2, file filtering is supported) listens on
=> Booting Puma
=> Rails 5.1.6 application starting in development
=> Run `rails server -h` for more startup options
Puma starting in single mode...
* Version 3.9.1 (ruby 2.6.3-p62), codename: Private Caller
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://
Use Ctrl-C to stop



could you please check how it goes in RubyMine 2019.2 EAP4 and if you specify debug gems versions (debase 0.2.3.beta5 and ruby-debug-ide 0.7.0)?


Oh upgrading RubyMine to 2019.1.2 solved the problem. It works now.


Please sign in to leave a comment.