Forum: Ruby How to develop on OS X + debugger problems

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6b815b3df3168139e9dd4034680e9a7d?d=identicon&s=25 unknown (Guest)
on 2006-02-22 09:36
(Received via mailing list)
Hi,

I just started developing Ruby on OS X and didn't find any good IDEs.
What is the best way to do it?

I absolutely need a debugger. Currently, I am using Eclipse with the RDT
plugin, but all I get when stepping is:

ruby 1.8.4 debugger listens on port 54606
/Users/dittert/Documents/workspace/FileManager/Test.rb:2: [BUG] Bus
Error
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.4.0]

The program is
puts "abc\n"
puts "abc\n"
puts "abc\n"  <-- breakpoint
puts "abc\n"
puts "abc\n"
puts "abc\n"
puts "abc\n"

G5:~ dittert$ ruby --version
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.4.0]

Additionally, when I run the ruby version that comes with OS X (which is
version 1.8.2), I can step in the debugger. But it then doesn't show all
variables and I am also unable to write output to the console...

ruby -r debug Test.rb really isn't what I want...

Any help is greatly appreciated.

Best,

Dirk Dittert
784481e009179262d133db1f1eb3bfb1?d=identicon&s=25 Edwin Van leeuwen (blackedder)
on 2006-02-22 11:20
unknown wrote:
> Hi,
>
> I just started developing Ruby on OS X and didn't find any good IDEs.
> What is the best way to do it?
>
> I absolutely need a debugger.
>
> Dirk Dittert

You might want to think about using your favourite editor (scite,
textmate, vim, emacs) with the standalone debugger: mr guid
(http://mr-guid.rubyforge.org/)

Edwin
6b815b3df3168139e9dd4034680e9a7d?d=identicon&s=25 Dirk Dittert (Guest)
on 2006-02-22 13:25
(Received via mailing list)
Edwin van Leeuwen schrieb:

> You might want to think about using your favourite editor (scite,
> textmate, vim, emacs) with the standalone debugger: mr guid
> (http://mr-guid.rubyforge.org/)

I already looked at mr_guid but had some problems compilining the
required libraries. I'll try again...

Best,

Dirk Dittert
B2561fdd05855be51aca982c54eb9f81?d=identicon&s=25 John N. Alegre (Guest)
on 2006-02-22 17:05
(Received via mailing list)
Dirk Dittert wrote:

> I already looked at mr_guid but had some problems compilining the
> required libraries. I'll try again...
>
> Best,
>
I have tried for weeks to get mr_guid working on OS X.  I cant.  mr_guid
relies on many tk libraries that are just not compatible with OS X.  If
anyone says the last statement is in error, please post a working
install
of mr_guid on OS X 10.4.4.

john
6b815b3df3168139e9dd4034680e9a7d?d=identicon&s=25 unknown (Guest)
on 2006-02-22 19:14
(Received via mailing list)
John N. Alegre <info@johnalegre.net> wrote:

> I have tried for weeks to get mr_guid working on OS X.  I cant.  mr_guid
> relies on many tk libraries that are just not compatible with OS X.  If
> anyone says the last statement is in error, please post a working install
> of mr_guid on OS X 10.4.4.

Thank you. I guess you just saved me from trying for a couple of hours.

Best,

Dirk Dittert
E34b5cae57e0dd170114dba444e37852?d=identicon&s=25 Logan Capaldo (Guest)
on 2006-02-22 19:48
(Received via mailing list)
On Feb 22, 2006, at 11:03 AM, John N. Alegre wrote:

> I have tried for weeks to get mr_guid working on OS X.  I cant.
> mr_guid
> relies on many tk libraries that are just not compatible with OS
> X.  If
> anyone says the last statement is in error, please post a working
> install
> of mr_guid on OS X 10.4.4.
>
> john

Steps to get mr_guid working Mac OS X 10.4.5:

1) Install ruby from source (this step may not be necessary, but
you'll probably have to do silly symlink tricks if you don't)
2) Install X11.app
2) use fink or possibly darwin-ports to install the gnome libs:
     fink install libgnome2 libgnome2-dev libgnome2-shlibs
3) Download and install ruby-gnome2
4) Download and install mr_guid
5) launch X11.app and start mr_guid from an xterm

Caveats: mr_guid takes freaking forever before the window shows up,
but it does eventually
There are also a lot of libglade warnings, but Mr. Guid seems to work
regardless
This topic is locked and can not be replied to.