3

在 jruby 上运行时,我试图在 ruby​​-debug 中设置断点。首先我在这篇文章中遇到了一些错误,为什么我不能在 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

4

0 回答 0