Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Debugging Ruby(Debugger takes for ever to kick off)
icon5.gif  Debugging Ruby [message #494661] Mon, 02 November 2009 01:47 Go to next message
David  is currently offline David
Messages: 4
Registered: November 2009
Junior Member
I launch debugger in Ruby eclipse.
This message appears
ruby 1.8.6 debugger listens on port 4985
but then nothing seems to be happening - ruby thread shows as having started but the application doesn't kick off.

Debug current instruction pointer is sitting on
I18n.load_path << "#{File.dirname(__FILE__)}/active_support/locale/en.yml" in active_support.rb

I try to start the debugger again and again ; suddenly after a very long time (5-10 minutes usually but can be much longer) the application starts. After that has happened a number of the dormant threads take off.

David
Confused
Re: Debugging Ruby [message #494670 is a reply to message #494661] Mon, 02 November 2009 05:53 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex Panchenko
Messages: 342
Registered: July 2009
Senior Member
Hi David,

Could you please check if you are using Fast ruby debugger (interacting
with the ruby-debug-base gem) or Built-in ruby debugger?

Generally, any debugger slows the application down, but ruby-debug-base
uses some native code to minimize the performance costs.
Built-in debugger works too, but it's quite slow, especially for large
applications.

Regards,
Alex


David wrote:
> I launch debugger in Ruby eclipse.
> This message appears ruby 1.8.6 debugger listens on port 4985
> but then nothing seems to be happening - ruby thread shows as having
> started but the application doesn't kick off.
>
> Debug current instruction pointer is sitting on
> I18n.load_path <<
> "#{File.dirname(__FILE__)}/active_support/locale/en.yml" in
> active_support.rb
>
> I try to start the debugger again and again ; suddenly after a very long
> time (5-10 minutes usually but can be much longer) the application
> starts. After that has happened a number of the dormant threads take off.
>
> David
> :?
Re: Debugging Ruby [message #494672 is a reply to message #494670] Mon, 02 November 2009 06:30 Go to previous messageGo to next message
David  is currently offline David
Messages: 4
Registered: November 2009
Junior Member
I have ruby-debug-0.10.3 gem installed on my computer. When I start Eclipse I get a window title 'Auto-install gems' which states that plugins have contributed local copies of the following gems for automaytic installation. I am invited to select which gems to have installed. The gems listed are

linecache
ruby_debug_ide
ruby_debug_base

I have tried to upload a screenshot of this window but cannot attach it successfully to this post.

I have selected to use both ruby_debug_ide and ruby_debug_base in my environment.

David

[Updated on: Mon, 02 November 2009 06:41]

Report message to a moderator

Re: Debugging Ruby [message #494691 is a reply to message #494672] Mon, 02 November 2009 08:38 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex Panchenko
Messages: 342
Registered: July 2009
Senior Member
Could you please provide more details about your installation?
I am not sure where is "Auto-install gems" window coming from.

You can send attachment to my email address if eclipse newsgroup doesn't
accept it.

Regards,
Alex


David wrote:
> I have ruby-debug-0.10.3 gem installed on my computer. When I start
> Eclipse I get a window title 'Auto-install gems' which states that
> plugins have contributed local copies of the following gems for
> automaytic installation. I am invited to select which gems to have
> installed. The gems listed (see attached jpg) are
> linecache
> ruby_debug_ide
> ruby_debug_base
>
> Should I be ignoring ruby_debug_ide and selecting ruby_debug_base?
>
> David
Re: Debugging Ruby [message #494981 is a reply to message #494691] Tue, 03 November 2009 12:59 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex Panchenko
Messages: 342
Registered: July 2009
Senior Member
Hi David,

It's not DLTK window, I suppose it's coming from Aptana RadRails.

Regards,
Alex

Alex Panchenko wrote:
> Could you please provide more details about your installation?
> I am not sure where is "Auto-install gems" window coming from.
>
> You can send attachment to my email address if eclipse newsgroup doesn't
> accept it.
>
> Regards,
> Alex
>
>
> David wrote:
>> I have ruby-debug-0.10.3 gem installed on my computer. When I start
>> Eclipse I get a window title 'Auto-install gems' which states that
>> plugins have contributed local copies of the following gems for
>> automaytic installation. I am invited to select which gems to have
>> installed. The gems listed (see attached jpg) are
>> linecache
>> ruby_debug_ide
>> ruby_debug_base
>>
>> Should I be ignoring ruby_debug_ide and selecting ruby_debug_base?
>>
>> David
Re: Debugging Ruby [message #495193 is a reply to message #494981] Wed, 04 November 2009 06:17 Go to previous messageGo to next message
David  is currently offline David
Messages: 4
Registered: November 2009
Junior Member
Sad

So is my question in the wrong forum?
Not sure where to go with this problem...

David
Re: Debugging Ruby [message #496216 is a reply to message #495193] Mon, 09 November 2009 11:39 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex Panchenko
Messages: 342
Registered: July 2009
Senior Member
Hi David,

I think you can start at http://www.aptana.com/support

Regards,
Alex

David wrote:
> :(
> So is my question in the wrong forum?
> Not sure where to go with this problem...
>
> David
Re: Debugging Ruby [message #496419 is a reply to message #496216] Tue, 10 November 2009 00:01 Go to previous message
David  is currently offline David
Messages: 4
Registered: November 2009
Junior Member
Maybe I need a little history lesson but it would appear that RDT fell into the hands of Aptana while in the meantime DLTK for Ruby emerged and gained prominence.

Would most Ruby developers using Eclipse have gone the DLTK path?

I have read some postings proclaiming that RDT was painful and developers had dumped it in favour of DLTK.

Smile

[Updated on: Tue, 10 November 2009 00:01]

Report message to a moderator

Previous Topic:Editing Remote files
Next Topic:Remote Debugging
Goto Forum:
  


Current Time: Mon Sep 15 02:15:07 GMT 2014

Powered by FUDForum. Page generated in 0.08270 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software