I’m finally able to announce the release of rudebug, a debugging
front-end for ruby-debug and other debugging libraries for Ruby. It is
based on Glade and Ruby-GNOME2.
It has support for stepping, you can type code into a code shell and
instantly see the results. The source code which is being executed is
displayed as well. There is syntax highlighting everywhere. You can
browse the current context in a fairly powerful way through the object
browser. You can also reference the object that is selected in the
object browser in the code shell. You can debug locally as well as
remotely.
More information is available on the project home page. (Including a
more detailed project description, install guide, use guide and
explanation of the implementation.)
I’m finally able to announce the release of rudebug, a debugging
front-end for ruby-debug and other debugging libraries for Ruby. It is
based on Glade and Ruby-GNOME2.
I am running the sample file you have on the wiki, but rudebug fails
with the following traceback. I have ruby-gnome2 0.16.
I am running the sample file you have on the wiki, but rudebug fails
with the following traceback. I have ruby-gnome2 0.16.
-Mitchell;
undefined method signal_connect' for nil:NilClass /usr//lib/ruby/site_ruby/1.8/libglade2.rb:105:in guard_source_from_gc’
/usr//lib/ruby/site_ruby/1.8/libglade2.rb:98:in `guard_sources_from_gc’
Thanks for the report. That’s exactly the bug the workaround in
gtk-patch.rb is for. However, I broke compatibility for ruby-gnome2
0.16 when restoring 0.14 compatibility by testing for the presence of
guard_source_from_gc(). Turns out method_defined?() returns false for
private methods. I’m now using defined?(). Simple fix for a dumb bug.
I just released rudebug 0.3.2. Should be available via ‘gem update
rudebug’ soon. I hope that one will work 100%.
Thanks for the report. That’s exactly the bug the workaround in
gtk-patch.rb is for. However, I broke compatibility for ruby-gnome2 0.16
when restoring 0.14 compatibility by testing for the presence of
guard_source_from_gc(). Turns out method_defined?() returns false for
private methods. I’m now using defined?(). Simple fix for a dumb bug.
Only then will it work I will be playing with this. It looks much
better than my debugger project where I haven’t found the time to pick
it back up and integrate ruby-debug into.
-Mitchell;
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.