IDE which allows STEP-THROUGH? - Does one exist?

Hi,

Anyone know whether there is a Ruby IDE (free or not free) that supports
STEP-THROUGH? i.e. the ability to step through the code as it is
executing?

I’m trying to understand some code that has module inclusions, extends,
“class_eval do” and various things and I’m finding it a little
difficult. It would be great to be able to step through what the code
is doing (like in visual studio or eclipse) and be able to example the
variables as it goes (e.g. how it builds up dyanmically more methods
into the class etc, or adds methods into the class based on the context
of the calling class [“class_eval do”]).

Tks

Rails has its own breakpointer.

http://wiki.rubyonrails.org/rails/pages/HowtoDebugWithBreakpoint

run script/breakpointer
then add ‘breakpoint’ call in your code.

As for an IDE, RadRails will have this capability next month some time
apparently.

Greg H. wrote:

Hi,

Anyone know whether there is a Ruby IDE (free or not free) that supports
STEP-THROUGH? i.e. the ability to step through the code as it is
executing?

Yes, Ruby In Steel has had this for some time - step-into/step-over;
breakpoints; watch variables; autos; locals; call-stack (etc.)

http://www.sapphiresteel.com

best wishes
Huw

ArachnoRuby has a very good and quick debugger.

http://www.ruby-ide.com/ruby/ruby_ide_and_ruby_editor.php

I compared ArachnoRuby with Komodo and radrails half a year ago and it
was a clear winner.

Greg,

I’ve been using the console for this. (ruby scripts/console).
Typically I only need to test individual functions and it only takes a
couple seconds to setup the objects. Then I copy individual lines of
the function over. It may seem cumbersome, but I’ve actually found it
to be quite quick.

Greg H wrote:

Christer - did you compare with Ruby In Steel (as suggested by Huw)?

nope, It was unknown to me at that time.

Yes, Ruby In Steel has had this for some time -
step-into/step-over; breakpoints; watch variables; autos;
locals; call-stack (etc.)

http://www.sapphiresteel.com

Activestate Komodo has this feature too. Version 4.0 (still in alpha)
has a nice HTTP inspector that allows you to do Ajax debugging as well.

  • Mark.

how about “code complete” or “intellisense” or whatever they call that
context sensitive drop down list for available methods for the class
you’re
on - do any of these IDEs offer this? is this possible with a dynamic
language?

Christer - did you compare with Ruby In Steel (as suggested by Huw)?

Greg H wrote:

how about “code complete” or “intellisense” or whatever they call that
context sensitive drop down list for available methods for the class
you’re
on - do any of these IDEs offer this? is this possible with a dynamic
language?

Our internal beta (0.8) of the commercial edition of Ruby In Steel
already has IntelliSense (drop-down lists of instance and class methods,
included methods, accessors etc.) We aim to provide complete
IntelliSense (comparable with C#) in version 1.0 of this edition will be
available in January.

best wishes
Huw
http://www.sapphiresteel.com

sounds great Huw

guys - any other IDE’s right now that support intellisense? (or is this
still a niche yet to be filled)