我正在尝试使用 eclipse JUNO 版本和 DLTK 版本 4.0.0.201206120848 调试一个简单的 ruby 脚本
我用以下 gem 安装了 ruby-1.9.3-p194
*** LOCAL GEMS ***
archive-tar-minitar (0.5.2)
bundler (1.2.0)
columnize (0.3.6)
debugger (1.2.0)
debugger-linecache (1.1.2)
debugger-ruby_core_source (1.1.3)
linecache19 (0.5.12)
rake (0.9.2.2)
rbx-require-relative (0.0.9)
ruby-debug-base19 (0.11.25)
ruby-debug-ide (0.4.17.beta14)
ruby-debug-ide19 (0.4.12)
ruby-debug19 (0.11.6)
ruby_core_source (0.1.5)
rubygems-bundler (1.0.7)
rvm (1.11.3.5)
但 Eclipse 调试器会抛出以下错误:
ECLIPSE 控制台输出
/tmp/dltk6585.tmp/debugger/AbstractRunner.rb:97: warning: else without rescue is useless
/usr/local/rvm/rubies/ruby-1.9.3-p194/lib64/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /tmp/dltk6585.tmp/debugger/AbstractRunner.rb:94: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError)
when nil: NullLogManager.new
^
/tmp/dltk6585.tmp/debugger/AbstractRunner.rb:95: syntax error, unexpected keyword_when, expecting keyword_end
when 'stdout': StdoutLogManager.new
^
/tmp/dltk6585.tmp/debugger/AbstractRunner.rb:95: syntax error, unexpected ':', expecting keyword_end
when 'stdout': StdoutLogManager.new
^
/tmp/dltk6585.tmp/debugger/AbstractRunner.rb:105: syntax error, unexpected keyword_end, expecting $end
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib64/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /tmp/dltk6585.tmp/debugger/FastRunner.rb:10:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib64/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib64/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
最奇怪的是使用 ruby 版本 1.8.7 的同样的事情工作正常。请指教。