RubyMine 调试器
RubyMine debugger
我使用了 rubyMine 并想 运行 调试器但是有错误这个,我的和需要做什么? screen
/home/ivan/.rbenv/versions/2.3.1/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load([=10=]=ARGV.shift) /home/ivan/host/courses/lesson8/bin/rake spec
Testing started at 20:27 ...
/home/ivan/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.4/lib/bundler/spec_set.rb:95:in `block in materialize': Could not find rake-11.3.0 in any of the sources (Bundler::GemNotFound)
我还有ruby-2.3.3
ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux]
但我也有 rvm
rvm env
export PATH="/home/ivan/.rvm/gems/ruby-2.3.3/bin:/home/ivan/.rvm/gems/ruby-2.3.3@global/bin:/home/ivan/.rvm/rubies/ruby-2.3.3/bin:$PATH"
export GEM_HOME='/home/ivan/.rvm/gems/ruby-2.3.3'
export GEM_PATH='/home/ivan/.rvm/gems/ruby-2.3.3:/home/ivan/.rvm/gems/ruby-2.3.3@global'
export MY_RUBY_HOME='/home/ivan/.rvm/rubies/ruby-2.3.3'
export IRBRC='/home/ivan/.rvm/rubies/ruby-2.3.3/.irbrc'
unset MAGLEV_HOME
unset RBXOPT
export RUBY_VERSION='ruby-2.3.3'
我做错了什么?
如何在 Ruby Mine 中更正配置调试器?
我怀疑您指向错误的 SDK 和 gem。
打开 Ruby我的首选项 -> 语言和框架 -> Ruby SDK 和 Gems
Select 正确的 RVM gemset,然后按该面板正下方的绿色勾号并应用您的更改。
顺便说一句,将以下内容添加到您的 Gemfile 和 运行 bundle install
,以获取 rubyMine 的调试支持 -
group :development, :test do
gem 'debase'
gem 'ruby-debug-ide'
end
我使用了 rubyMine 并想 运行 调试器但是有错误这个,我的和需要做什么? screen
/home/ivan/.rbenv/versions/2.3.1/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load([=10=]=ARGV.shift) /home/ivan/host/courses/lesson8/bin/rake spec
Testing started at 20:27 ...
/home/ivan/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.4/lib/bundler/spec_set.rb:95:in `block in materialize': Could not find rake-11.3.0 in any of the sources (Bundler::GemNotFound)
我还有ruby-2.3.3
ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux]
但我也有 rvm
rvm env
export PATH="/home/ivan/.rvm/gems/ruby-2.3.3/bin:/home/ivan/.rvm/gems/ruby-2.3.3@global/bin:/home/ivan/.rvm/rubies/ruby-2.3.3/bin:$PATH"
export GEM_HOME='/home/ivan/.rvm/gems/ruby-2.3.3'
export GEM_PATH='/home/ivan/.rvm/gems/ruby-2.3.3:/home/ivan/.rvm/gems/ruby-2.3.3@global'
export MY_RUBY_HOME='/home/ivan/.rvm/rubies/ruby-2.3.3'
export IRBRC='/home/ivan/.rvm/rubies/ruby-2.3.3/.irbrc'
unset MAGLEV_HOME
unset RBXOPT
export RUBY_VERSION='ruby-2.3.3'
我做错了什么? 如何在 Ruby Mine 中更正配置调试器?
我怀疑您指向错误的 SDK 和 gem。
打开 Ruby我的首选项 -> 语言和框架 -> Ruby SDK 和 Gems
Select 正确的 RVM gemset,然后按该面板正下方的绿色勾号并应用您的更改。
顺便说一句,将以下内容添加到您的 Gemfile 和 运行 bundle install
,以获取 rubyMine 的调试支持 -
group :development, :test do
gem 'debase'
gem 'ruby-debug-ide'
end