Does anyone know if this is possible? I''m trying to debug a file that is started using script/runner, but breakpoints don''t seem to be honored here. Is there a way to make them or some alternative? Thanks! Jake --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 8/27/06, Jake Cutter <cutter38-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Does anyone know if this is possible? I''m trying to debug a file that is > started using script/runner, but breakpoints don''t seem to be honored here. > Is there a way to make them or some alternative? >Answering my own question here...I was able to get ruby-debug to work for this by ensuring I called it as such: /usr/bin/rdebug -s -n -w -- script/runner $MYCMD Note the -- (double hyphens) to cause rdebug to stop interpreting option flags (so that you can pass flags to script/runner. Hope this helps someone else. Jake --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 8/27/06, Jake Cutter <cutter38-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > /usr/bin/rdebug -s -n -w -- script/runner $MYCMD >Forgot to mention...the above sets the debugger to run detached. After your command has executed, type "rdebug -c" in another terminal to connect to the daemon. Jake --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---