Unable to debug in RubyMine 4.5 using Ruby 1.9.3 Unable to debug in RubyMine 4.5 using Ruby 1.9.3 ruby ruby

Unable to debug in RubyMine 4.5 using Ruby 1.9.3


UPDATE: RubyMine 6+ supports debugger gem.

Make sure to remove gem 'debugger' from your Gemfile, it's a known conflict that will break debugging from RubyMine. You need only 2 gems related to debugger, exactly as stated in my another answer linked in your question.

After removing the gem you need to ensure it's not referenced anywhere in the project. In this particular case r_spec_runner.rb had require 'ruby-debug' statement causing cannot load such file -- ruby-debug error when trying to run rails console.


To escape this problem I have this line in my Gemfile:
gem 'debugger' unless ENV["RM_INFO"]


Just to document the solution from jetbrains:Use either:

gem 'debugger', {group: [:test, :development]}.merge(ENV['RM_INFO'] ? {require: false} : {})

Or:

gem 'pry-debug', {group: [:test, :development]}.merge(ENV['RM_INFO'] ? {require: false} : {})

This makes sure that the Gemfile.lock remains unchanged, so a group with mixed RubyMine and vi/sublime/whatever can work happily, by do not requiring the gem in a RubyMine environment.