# Eclipse and ruby-debug

**URL:** <https://rubytalk.org/t/eclipse-and-ruby-debug/41405>\
**Category:** ruby-talk\
**Created:** [15 October 2007 19:54 UTC](https://rubytalk.org/t/eclipse-and-ruby-debug/41405 "2007-10-15T19:54:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wayne\_Magor1](https://avatars.discourse-cdn.com/v4/letter/w/c89c15/32.png) [@Wayne\_Magor1](https://rubytalk.org/u/Wayne_Magor1)\
**Post date:** [15 October 2007 19:54 UTC](https://rubytalk.org/t/eclipse-and-ruby-debug/41405/1 "2007-10-15T19:54:45Z")

</div>

I'm using the RDT plugin for Ruby development in Eclipse on Windows. It  
works fairly well, but it doesn't move the source window to the current  
breakpoint line when it hits a breakpoint in the debugger, nor does it  
even put an arrow or anything on the current line, so stepping through  
code is not so fun. I've never used Eclipse before, so I'm not sure if  
there is something I can set to make that work.

So I decided to try using ruby-debug as the debugger. I installed the  
gems and at the command prompt it shows that rdebug-ide works (it's on  
my path), but when I select "Use ruby-debug library" in Preferences -\>  
Ruby -\> Debugger it gives the error:

&nbsp;&nbsp;Specified executable rdebug-ide does not exist for ruby 1.8.6

I've searched for how to fix this with no luck. Does anyone here have  
an idea of what I should do to get ruby-debug working with Eclipse (or  
how to get the source to sync up with the current line for the std  
debugger)?

E:\\>gem list ru

\*\*\* LOCAL GEMS \*\*\*

ruby-debug-base (0.9.3)  
&nbsp;&nbsp;&nbsp;&nbsp;Fast Ruby debugger

ruby-debug-ide (0.1.8)  
&nbsp;&nbsp;&nbsp;&nbsp;IDE interface for ruby-debug.

E:\\>rdebug-ide -v  
Using ruby-debug-base 0.9.3

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Jay\_Levitt1](https://avatars.discourse-cdn.com/v4/letter/j/ba9def/32.png) [@Jay\_Levitt1](https://rubytalk.org/u/Jay_Levitt1)\
**Post date:** [15 October 2007 21:35 UTC](https://rubytalk.org/t/eclipse-and-ruby-debug/41405/2 "2007-10-15T21:35:03Z")

</div>

Which RDT? I \*think\* the latest (which is now a part of Aptana RadRails)  
has at least some support for ruby-debug. If you're still using 0.9.0, who  
knows...

> **···**
>
> On Tue, 16 Oct 2007 04:54:45 +0900, Wayne Magor wrote:
> 
> > I'm using the RDT plugin for Ruby development in Eclipse on Windows. It  
> > works fairly well, but it doesn't move the source window to the current  
> > breakpoint line when it hits a breakpoint in the debugger, nor does it  
> > even put an arrow or anything on the current line, so stepping through  
> > code is not so fun. I've never used Eclipse before, so I'm not sure if  
> > there is something I can set to make that work.
> 
> --  
> Jay Levitt |  
> Boston, MA | My character doesn't like it when they  
> Faster: jay at jay dot fm | cry or shout or hit.  
> [http://www.jay.fm](http://www.jay.fm) | - Kristoffer

---

<div class="post-metadata">

**Author:** ![Wayne\_Magor1](https://avatars.discourse-cdn.com/v4/letter/w/c89c15/32.png) [@Wayne\_Magor1](https://rubytalk.org/u/Wayne_Magor1)\
**Post date:** [15 October 2007 22:31 UTC](https://rubytalk.org/t/eclipse-and-ruby-debug/41405/3 "2007-10-15T22:31:02Z")

</div>

Jay Levitt wrote:

> Which RDT? I \*think\* the latest (which is now a part of Aptana  
> RadRails)  
> has at least some support for ruby-debug. If you're still using 0.9.0,  
> who  
> knows...

Interesting. Well, I have these installed in my Eclipse and I've  
updated:

Aptana [http://update.aptana.com/install/](http://update.aptana.com/install/)  
RadRails [org.radrails.updatesite](http://radrails.sourceforge.net/update)  
Ruby RDT release build [http://updatesite.rubypeople.org/release](http://updatesite.rubypeople.org/release)

I see that at RadRails.org there is this note:

Aptana Eclipse users: Use [http://update.aptana.com/install/rails/3.2/](http://update.aptana.com/install/rails/3.2/) to  
access the RadRails plugin.

I'm a little confused by this. So RadRails is now part of Aptana?  
...and is RDT part of RadRails? Should I remove something from these  
Eclipse update sites and change something else to be  
[http://update.aptana.com/install/rails/3.2/](http://update.aptana.com/install/rails/3.2/) ???

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Jay\_Levitt1](https://avatars.discourse-cdn.com/v4/letter/j/ba9def/32.png) [@Jay\_Levitt1](https://rubytalk.org/u/Jay_Levitt1)\
**Post date:** [15 October 2007 23:10 UTC](https://rubytalk.org/t/eclipse-and-ruby-debug/41405/4 "2007-10-15T23:10:07Z")

</div>

Yep. Earlier this year, the RadRails developers got full-time jobs and  
ceased development. Aptana picked up RadRails development, and soon after,  
they hired Chris Williams, the primary RDT developer.

So radrails.sourceforge.net and updatesite.rubypeople.org are both  
out-of-date. The former will never be updated again AFAIK; Chris recently  
posted a message implying that the latter might be, but meanwhile,  
update.aptana.com has the latest version of RadRails and RDT.

Just to confuse you further, Aptana offers three "products" right now:

1. The Aptana plugin, which includes Aptana's own HTML, CSS, XML, AIR,  
iPhone, and other editors and infrastructure.  
2. The RadRails plugin, which includes both the original RadRails plugin  
and the RDT plugin.  
3. The Aptana IDE, which is simply a complete build of Eclipse with the  
above two already installed.

I would uninstall all Aptana, RadRails, and RDT plugins from your system,  
then start from scratch at:

> **[Aptana.com](https://www.axway.com/en/aptana)**

> **···**
>
> On Tue, 16 Oct 2007 07:31:02 +0900, Wayne Magor wrote:
> 
> > Interesting. Well, I have these installed in my Eclipse and I've  
> > updated:
> > 
> > Aptana [http://update.aptana.com/install/](http://update.aptana.com/install/)  
> > RadRails [org.radrails.updatesite](http://radrails.sourceforge.net/update)  
> > Ruby RDT release build [http://updatesite.rubypeople.org/release](http://updatesite.rubypeople.org/release)
> > 
> > I see that at RadRails.org there is this note:
> > 
> > Aptana Eclipse users: Use [http://update.aptana.com/install/rails/3.2/](http://update.aptana.com/install/rails/3.2/) to  
> > access the RadRails plugin.
> > 
> > I'm a little confused by this. So RadRails is now part of Aptana?  
> > ..and is RDT part of RadRails? Should I remove something from these  
> > Eclipse update sites and change something else to be  
> > [http://update.aptana.com/install/rails/3.2/](http://update.aptana.com/install/rails/3.2/) ???
> 
> --  
> Jay Levitt |  
> Boston, MA | My character doesn't like it when they  
> Faster: jay at jay dot fm | cry or shout or hit.  
> [http://www.jay.fm](http://www.jay.fm) | - Kristoffer

---

<div class="post-metadata">

**Author:** ![Wayne\_Magor1](https://avatars.discourse-cdn.com/v4/letter/w/c89c15/32.png) [@Wayne\_Magor1](https://rubytalk.org/u/Wayne_Magor1)\
**Post date:** [15 October 2007 23:57 UTC](https://rubytalk.org/t/eclipse-and-ruby-debug/41405/5 "2007-10-15T23:57:06Z")

</div>

Jay Levitt wrote:

> I would uninstall all Aptana, RadRails, and RDT plugins from your  
> system,  
> then start from scratch at:

OK, now we're getting somewhere... Did the uninstall/reinstall  
(although RDT can't be uninstalled since the uninstall is grayed out,  
but I just disabled it),however, I still get the source problem, but now  
I do at least get a popup error message:

&nbsp;&nbsp;An internal error occurred during: "Debug Source Lookup".

Now, it's REALLY irritating because every time I step it pops up the  
error dialog box again which I have to close. This is much worse! The  
source file is in the current directory. Seems like going to a line  
number should be pretty simple. Not sure what is causing this.

I now do know what caused the problem with ruby-debug since I got an  
error message with this Aptana plug-in. Looks like there is one too  
many /bin directories on the path to rdebug-ide. It also looks like it  
has been fixed, however, an update doesn't correct it for me:

#5249 Path to rdebug-ide can have one "bin" too many

> **[Aptana.com](https://www.axway.com/en/aptana)**

I just created another bin directory under the current one and copied  
the rdebug-ide.cmd and rdebug-ide files into it. That's seems to have  
gotten it going. Now if I can just turn off that damned popup error  
message...

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Adrie\_Donker](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@Adrie\_Donker](https://rubytalk.org/u/Adrie_Donker)\
**Post date:** [9 November 2007 21:29 UTC](https://rubytalk.org/t/eclipse-and-ruby-debug/41405/6 "2007-11-09T21:29:52Z")

</div>

Wayne Magor wrote:

...  
I do at least get a popup error message:

&nbsp;&nbsp;An internal error occurred during: "Debug Source Lookup".

... Now if I can just turn off that damned popup error message...

Wayne,

I'm having the same problem, I hope someone knows the answer!

GRTZ Adrie

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
