From: Kent Sibilev Date: 2006-09-15T05:01:01+09:00 Subject: Re: Rails->breakpointer->irb->debugger? ------=_Part_36815_17417298.1158264015469 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/14/06, Rick DeNatale wrote: > > 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] > > $rdebug myscript -- -b 10 -- Kent --- http://www.datanoise.com ------=_Part_36815_17417298.1158264015469--