Aaron Johnson
2005-Aug-25 00:44 UTC
how to use ruby debugger instead of irb from script/breakpointer
Hello - I would like to use the ruby debugger instead of irb for a breakpoint enabled by script/breakpointer in order to step through some code. How do I do that? Aaron
Stephen Caudill
2005-Aug-25 01:52 UTC
Re: how to use ruby debugger instead of irb from script/breakpointer
There''s a good article on the wiki: http://wiki.rubyonrails.com/rails/show/HowtoDebugWithBreakpoint I''ve yet to be able to use it successfully though, as script/breakpointer brings my Mac Mini (1.42G, 512Mb) to it''s knees without fail :( HTH, Stephen On Aug 24, 2005, at 8:44 PM, Aaron Johnson wrote:> Hello - > > I would like to use the ruby debugger instead of irb > for a breakpoint enabled by script/breakpointer > in order to step through some code. > > How do I do that? > > Aaron > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Aaron Johnson
2005-Aug-25 16:19 UTC
Re: how to use ruby debugger instead of irb from script/breakpointer
On Aug 24, 2005, at 4:11 PM, rails-request-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org wrote:> Message: 2 > Date: Wed, 24 Aug 2005 21:52:53 -0400 > From: Stephen Caudill <vox-rUtwbJCiuDxWk0Htik3J/w@public.gmane.org> > Subject: Re: [Rails] how to use ruby debugger instead of irb from > script/breakpointer > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Message-ID: <165430115d007a5519d48628b29f53aa-rUtwbJCiuDxWk0Htik3J/w@public.gmane.org> > Content-Type: text/plain; charset=US-ASCII; format=flowed > > There''s a good article on the wiki: > > http://wiki.rubyonrails.com/rails/show/HowtoDebugWithBreakpointEven though it says Debug in the title, from the second paragraph of the page, "Specifically, a breakpoint will pop up an interactive ruby(irb) session at a pre-defined break point in a Ruby application." Has anyone wished they could use the debugger instead of irb? Is there a way into ruby -r debug -e ''<current irb session env>'' ? Aaron> On Aug 24, 2005, at 8:44 PM, Aaron Johnson wrote: > >> Hello - >> >> I would like to use the ruby debugger instead of irb >> for a breakpoint enabled by script/breakpointer >> in order to step through some code. >> >> How do I do that? >> >> Aaron
Kelly Felkins
2005-Aug-25 17:45 UTC
Re: how to use ruby debugger instead of irb from script/breakpointer
>Has anyone wished they could use the debugger instead of >irb?Yes. On 8/25/05, Aaron Johnson <amj-9NAaRz0xWEK35wUkaLeaMEEOCMrvLtNR@public.gmane.org> wrote:> > > On Aug 24, 2005, at 4:11 PM, rails-request-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org wrote: > > > Message: 2 > > Date: Wed, 24 Aug 2005 21:52:53 -0400 > > From: Stephen Caudill <vox-rUtwbJCiuDxWk0Htik3J/w@public.gmane.org> > > Subject: Re: [Rails] how to use ruby debugger instead of irb from > > script/breakpointer > > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > Message-ID: <165430115d007a5519d48628b29f53aa-rUtwbJCiuDxWk0Htik3J/w@public.gmane.org> > > Content-Type: text/plain; charset=US-ASCII; format=flowed > > > > There''s a good article on the wiki: > > > > http://wiki.rubyonrails.com/rails/show/HowtoDebugWithBreakpoint > > Even though it says Debug in the title, from the second paragraph > of the page, > > "Specifically, a breakpoint will pop up an interactive ruby(irb) > session at a pre-defined break point in a Ruby application." > > Has anyone wished they could use the debugger instead of > irb? > > Is there a way into ruby -r debug -e ''<current irb session env>'' ? > > Aaron > > > On Aug 24, 2005, at 8:44 PM, Aaron Johnson wrote: > > > >> Hello - > >> > >> I would like to use the ruby debugger instead of irb > >> for a breakpoint enabled by script/breakpointer > >> in order to step through some code. > >> > >> How do I do that? > >> > >> Aaron > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Eric Promislow
2005-Aug-25 18:03 UTC
Re: how to use ruby debugger instead of irb from script/breakpointer
Aaron Johnson wrote:> Hello - > > I would like to use the ruby debugger instead of irb > for a breakpoint enabled by script/breakpointer > in order to step through some code. > > How do I do that?Run ruby -r debug.rb script/server Set one or more breakpoints in app/controllers/<your_controller.rb> -- I forget exactly how you need to name these files, but I think it''s either by full path, or relative path starting at ''app/''. Run. Keep running everytime the Ruby debugger stops to handle an exception. Unfortunately rubygems does this a lot as it processes require statements. We''re also working on a GUI way of doing this for Komodo -- you can read more at my blog. -- Eric Promislow Ruby guy at ActiveState ericp-0OmgUqZ5G+O9C01uVemLPA@public.gmane.org http://blogs.activestate.com/ericp> > Aaron > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >