3

我尝试关注 jruby 调试器的各种在线参考,但它不起作用。

我尝试过以下操作:首先更改为 root (不能作为普通用户使用)然后:

jruby -S gem install ruby-debug-base


jruby -S gem install ruby-debug-base

但随后以下命令失败:

jruby --debug -S rdebug ./classifier-wf.rb 

Gem::LoadError: Could not find columnize (>= 0.1) amongst [jdbc-mysql-5.1.24, rake-10.0.3, ruby-debug-0.10.4, ruby-debug-base-0.10.4-java]
           to_specs at /opt/jruby-1.7.3/lib/ruby/shared/rubygems/dependency.rb:247
activate_dependencies at /opt/jruby-1.7.3/lib/ruby/shared/rubygems/specification.rb:777
               each at org/jruby/RubyArray.java:1613
activate_dependencies at /opt/jruby-1.7.3/lib/ruby/shared/rubygems/specification.rb:766
           activate at /opt/jruby-1.7.3/lib/ruby/shared/rubygems/specification.rb:750
                gem at /opt/jruby-1.7.3/lib/ruby/shared/rubygems.rb:1232
             (root) at /opt/jruby-1.7.3/bin/rdebug:22

我正在运行 jruby 1.7.3。谢谢。

4

1 回答 1

3

使用Pry代替其他调试器 gem,很快你就会对它上瘾。

于 2013-05-20T14:40:27.340 回答