我对 RubyMine 感到非常沮丧,因为让调试器运行起来非常困难。我的gemfile中有这个,
gem 'ruby-debug-ide' if ENV["RM_INFO"]
gem 'ruby-debug-base19x', '0.11.30.pre12' if ENV["RM_INFO"]
(请注意,我没有列出debugger
宝石),并且bundle install
部分地给了我,
Using debugger-ruby_core_source (1.2.2)
Using ruby-debug-base19x (0.11.30.pre12)
Using ruby-debug-ide (0.4.16)
这在Gemfile.lock
ruby-debug-base19x (0.11.30.pre12)
debugger-ruby_core_source (>= 1.1.4)
rake (>= 0.8.1)
ruby-debug-ide (0.4.16)
rake (>= 0.8.1)
再次,debugger
宝石无处可寻。那么为什么当我尝试调试我的 Rails 应用程序时仍然得到这个?
Exception: undefined method `prepare_debugger' for Debugger:Module
/Users/cbmanica/.rvm/gems/ruby-1.9.3-p194/gems/ruby-debug-ide-0.4.17.beta17/lib/ruby-debug-ide/multiprocess/pre_child.rb:60:in `start_debugger'
/Users/cbmanica/.rvm/gems/ruby-1.9.3-p194/gems/ruby-debug-ide-0.4.17.beta17/lib/ruby-debug-ide/multiprocess/pre_child.rb:32:in `block in pre_child'
/Users/cbmanica/.rvm/gems/ruby-1.9.3-p194/gems/ruby-debug-ide-0.4.17.beta17/lib/ruby-debug-ide/multiprocess/pre_child.rb:26:in `times'
/Users/cbmanica/.rvm/gems/ruby-1.9.3-p194/gems/ruby-debug-ide-0.4.17.beta17/lib/ruby-debug-ide/multiprocess/pre_child.rb:26:in `pre_child'
/Users/cbmanica/.rvm/gems/ruby-1.9.3-p194/gems/ruby-debug-ide-0.4.17.beta17/lib/ruby-debug-ide/multiprocess/starter.rb:9:in `<top (required)>'