Debugging Ruby on Eclipse [message #881838] |
Tue, 05 June 2012 10:45 |
shay leon Messages: 9 Registered: June 2012 |
Junior Member |
|
|
Hi
Installed "DLTK3 - Ruby development tools"
Installed Ruby193 and DevKit from rubyinstaller.org.
Eclipse runs Ruby scripts, but debug is not working.
Not sure whether it was necessary, but I then did
gem install ruby-debug19
which led to:
"ruby_debug.c:29:19: error: conflicting types for 'rb_iseq_compile_with_option'"
so I wrote:
"gem install ruby-debug19 --ignore" which worked.
I then did "gem install ruby-debug-base19x -v 0.11.30.pre3" which worked.
BUT... debug is still not working.
When selected debugging engine is "Ruby built in debugger", I get following errors in Eclipse's console (I cannot post links since I'm newbie on this forum, so here's a big paste):
--------------------
C:/DOCUME~1/shleon01/LOCALS~1/Temp/dltk18295.tmp/debugger/AbstractRunner.rb:97: warning: else without rescue is useless
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': C:/DOCUME~1/shleon01/LOCALS~1/Temp/dltk18295.tmp/debugger/AbstractRunner.rb:94: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError)
when nil: NullLogManager.new
^
C:/DOCUME~1/shleon01/LOCALS~1/Temp/dltk18295.tmp/debugger/AbstractRunner.rb:95: syntax error, unexpected keyword_when, expecting keyword_end
when 'stdout': StdoutLogManager.new
^
C:/DOCUME~1/shleon01/LOCALS~1/Temp/dltk18295.tmp/debugger/AbstractRunner.rb:95: syntax error, unexpected ':', expecting keyword_end
when 'stdout': StdoutLogManager.new
^
C:/DOCUME~1/shleon01/LOCALS~1/Temp/dltk18295.tmp/debugger/AbstractRunner.rb:105: syntax error, unexpected keyword_end, expecting $end
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/DOCUME~1/shleon01/LOCALS~1/Temp/dltk18295.tmp/debugger/BasicRunner.rb:10:in `<top (required)>'
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
----------------------------------
When selected debugging engine is "Fast ruby debugger" I get
"Debugging Engine not started
The 'Fast Ruby Debugger (ruby-debug)' is selected, but the 'ruby-debug' gem doesn't seem to be installed in the selected Ruby Interpreter (C:\Ruby193\bin\ruby.exe)"
I tried JetBrains RubyMine and it installed a GEM and now it's working, but I rather figure out how to work using Eclipse
Looking forward for any advice.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06578 seconds