This photograph is taken at View at the IJssel, Netherlands, 2006. 


Debugging with Ruby/Rails and Aptana on Mac

I am working on a small Rails / Flex project and ran into some issues; I decided to try out the Aptana debugger. I follow all the instructions and the console showed


Waiting for connection on 'localhost:49603'
Fast Debugger (ruby-debug-ide 0.2.0) listens on localhost:49603

After about 15 seconds I got the error-message:

An internal error occured during: "Starting Server".

In my logfile it showed the message

org.rubypeople.rdt.internal.debug.core.DebuggerNotFoundException:
Could not connect to debugger on port 49603

After some googling around, I found this post, describing problems with “localhost” on “Mac OS X 10.5.3″ (I am running 10.5.4)

I modified the file
/Library/Ruby/Gems/1.8/gems/ruby-debug-ide-0.2.0/lib/ruby-debug.rb
in the method “start_control”:
host ||= '127.0.0.1'

This made the debugger run fine:

Waiting for connection on '127.0.0.1:49728'
Fast Debugger (ruby-debug-ide 0.2.0) listens on 127.0.0.1:49728
Starting command read loop

Leave a Reply

Enter this code

 

Klaasjan Tukker

Klaasjan Tukker


Business Development Manager
Adobe Systems Benelux




Chairman
NLJUG
    follow me on Twitter


    Founded in 1998, the Dutch Java User Group consists of business partners, software developers, application architects, technical managers, students, and new media developers that have a common interest in all aspects of Java Technology.

    Klaasjan Tukker is Chairman of the NL-JUG, Dutch Java User Group
    All content including photographs Copyright ©2005 Klaasjan Tukker
    The picture in the header is a photograph taken at View at the IJssel, Netherlands, 2006.