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



