[Wtr-general] "Breakpoint" great tool to use with Watir
Bret Pettichord
bret at pettichord.com
Tue Oct 31 01:08:03 EST 2006
John Lolis wrote:
> Just thought I would share this. I found this interesting program called "breakpoint"
>
> http://ruby-breakpoint.rubyforge.org/
>
> this allows you to add "breakpoint()" anywhere in your program and the IRB pops up. You can then poke around and debug issues. This has been a HUGE help to me. It allows me to test out some logic on the fly, or figure out whats going wrong.
>
A big +1 on this. I actually prefer breakpoint to using a debugger. Full
instructions:
1. Install with > gem install ruby-breakpoint
2. Add a breakpoint to your script by adding
require 'breakpoint'; breakpoint
3. Run your script like normal.
Note: Don't run inside Scite, but instead run from the command line.
Scite doesn't cooperate well with IRB.
Sometimes when i am tired, i use the "debug" option in Eclipse (my IDE
of choice) and then when it stops on my line i realize that this isn't
the debugger i wanted. The Ruby breakpoint library is frequently the
better choice for me.
Bret
More information about the Wtr-general
mailing list