Anyone had success getting ruby-debug to work with Locomotive? I''ve got the ruby-debug gem installed, and require ''ruby-debug'' in my config file, but when I try to call the debugger from within a rails method, the app just blows right by it and nothing appears in the console. Any help with this would be appreciated. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
If Locomotive is still using lighttpd, it won''t work. The best way to do it AFAIK is just: rdebug script/server or if you have the debugger started in your code, just use: script/server On Jul 7, 2007, at 5:14 PM, magic_hat wrote:> > Anyone had success getting ruby-debug to work with Locomotive? I''ve > got the ruby-debug gem installed, and require ''ruby-debug'' in my > config file, but when I try to call the debugger from within a rails > method, the app just blows right by it and nothing appears in the > console. > > Any help with this would be appreciated. > > > >--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
The EASIEST thing is to load the Footnotes plugin. Search for it at http://agilewebdevelopment.com/plugins Then load it using the standard plugin method. From your project directory: script/plugin install http://macromates.com/svn/Bundles/trunk/Bundles/Rails.tmbundle/Support/plugins/footnotes Footnotes gives you extra goodness if you''re using TextMate -- which you should anyway if you''re trying to learn or develop in RoR on a Mac. I''m PRETTY sure it works without TextMate. What it does is automatically place ruby-debug like information on the bottom of each rendered page. Here''s what it looks like on my machine: Edit: Controller | View | Layout | Stylesheets | Javascripts Show: Session | Cookies | Params | Log | General Debug (TextMate Footnotes) Click on the link to show whatever and there you are! (The first line, Edit: won''t work without TextMate.) All this automatically turns off when you move to Production mode. ---Jim Gagne--- --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Locomotive now runs on Mongrel, so this shouldn''t be a problem. Footnotes looks cool, but I need to be able to stop execution at a particular point and examine/change variables. I need a...uh...breakpointer. Anyone who knows how to get ruby-debug working w/ Locomotive, please speak up! I''m getting desperate here. On Jul 8, 1:27 am, Jim Gagne <goo...-CHXqAHZSK+7z1n+OaKNE4w@public.gmane.org> wrote:> The EASIEST thing is to load the Footnotes plugin. Search for it at > > http://agilewebdevelopment.com/plugins > > Then load it using the standard plugin method. From your project > directory: > > script/plugin installhttp://macromates.com/svn/Bundles/trunk/Bundles/Rails.tmbundle/Suppor... > > Footnotes gives you extra goodness if you''re using TextMate -- which > you should anyway if you''re trying to learn or develop in RoR on a > Mac. I''m PRETTY sure it works without TextMate. > > What it does is automatically place ruby-debug like information on the > bottom of each rendered page. Here''s what it looks like on my machine: > > Edit: Controller | View | Layout | Stylesheets | Javascripts > Show: Session | Cookies | Params | Log | General Debug > (TextMate Footnotes) > > Click on the link to show whatever and there you are! (The first line, > Edit: won''t work without TextMate.) All this automatically turns off > when you move to Production mode. > > ---Jim Gagne-----~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Why is locomotive essential? Can''t you start your app under webrick or mongrel for debugging? If you do that, it''s straightforward: Just require ''ruby-debug'' and just before where you want to stop, call the debugger method. On Jul 8, 2007, at 9:41 PM, magic_hat wrote:> > Locomotive now runs on Mongrel, so this shouldn''t be a problem. > Footnotes looks cool, but I need to be able to stop execution at a > particular point and examine/change variables. I need > a...uh...breakpointer. > > Anyone who knows how to get ruby-debug working w/ Locomotive, please > speak up! I''m getting desperate here. > > On Jul 8, 1:27 am, Jim Gagne <goo...-CHXqAHZSK+7z1n+OaKNE4w@public.gmane.org> wrote: >> The EASIEST thing is to load the Footnotes plugin. Search for it at >> >> http://agilewebdevelopment.com/plugins >> >> Then load it using the standard plugin method. From your project >> directory: >> >> script/plugin installhttp://macromates.com/svn/Bundles/trunk/ >> Bundles/Rails.tmbundle/Suppor... >> >> Footnotes gives you extra goodness if you''re using TextMate -- which >> you should anyway if you''re trying to learn or develop in RoR on a >> Mac. I''m PRETTY sure it works without TextMate. >> >> What it does is automatically place ruby-debug like information on >> the >> bottom of each rendered page. Here''s what it looks like on my >> machine: >> >> Edit: Controller | View | Layout | Stylesheets | Javascripts >> Show: Session | Cookies | Params | Log | General Debug >> (TextMate Footnotes) >> >> Click on the link to show whatever and there you are! (The first >> line, >> Edit: won''t work without TextMate.) All this automatically turns off >> when you move to Production mode. >> >> ---Jim Gagne--- > > > >--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---