What IDE for Rails on OSX?


#1

Hi,

I’m using TextMate for rails development on OSX, but have reached a
point
where I need to run in a debugger and be able to step through the code
as it
executes. I have previously used the Eclipse Ruby plug in and another
IDE
for ruby development on windows, but never figured out how to run a
Rails
app in the debugger.

How are other textmate users debugging and what else is there on the
Mac?

thanks.


#2

Have you tried this?
http://wiki.rubyonrails.com/rails/pages/HowtoDebugWithBreakpoint


#3

well, I’ve tried it now but I can’t get it to work. I’m getting this.

No connection to breakpoint service at druby://localhost:42531
(DRb::DRbConnError)
Tries to connect will be made every 2 seconds…

I tried the supposed OSX work around of

sudo ip6 -d lo0

followed by:

./script/breakpointer --client-uri=druby://localhost:12345

but with the same result. Any suggestions?


#4

Larry W. wrote:

well, I’ve tried it now but I can’t get it to work. I’m getting this.

No connection to breakpoint service at druby://localhost:42531
(DRb::DRbConnError)
Tries to connect will be made every 2 seconds…

I tried the supposed OSX work around of

sudo ip6 -d lo0

followed by:

./script/breakpointer --client-uri=druby://localhost:12345

but with the same result. Any suggestions?

This is actually how it is supposed to work. It only comes to life
when a breakpoint is encountered in your code. So, let’s say you insert
a breakpoint somewhere in your code, then with a browser hit your
application in a way that the breakpoint is encountered. Then the
terminal that breakpointer is running in will become an irb session with
all the variables up to that point in the code available.


#5

Sorry, I have not used it myself (just noticed it in my travels) but
try running netstat -an while its running and see if anything is
listening on that port.


#6

On 4/1/06, Brad D. removed_email_address@domain.invalid wrote:

sudo ip6 -d lo0
application in a way that the breakpoint is encountered. Then the
terminal that breakpointer is running in will become an irb session with
all the variables up to that point in the code available.

You’re right. It is working. The documentation at the link above seems
to
suggest that this is an error condition, but it’s working fine. Thanks.