ruby-debug-ide

URL
http://rubyforge.org/projects/debug-commons/
Author(s)
Markus Barchfeld, Martin Krauskopf
Summary
An interface which glues ruby-debug to IDEs like Eclipse (RDT) and NetBeans.

Add your comment ↓

Comments

ruby-debug-ide is Working
for Eric Hermann (Mac OSX, 6 months ago)

I was able to install this on mac 0S 10.5 by using rvm and switching to 1.8.7 (rvm 1.8.8), then I ran sudo gem install ruby-debug-ide. Once that was installed, I switched back to 1.9.2 (rvm 1.9.2) and ran sudo gem install ruby-debug19

ruby-debug-ide (ruby1.9.1) is Failing
for Noha (GNU/Linux, 8 months ago)

I'm running Ubuntu 10.4, ruby 1.9.1 .. Tried to install ruby-debug-ide both from netbeans 6.9 or the terminal and I get this error:
Error:failed to build gem native extension /usr/bin/ruby1.9.1 mkrf_conf.rb
I tried installing ruby-debug-ide19 but I got an error message saying that it's only available for >= ruby 1.9.2 versions. Any ideas? Thanks!

ruby-debug-ide (0.4.12 + ruby 1.9.2p0) is Failing
for Christian Noack (GNU/Linux, about 1 year ago)

Installing ruby-debug-ide19 (0.4.12) on ruby 1.9.2p0 (2010-08-18 revision 29036) did work. But using it from NetBeans does not (Uncaught exception: no such file to load -- script/rails).

So I started it on command line (rdebug-ide -p 7000 script/server), but when attaching NetBeans Debugger to it I got the same error.

Then I started rdebug-ide with an absolute path to the server script (rdebug-ide -p 7000 ~/documents/myproject/script/server) and everything works as expected. Could this be because in ruby 1.9.2 the current directory is not included in $: anymore? If so, there should be a fix in ruby-debug-ide.

A quick workaround for that is to modify ruby-debug-ide.rb (on ubuntu located in /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib) as follows:

Replace the line 123
bt = debug_load(Debugger::PROG_SCRIPT, options.stop, options.load_mode)

with the following code:

if Debugger::PROG_SCRIPT.match(/script\/server/)
p_script = './script/server'
else
p_script = Debugger::PROG_SCRIPT
end
bt = debug_load(p_script, options.stop, options.load_mode)

This is not an overall valid solution, but helps if you just want debugging on NetBeans working.

ruby-debug-ide (0.4.12 + ruby 1.9.2p0) is Failing
for Christian Noack (GNU/Linux, about 1 year ago)

Installing ruby-debug-ide19 (0.4.12) on ruby 1.9.2p0 (2010-08-18 revision 29036) did work. But using it from NetBeans does not (Uncaught exception: no such file to load -- script/rails).

So I started it on command line (rdebug-ide -p 7000 script/server), but when attaching NetBeans Debugger to it I got the same error.

Then I started rdebug-ide with an absolute path to the server script (rdebug-ide -p 7000 ~/documents/myproject/script/server) and everything works as expected. Could this be because in ruby 1.9.2 the current directory is not included in $: anymore? If so, there should be a fix in ruby-debug-ide.

A quick workaround for that is to modify ruby-debug-ide.rb (on ubuntu located in /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib) as follows:

Replace the line 123
bt = debug_load(Debugger::PROG_SCRIPT, options.stop, options.load_mode)

with the following code:

if Debugger::PROG_SCRIPT.match(/script\/server/)
p_script = './script/server'
else
p_script = Debugger::PROG_SCRIPT
end
bt = debug_load(p_script, options.stop, options.load_mode)

This is not an overall valid solution, but helps if you just want debugging on NetBeans working.

ruby-debug-ide (1.9.2p0) is Working
for Jake K (Mac OSX, about 1 year ago)

Did not work for me on 1.9.2dev

But after installing from 1.9.2-p0 source got it to work. (I had to blow away my gem lib before re-installing or gem crashed with another error)
============================
*Before* upgrading to 1.9.2p0 I had this error:

Building native extensions. This could take a while...
ERROR: Error installing ruby-debug-ide:
ERROR: Failed to build gem native extension.

/usr/local/bin/ruby mkrf_conf.rb
Building native extensions. This could take a while...

Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.10 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.10/ext/gem_make.out

ruby-debug-ide (0.4.9) is Failing
for Tony (Windows, about 1 year ago)

Can't build native extension on Win7.

ruby-debug-ide (0.4.12) is Working
for Kiryl Polyakov (Windows, about 1 year ago)

With rubyinstaller-1.9.1-p430 (DevKit-4.5.0-20100819-1536) I had "error: 'rb_method_entry_t' undeclared" while making "gem install ruby-debug-ide19 --platform=ruby". Solved by adding string "#define RUBY_VERSION_1_9_1" at the beginning of "c:\ruby\include\ruby-1.9.1\ruby-1.9.1-p430\version.h" header. Best regards.

ruby-debug-ide (1.9.2dev) is Failing
for toddq (GNU/Linux, about 1 year ago)

ruby-debug-ide (0.4.9) is Working
for Alexander S. Manenko (GNU/Linux, about 1 year ago)

Installs without problems on Arch Linux
(I have linecache19 and ruby-debug19 already installed)

ruby-debug-ide (0.4.9 (x64 architecture)) is Working
for Berin Loritsch (GNU/Linux, over 2 years ago)

I initially had issues installing ruby-debug-ide due to issues with the dependencies on linecache19 and ruby_core_headers.

You must "sudo" to install to get it to work in this environment:

sudo gem install ruby-debug-ide

ruby-debug-ide (0.4.9) is Working
for JP Richardson (GNU/Linux, over 2 years ago)

Mark, thank you for your contributions. I just tested it and it works great in Netbeans!

ruby-debug-ide (0.4.9) is Working
for Mark Moseley (Windows, over 2 years ago)

Works fine for me with RubyMine 1.5 EAP and Ruby 1.8.7.

Javinto, try re-installing everything from scratch.

ruby-debug-ide (0.4.9) is Working
for Berin Loritsch (Windows, over 2 years ago)

The instructions were initially hard to find, but it turns out that the makers of the one-click ruby installer also have a dev kit for windows users:

http://rubyinstaller.org/
http://rubyinstaller.org/addons.html

That made everything work. Compilation is slow.

ruby-debug-ide (0.4.7) is Failing
for Berin Loritsch (Windows, over 2 years ago)

There is no precompiled version for windows, so this fails to install on windows platforms.

Fails when it attempts to install the dependent gem "ruby-debug-base19".

ruby-debug-ide (0.4.7) is Working
for Mark Moseley (GNU/Linux, over 2 years ago)

Now it's the same as with 1.8:
gem install ruby-debug-ide

ruby-debug-ide (0.4.7) is Working
for Mark Moseley (Windows, over 2 years ago)

You'll need to download the gem file from github. See:
http://github.com/mark-moseley

Instructions are on the ruby-debug wiki.

ruby-debug-ide is Failing
for Nick Klauer (GNU/Linux, over 2 years ago)

Can't get it to install:

Building native extensions. This could take a while...
ERROR: Error installing ruby-debug-ide:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.9 extconf.rb install ruby-debug-ide
Can't handle 1.9.x yet

ruby-debug-ide is Failing
for JP Richardson (GNU/Linux, over 2 years ago)

I would love for this to work!!

ruby-debug-ide is Failing
for Ondřej Konečný (GNU/Linux, over 2 years ago)

Doesn't even install.

Add your comment




Yes No