From: Rick DeNatale Date: 2006-09-15T04:32:10+09:00 Subject: Re: Rails->breakpointer->irb->debugger? On 9/14/06, Geoff Davis wrote: > On Thu, 14 Sep 2006 00:56:04 -0500, Dan Bensen wrote: > > > How do you step through your Rails code from irb? Can you drop into the > > debugger, or do you have put in a zillion breakpoints? Is there a way to > > add & delete breakpoints from irb, or do you have to set them all before > > you request a page? > > Check out ruby-debug. I finally got around to trying this, I'd installed the gem some time ago. I tried it on a ruby script which takes parameters, but it doesn't seem to work, the usage seems to indicate that you can give parameters after the script name but rdebug seems to parse and choke on them itself. $ rdebug myscript -b 10 ruby-debug 0.4.1 Usage: rdebug [options] Options: -s, --server Listen for remote connections -w, --wait Wait for a client connection, implies -s option -n, --nostop Do not stop when a client connects, implies -s option -c, --client Connect to remote debugger -h, --host HOST Host name used for remote debugging -p, --port PORT Port used for remote debugging --script FILE Name of the script file to run --cport PORT Port used for contol commands, implies -s option Common options: --help Show this message -v, --version Show version invalid option: -b -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/