ubuntu - Can't run RubyMine debugger with RVM, Ruby 1.9.2 and Rails 3 -


I have set up a fresh Ubuntu setup and made it to install RVM, Ruby 1.9.2 and Rail 3 .

Then I installed RubyMin 3.0, it automatically detected Ruby 1.9.2 SDK with RVM path, so that's OK. I can start the server completely (Green Play Button).

The problem is that I can not debug it because it throws the following exception after the startup.

  / home / APRC / RRM / RBI / RBI-1.9.2-P 180 / Been / RUB-A et AXT {SO (1)}; $ STDOUT.sync = true; $ Stderr.sync = true; Load ($ 0 = ARGV.shift) /home/eparizzi/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug-ide-0.4.16/bin/rdebug-ide --port 39879 - / Home / eparizzi / projects / delko / src / script / rails server -p 3000 -b 0.0.0.0 -e development fast debugger (ruby-debug-ide 0.4.16, ruby-debug-base 0.11) 127.0.0.1. 9 879 / Home / Euphoria / RVM / Ratna / Ruby-1.9.2-P 180 / Gems / Ruby-Debug19.1.16 / Klee / Ruby-Debug / Interface RB: 128: `Module: Debugger & gt; /home/eparizzi/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug19-0.11.6/cli/ruby-debug/interface.rb:1:in Top (required) & gt; '/home/eparizzi/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug19-0.11.6/cli/ruby-debug/processor.rb:1:in `required_related' / home / eparizzi / RVM / Ratna / Rabbi-1.9.2-P 180 / Ratna / Ruby-Debug19.1.16 / Clei / Rabbi-Debug / Processor. RB: 1: in `& lt; Top (required) & gt; '/home/eparizzi/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug19-0.11.6/cli/ruby-debug.rb: 6: IN` required_related' /home/eparizzi/.rvm / Gems / Ruby-1.9.2-P 180 / Gems / Ruby-Debug 9 -1.11.6 / Clei / Ruby-Debug. Rb: 6: `` and at the top (required) & gt; /home/eparizzi/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runtime.rb:68:IN `requirement '/home/eparizzi/.rvm/gems/ Ruby-1.9.2-p180 / Gem / Bundler-1.0.10 / Lib / Bundler / Runtime RB: 68: In 'Block (2 level)' /home/eparizzi/.rvm/gems/ruby-1.9 is required. 2-P 180 / Gems / Bundler-1.0.0 / 10 / Lib / Bundler / Runtime RB: 66: In 'each' / Home / Aperi / RRM / Games / Ruby-1.9.2-P 180 / Games / Bundler-1.0 10 / lib / bundler / runtime.rb: 66: 'block-in requirement' /home/eparizzi/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runtime RB : 55: `each '/home/eparizzi/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runtime.rb: 55: in` requirement' / home / Parizizi /. RVM / Games / Ruby-1.9.2-P 180 / Games / Bundler-1.0.0 / 10 / Lib / Bundler. RBI 20: In 'Required' / Home / Effective / Projects / Delko / src / config / application .rb: 7: `& lt; Top (required) & gt; /home/eparizzi/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.5/lib/rails/commands.rb: 28: in` required '/home/eparizzi/.rvm/gems/ Ruby-1.9.2-p180 / Gemstone / Railway-3.0.5 / Lib / Rail / CommandRb: 28: `In Block & lt; Top (required) & gt; '/home/eparizzi/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.5/lib/rails/commands.rb:27:in`tap' /home/eparizzi/.rvm/gems / Ruby-1.9.2-p180 / Gems / Railways-3.0 / 5 / Lib / Rail / Command. RB: 27: `& lt; Top (required) & gt; `/ '/ Home / EPRIGY / PROJECTS / DELCO / src / script / rail: 6: in` & lt; Top (required) & gt; `/ Home / eparizzi / projects / delko / src / script / rails: /home/eparizzi/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug-ide-0.4.16/lib/ruby- Debug-ide.rb: 112: in 'debug_load' / home / eparizzi /.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug-ide-0.4.16/lib/ruby-debug-ide Rb: 112: IN 'debug_program' / home / appary / RVM / Ratna / Ruby -1.9.2-P 180 / Ratna / Ruby-Debug-ICE -0.4.16 / Bin / RDBG-IID: 87: `At the top (Expected) & gt; -e: 1: `Load '-e: 1: in` & lt; Main & gt; ' Uncaught Exception: Class Super Class Mismatch, Remote Interface Process with Exhaust Code 0   

I have the following line in the song

  gem ' Ruby-debug19 ',: requirement = & gt; Apart from this, I have installed the ruby-debug-ide gem as follows:  
  gem ruby- Debug-Ide19 - Include-Ruby-Include = $ rvm_path / src / ruby-1.9.2-p180 /    

This is definitely a gem-related debug problem, although you do not need to include debug gem in your .gemfile. Rumbin should choose it automatically, so I will remove it to start with it.

Ensure that you have also installed the debug-base gem for 1.9

  set gem ruby-debug-base19   

I remember that for the first 1.9 there were some issues related to debugging in general, but I think they are now ironed.

Have you seen this article yet? It may also be able to point you in some direction.

All the best.

Comments