为什么我不能用jruby在ruby-debug中设置断点

时间:2013-07-04 16:38:47

标签: jruby rubymine ruby-debug

我试图在jruby上运行时在ruby-debug中设置断点。 首先我在这篇文章Why can't I set a breakpoint in ruby-debug?

中得到了一些错误

我修补了像Mashmagar说的linecache。第一个错误消失了。现在我又得到了另一个错误

21582: Exception in DebugThread loop: undefined method `errmsg' for #<Debugger::ControlState:0x638bbdc5>
Backtrace:
/home/darius/.rvm/gems/jruby-1.7.4@global/gems/ruby-debug-0.10.4/cli/ruby-debug/command.rb:188:in `errmsg'
  from: /home/darius/.rvm/gems/jruby-1.7.4@global/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/breakpoints.rb:81:in `execute'
  from: /home/darius/.rvm/gems/jruby-1.7.4@global/gems/ruby-debug-ide-0.4.17.beta17/lib/ruby-debug-ide/ide_processor.rb:89:in `process_commands'
  from: org/jruby/RubyKernel.java:1254:in `catch'
  from: /home/darius/.rvm/gems/jruby-1.7.4@global/gems/ruby-debug-ide-0.4.17.beta17/lib/ruby-debug-ide/ide_processor.rb:86:in `process_commands'
  from: /home/darius/.rvm/gems/jruby-1.7.4@global/gems/ruby-debug-ide-0.4.17.beta17/lib/ruby-debug-ide.rb:122:in `start_control'
  from: org/jruby/RubyProc.java:274:in `call'
  from: org/jruby/RubyProc.java:215:in `call'
[2013-07-04 19:18:08] ERROR SystemExit: exit
    org/jruby/RubyKernel.java:866:in `exit'

我使用jruby-1.7.4 和ruby-debug-0.10.4 gem

0 个答案:

没有答案