1

我试图让调试器为 JRuby 1.7.3 工作:

我安装了 ruby​​-debug / base / ide gems。然后我尝试在 Aptana 和 NetBeans 上运行一个基本的 Ruby 脚本。在这两种情况下,我都会得到以下跟踪:

Fast Debugger (ruby-debug-ide 0.4.17.beta16, ruby-debug-base 0.10.5.rc3) listens on 127.0.0.1:55687
Hello World
10432: Exception in DebugThread loop: Bad file descriptor - Bad file descriptor
Backtrace:
org/jruby/RubyIO.java:2052:in `close'
  from: C:/jruby-1.7.3/lib/ruby/gems/shared/gems/ruby-debug-ide-0.4.17.beta16/lib/ruby-debug-ide/interface.rb:44:in `close'
  from: C:/jruby-1.7.3/lib/ruby/gems/shared/gems/ruby-debug-ide-0.4.17.beta16/lib/ruby-debug-ide/ide_processor.rb:102:in `process_commands'
  from: C:/jruby-1.7.3/lib/ruby/gems/shared/gems/ruby-debug-ide-0.4.17.beta16/bin/../lib/ruby-debug-ide.rb:121:in `start_control'
  from: org/jruby/RubyProc.java:261:in `call'
  from: org/jruby/RubyProc.java:213:in `call'

我现在使用的是预发布版本,但是在使用发布版本时我得到了同样的错误。

注意:我使用 NetBeans 中的内置 Ruby 解释器(不是 JRuby)成功调试。

4

0 回答 0