well, we all familar with the way of debugging normal code in controller, model and the helper. And I also want to add a ''debugger'' line to the rake file I created which load all my data into database when executed, but I just can not find a way to do so after googling for a long time. Can anyone tell me how to debug the customized rake file? I heard that netbeans has a functionality of ''rake task debug'', I wonder if radrails has it too? Thank you very much. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Norm
2008-Sep-19 02:31 UTC
Re: [Quesiton] Is there a way to debug the rake file I created?
You can just use print lines in the appropriate places. Thats how I debug them when needed. Norm boblu wrote:> well, we all familar with the way of debugging normal code in > controller, model and the helper. > > And I also want to add a ''debugger'' line to the rake file I created > which load all my data into database when executed, > but I just can not find a way to do so after googling for a long time. > > Can anyone tell me how to debug the customized rake file? > > I heard that netbeans has a functionality of ''rake task debug'', I > wonder if radrails has it too? > > Thank you very much. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
boblu
2008-Sep-19 03:02 UTC
Re: [Quesiton] Is there a way to debug the rake file I created?
yeah, this is the only way I figured out until now. Are there any convinient ways to do that? On Sep 19, 11:31 am, Norm <normsche...-ihVZJaRskl1bRRN4PJnoQQ@public.gmane.org> wrote:> You can just use print lines in the appropriate places. Thats how I > debug them when needed. > > Norm > > boblu wrote: > > well, we all familar with the way of debugging normal code in > > controller, model and the helper. > > > And I also want to add a ''debugger'' line to the rake file I created > > which load all my data into database when executed, > > but I just can not find a way to do so after googling for a long time. > > > Can anyone tell me how to debug the customized rake file? > > > I heard that netbeans has a functionality of ''rake task debug'', I > > wonder if radrails has it too? > > > Thank you very much.--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Sep-19 10:20 UTC
Re: [Quesiton] Is there a way to debug the rake file I created?
On 19 Sep 2008, at 02:24, boblu wrote:> > well, we all familar with the way of debugging normal code in > controller, model and the helper. > > And I also want to add a ''debugger'' line to the rake file I created > which load all my data into database when executed, > but I just can not find a way to do so after googling for a long time. >It''s just regular ruby rdebug rake -- some_task runs that task inside rdebug Fred> Can anyone tell me how to debug the customized rake file? > > I heard that netbeans has a functionality of ''rake task debug'', I > wonder if radrails has it too? > > Thank you very much. > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---