Wes Gamble
2006-Sep-18 16:19 UTC
ExceptionNotifiable doesn''t work properly in development?
All, I recently started using the Exception Notifiable plugin to generate nicely formatted error emails when major errors occur. However, now I seem to find that when I have errors in development, I no longer see the "dump" screen that I''m used to seeing. Which would be fine if the email would be sent per the setup in environment.rb. Has anyone successfully implemented ExceptionNotifiable such that errors will be reported in development still? I can attempt to call a method on a nil object in my app. now, and not see any error notification in development. Thanks, Wes -- 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 -~----------~----~----~----~------~----~------~--~---
Wes Gamble
2006-Sep-18 16:40 UTC
Re: ExceptionNotifiable doesn''t work properly in development
I believe I see my issue here. The POST request I''m making is via AJAX, so the error is being logged in the development.log file, however, because the exception page is being sent back on the _AJAX_ response, I think it''s effectively being discarded. Which begs the question - how can I reliably get the HTML output for an error when submitting on a form_remote_tag form? That may be for another thread. Wes -- 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 -~----------~----~----~----~------~----~------~--~---
Ezra Zygmuntowicz
2006-Sep-18 17:24 UTC
Re: ExceptionNotifiable doesn''t work properly in development
On Sep 18, 2006, at 9:40 AM, Wes Gamble wrote:> > I believe I see my issue here. The POST request I''m making is via > AJAX, > so the error is being logged in the development.log file, however, > because the exception page is being sent back on the _AJAX_ > response, I > think it''s effectively being discarded. > > Which begs the question - how can I reliably get the HTML output > for an > error when submitting on a form_remote_tag form? > > That may be for another thread. > > Wes > >Hey Wes- You need to get firebug for firefox. It will show you the request and response in the console for ajax requests. SO you can still view the entire stack trace. -Ezra --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Wes Gamble
2006-Sep-18 18:24 UTC
Re: ExceptionNotifiable doesn''t work properly in development
I have Firebug. If I do a method call on nil in my action, then I see "tab has no properties" and several lines that say "anonymous" and I''m guessing that this is the response. This certainly tells me that _something_ is probably wrong (although if I didn''t know already, it would take me some time to figure out). I certainly don''t have access to anything in Firebug that looks like the stack trace that''s printed in my log file. Should I be able to see a stack trace in Firebug? Wes -- 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 -~----------~----~----~----~------~----~------~--~---
Ezra Zygmuntowicz
2006-Sep-18 19:32 UTC
Re: ExceptionNotifiable doesn''t work properly in development
On Sep 18, 2006, at 11:24 AM, Wes Gamble wrote:> > I have Firebug. > > If I do a method call on nil in my action, then I see "tab has no > properties" and several lines that say "anonymous" and I''m guessing > that > this is the response. This certainly tells me that _something_ is > probably wrong (although if I didn''t know already, it would take me > some > time to figure out). > > I certainly don''t have access to anything in Firebug that looks > like the > stack trace that''s printed in my log file. Should I be able to see a > stack trace in Firebug? > > WesHey Wes- It happens down in the console view of the browser. You can see it make the ajax POST''s and then if you click on one of them that failed you can see the response from the server, which is a stack trace. Here''s a screen shot: http://brainspl.at/firebug.png -Ezra --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Wes Gamble
2006-Sep-18 20:30 UTC
Re: ExceptionNotifiable doesn''t work properly in development
> Hey Wes- > > It happens down in the console view of the browser. You can see it > make the ajax POST''s and then if you click on one of them that failed > you can see the response from the server, which is a stack trace. > Here''s a screen shot: > > http://brainspl.at/firebug.pngEzra, I have suspected that my Firebug hasn''t been working correctly for a while - I don''t get the response when I click on an AJAX post. Do you know how to uninstall a plugin in Firefox? I want to try and reinstall Firebug. Wes -- 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 -~----------~----~----~----~------~----~------~--~---
Neeraj Kumar
2006-Sep-18 23:44 UTC
Re: ExceptionNotifiable doesn''t work properly in development?
It works fine for me out of the box. -=- On 9/18/06, Wes Gamble <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > All, > > I recently started using the Exception Notifiable plugin to generate > nicely formatted error emails when major errors occur. > > However, now I seem to find that when I have errors in development, I no > longer see the "dump" screen that I''m used to seeing. Which would be > fine if the email would be sent per the setup in environment.rb. > > Has anyone successfully implemented ExceptionNotifiable such that errors > will be reported in development still? > > I can attempt to call a method on a nil object in my app. now, and not > see any error notification in development. > > Thanks, > Wes > > -- > 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 -~----------~----~----~----~------~----~------~--~---