Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RubyMine debugger error

Tags:

ruby

rubymine

i'm using RubyMine 6.3 buth I have some problems with debugger

C:\Ruby200\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.23.beta1/bin/rdebug-ide --disable-int-handler --port 49883 --dispatcher-port 49884 -- C:/Ruby200/Projekty/123/test C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- debase_internals (LoadError) from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/debase-0.0.9/lib/debase.rb:4:in <top (required)>' from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.23.beta1/lib/ruby-debug-ide.rb:8:in ' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.23.beta1/bin/rdebug-ide:8:in require_relative' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.23.beta1/bin/rdebug-ide:8:in ' from -e:1:in load' from -e:1:in'

Process finished with exit code 1

But when use Ruby Interactive Console, all is working. When I use Komodo IDE all is fine.

like image 382
Malwurf Avatar asked May 03 '14 09:05

Malwurf


3 Answers

I fixed my issue by installing debase manually from the terminal, not from the one bundled with rubymine, try it

gem install debase

PS: I was using ruby 1.9.3

like image 188
Mohammad AbuShady Avatar answered Sep 28 '22 18:09

Mohammad AbuShady


Adding the following to my Gemfile made debugging and rails commands work (versions: Rubymine 7.0.4, ruby 2.3.1 and rails 4.2.6):

  group :development do
    gem 'ruby-debug-ide', '0.4.24'
    gem 'debase', '0.2.1'
  end
like image 24
iheggie Avatar answered Sep 28 '22 20:09

iheggie


Just spent 6 hours working through this, and just in case this helps others, here is what I did:

  1. Upgraded to latest version of RubyMine (downloaded 7.0 from JetBrains site)
  2. Upgraded to Ruby 2.1.2
  3. Opened RubyMine > File > Default Settings > Ruby SDK & Gems > Selected ruby-2.1.2 > Clicked '+' on right hand side > Installed cucumber and calabash-cucumber
  4. RubyMine > Run > Edit Configurations > changed the SDK to ruby-2.1.2

And it worked. Hopefully this might help others new to Calabash / Ruby / RubyMine

like image 21
Charlie Seligman Avatar answered Sep 28 '22 20:09

Charlie Seligman