Hi, Is there a way to set a debug point in an ACTION such that when you trigger this via use of a web browser it will effective stop at this point, after which you can then interrogate values of variables etc? Ideally then STEP through the code? Is this possible, or does one really need to use logger.debug statements? Tks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Mark Van Holstyn
2006-Aug-30 03:17 UTC
Re: Is it possible to set DEBUG point within an ACTION
def index #some stuff breakpoint #some more stuff end This will let you stop at breakpoint (with script/breakpointer) and inspect anything you want, however you cannot step through your code. mark On 8/29/06, Greg Hauptmann <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Hi, > > Is there a way to set a debug point in an ACTION such that when you > trigger this via use of a web browser it will effective stop at this > point, after which you can then interrogate values of variables etc? > Ideally then STEP through the code? > > Is this possible, or does one really need to use logger.debug > statements? > > Tks > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Mark Van Holstyn mvette13-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://lotswholetime.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Tks Mark - I''ll try this this evening Is the concept that this then stops the console I''m running webbrick in, after which I can issue ruby commands is it? Can I issue a CONTINUE to keep things moving after I''ve done a brief manual inspection? On 8/30/06, Mark Van Holstyn <mvette13-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > def index > #some stuff > breakpoint > #some more stuff > end > > This will let you stop at breakpoint (with script/breakpointer) and > inspect anything you want, however you cannot step through your code. > mark >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Greg H <greg.hauptmann.ruby@...> writes:> Tks Mark - I''ll try this this eveningIs the concept that this then stops theconsole I''m running webbrick in, after which I can issue ruby commands is it? Can I issue a CONTINUE to keep things moving after I''ve done a brief manual inspection? Almost. If you run ./script/breakpointer (or ''ruby script\breakpointer'' on win32) while the server is running, then when a breakpoint is hit you will be dropped into an irb session in the console where the breakpointer is running. The server will freeze until the breakpointer session is closed using ''exit'' or Ctrl-D. You can do all the inspection and stuff you like from that breakpoint Gareth --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---