Search code examples
ruby-on-railsrubydebuggingrubymine-7

RubyMine graphical debugger not working


I'm ruby 2.2.1 and rails 4.2.0 with RubyMine 7.0.4. I tried to use the graphical debugger but every time when it hits a brake point I get the following error in my browser:

undefined method '+' for nil:NilClass


Solution

  • I encountered this problem just now and solved it simply by commenting out byebug in the development group in your Gemfile.

    group :development, :test do
      gem 'sqlite3',     '1.3.9'
    #  gem 'byebug',      '3.4.0'
      gem 'web-console', '2.0.0.beta3'
      gem 'spring',      '1.1.3'
    end
    

    I think it's because this new rails built-in debugger is colliding with the one provided by RubyMine and byebug wins.

    Save the revised Gemfile and restart your server in debug mode and everything should be back to normal again :)