Unable to debug rails app

Hi,

I am trying out RubyMine to see if we should use it on our Rails 3.2 app. I am trying to run one of our unit tests under RubyMine's debugger without success.

I have created a configuration for one of our unit test files (I have tried checking the "Run the script in context of the bundle exec" checkbox to no avail).

Screenshot_2013-11-20_06.54.46-2.png
When I set a breakpoint and hit the "Debug" button, this is what I see in the console. The breakpoing never fires (in the console output you'll see: "RuntimeError: Debugger.start is not called yet.").

Thus far I am not able to debug *any* part of our app with RubyMine. Any help would be much appreciated.

-CS

2 comments

I am still running into issues but the change that allowed me to at least be able to stop at breakpoints was a simple change to my Gemfile. From what I've been able to find on the web, you are better off disabling any debugger related gems when running under RubyMine.

group :test do
  # The RubyMine debugger does not work when other "debugging" interfaces are present
  gem 'pry-debugger' unless ENV['RM_INFO']    
  gem 'pry-rails'    unless ENV['RM_INFO']
end

group :development do
  # The RubyMine debugger does not work when other "debugging" interfaces are present
  gem 'pry-debugger' unless ENV['RM_INFO']
  gem 'pry-rails'    unless ENV['RM_INFO']
end


Again, this change at least got me up and running. Hope it helps someone else.

-CS

0

ruby-debug-ide/ruby-debug are incompatible with debugger which is used by pry-debugger.  If you do not want change your Gemfile the way you/ve done you can try to use debugger-xml gem as backend for RM's debugging (supported in RM 6.0 RC)

Regards, Oleg.

0

Please sign in to leave a comment.