doing it for science
Jun 17th 2009
8. Debuggerer
Here's another little gem I just factored out of my monolithic .irbrc file:

http://github.com/jedediah/debuggerer

It's a simple but powerful debugger that can be used conveniently from within IRB. It lets you quickly run fairly elaborate debug operations on a block of code.

For example Debuggerer.watch_if("thingy.bloop", "yerk.is_a? Fnord") { ... } will evaluate the block while showing a source trace with the value of "thingy.bloop", but only for lines where "yerk.is_a? Fnord" is defined and true.

It also supports conditional breakpoints and convenient wrappers like Debuggerer.run_until(condition) { ... } or Debuggerer.run_to(klass,method) { ... }.

And of course, it's full of pretty colors.

It's only barely usable at this point and I haven't even flipped the gem switch on Github but hey, release early, release often, right?

BTW my friend Stacey thinks it's hilarious that they are called "gems" and we Rubyists spend all our time making as many "gems" as we can.. and really, she's right.
Comments
new comment