Can not debug in Rubymine
已回答
I try to debug a simple Ruby script under Windows 10
I installed a fresh copy of Rubymine 2017.3.2
I installed a fresh copy Ruby23-x64 (from Rubyinstaller)
I do not manage to configure Rubymine to debug a simple Ruby script (just local debugging)
I can run the Ruby script without any problem
Can you please help me
Thank you
P.S. I have gone thru your doc several times but after all I did not manage it
请先登录再写评论。
Hello Chris,
Could you please add more information to clarify the issue? Do you get any error?
C:\Ruby23-x64\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.1.beta4/bin/rdebug-ide --disable-int-handler --evaluation-timeout 10 --rubymine-protocol-extensions --port 63476 --host 0.0.0.0 --dispatcher-port 63477 --
The typical error I receive is:
C:/Users/Chris/RubymineProjects/HelloRuby/HelloRuby
C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- debase_internals (LoadError)
from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/debase-0.2.2.beta9/lib/debase.rb:4:in `<top (required)>'
from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.1.beta4/lib/ruby-debug-ide.rb:9:in `<top (required)>'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.1.beta4/bin/rdebug-ide:8:in `require_relative'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.1.beta4/bin/rdebug-ide:8:in `<top (required)>'
from -e:1:in `load'
from -e:1:in `<main>'
I also installed rubygems. I also installed Rubygems. I tried for hour without success - Why don't you provide a detailed info what to install wand where and then how to start debugging?
Thank you
Hello Chris,
Looks like some problem with gems. We have similar issue in YouTrack: https://youtrack.jetbrains.com/issue/RUBY-18807.
Please try to uninstall "debase" gem from the terminal and install the latest version.
If it doesn'e help please add comment to YouTrack issue.
With Ruby 2.4.2 I was running into this same problem. Issuing `gem update` and `bundle update` resolved the issue.