From: "Brian Schröder" Date: 2004-11-24T04:34:58+09:00 Subject: Re: [SOLUTION] Object Browser (#8) On Wed, 24 Nov 2004 00:36:17 +0900 Jamis Buck wrote: > Florian Gross wrote: > > Jamis Buck wrote: > > > >> http://ruby.jamisbuck.org/objbrowser-03.png > >> This is the same, drilling down to inspect the constants defined in > >> the class of one of the instance variables. > >> > >> I think something like this (maybe used in conjunction with the > >> breakpoint and assert concepts that have been discussed on this list) > >> would be useful in debugging, especially if the ability to modify values > >> were added. I'm still hoping someone submits a nicer solution to the > >> quiz than mine, since mine is pretty rough, and is really only half > >> done. :) > > > > > > I agree heavily. This looks very interesting. Would you be interested in > > patching this so it can work with Breakpoints? I can not do it myself > > unfortunately as GTK is completely screwed on this machine and I think I > > can only fix that by reinstalling Windows... > > > > The required changes would basically be using drb_gateway.evaluate(nil, > > "methods") instead of directly doing examined_obj.methods and so on. > > I'd be happy to make that change, Florian, but I think it might be > better to combine my approach with Brian's. His is much prettier, for > one thing, but it also has the ability to navigate to specific instances > of a class, which is nice. > > Unfortunately, I'm racing to get Net::SSH ready to release (I wanted to > do a release before Thanksgiving, but I'm not sure that'll happen). Then > I need to work on Net::SFTP... If no one has tackled this by the time > I'm done with SFTP, I'll take another look at it. > My code is also in need of a good overhaul. It developed while learning how to use a Gtk::TreeView and reflection, so it is not structured very good. I'd love to merge it with Jamis solution, but I can't promise that I'll get time because I'm in the midst of my carreer-finals. If you could point me to some description of how breakpoints works, I'll take a look next time I get too bored and want to waste some time ;) Regards, Brian -- Brian Schr�der http://www.brian-schroeder.de/