无法为jruby运行调试器

时间:2013-05-03 01:51:35

标签: debugging jruby

我已尝试关注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。感谢。

1 个答案:

答案 0 :(得分:2)

使用Pry代替其他调试器宝石,很快就会沉迷于它。