This list is for discussion of Rails internal development, not general
ruby questions.
Having said that, check out the ''cat'' (catchpoint)
functionality in
ruby-debug...
On Wed, Dec 2, 2009 at 10:44 AM, RubyNewbie <calvinanhnguyen@gmail.com>
wrote:> Question:
> I was wondering if there was a way to instruct the ruby debug
> framework to stop/break/freeze on any error so I can investigate the
> call stack to diagnose the problem?
>
> Background:
> I am using ''ruby-debug'' and know that I can insert
breakpoints with
> the debugger() method call in my code. I have run into errors within
> unexpected callbacks and often have no idea why the code traversed
> that path. Because I don''t understand the code path it''s
hard to know
> where to put the breakpoint to troubleshoot the problem.
>
> - Thanks in advance.
>
> --
>
> You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
> To post to this group, send email to rubyonrails-core@googlegroups.com.
> To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.