smart stuff

The beauty of breakpoints
22 Nov 05 - http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Ruby/breakpoint.rdoc
Normally I hate to debug apps — we are big fans of test first, but oh well, sometimes it can be very helpful. The danger starts when one wastes too much time debugging.

Even when using a IDE it can be very handy to get into a irb session at any moment.

You need to install ruby-breakpoints

 require 'breakpoint'
 ..
 if m==0
    puts "m is 0"
    pp xs
    puts ys.to_yaml
    breakpoint
 end
 ..

Useful:

If you are developing a rails app, check out the wiki entry.

I take my break now. Off for yammie food.