Can't debug Rails app in Rubymine

957 views Asked by At

When I debug a simple rails app (only ran scaffold command). Rubymine does not show any variable in debugger window. I already installed ruby-debug-ide 0.4.30, debase 0.1.3 gems on Rubymine and I am using ubuntu 14.04, ruby 2.2 , rails 4.2.2, rbenv , rubymine 7.1 .

thanks in advance. rails app

rails app

Update: Problem solved!! Just comment out the 'byebug' gem.

1

There are 1 answers

0
Mourad On

To help you here are some steps to follow in order to debug in your rubyMine.

First Install dubug gems localy:

  1. Download the following gems:

  2. Place the downloaded gems into a file called gems

  3. Open Ruby cmd consol [clic on start button, select Ruby then select Start command prompt with Ruby]
  4. Cd to the gems file path [lets supose the path of your gems file is C:\Desktop\gems] write the command: cd C:\Desktop\gems then clic enter.
  5. To install the first gem run the following comand: gem install --local debugger-ruby_core_source-1.3.8.gem
  6. To install the second gem run the following comand: gem install --local ruby-debug-base19x-0.11.30.pre15.gem
  7. Restart RubyMine and test if it works now

Second try the exact same steps with Ruby 1.9 version instead of 2.2

Now if that doeasnt work with the 2.2 Ruby version try it with the version 1.9. and hopefuly it will work for you because it did with me.