2
我試圖按照jruby調試器的各種在線參考,但它不工作。無法爲jruby運行調試器
我嘗試以下:根第一個變化(不正常工作的用戶),則:
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 0.3。謝謝。
pry-debugger不適用於jruby https://github.com/nixme/pry-debugger/issues/26 – Thomas 2013-12-12 16:12:48
不需要pry-debugger,只需將'binding.pry'添加到任何需要的地方休息。 – 2013-12-13 05:48:57