Hi, Yesterday I had to walk through the code of a plug-in and perform a minor fix. I confess that I didn''t like the experience. Because the plug-in is in the vendor directory, I had to restart the web server whenever the code changed. How can I debug a plug-in without having to restart the web server whenever the code changes? Thanks, Tiago Franco --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
huard.elise-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2009-Jan-07 10:24 UTC
Re: bet way to debug a plug-in?
one way to bypass the server problem is to run tests. Normally there''s a test (or rspec) suite included. If not, you can create it - create a test directory (or spec) - include a test_helper.rb or spec_helper.rb (take one from another plugin) - make unit tests that require the test or spec helper and inherit from a unit test case. - run rake (or rake spec) in your plugin directory Elise And then you add tests that correspond to your fix, and run until it''s working as required. On Jan 7, 11:00 am, GamaFranco <gama.fra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > Yesterday I had to walk through the code of a plug-in and perform a > minor fix. I confess that I > didn''t like the experience. Because the plug-in is in the vendor > directory, I > had to restart the web server whenever the code changed. > > How can I debug a plug-in without having to restart the web server > whenever the code changes? > > Thanks, > Tiago Franco--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---