greetings, i am getting the below error message in my mongrel log and I want to turn that 22 levels into a full trace. but i am unsure where or how to configure the debug level for mongrel. any advice? thanks - john /usr/lib/ruby/gems/1.8/gems/ruby-debug-0.9.3/cli/ruby-debug/ interface.rb:24:in `join'': can''t convert nil into String (TypeError) from /usr/lib/ruby/gems/1.8/gems/ruby-debug-0.9.3/cli/ruby- debug/interface.rb:24 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: 27:in `gem_original_require'' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: 27:in `require'' from /var/www/foo/live/vendor/rails/activerecord/lib/../../ activesupport/lib/active_support/dependencies.rb:496:in `require'' from /var/www/foo/live/vendor/rails/activerecord/lib/../../ activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'' from /var/www/foo/live/vendor/rails/activerecord/lib/../../ activesupport/lib/active_support/dependencies.rb:496:in `require'' from /usr/lib/ruby/gems/1.8/gems/ruby-debug-0.9.3/cli/ruby- debug/processor.rb:1 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: 27:in `gem_original_require'' ... 22 levels... from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ command.rb:211:in `run'' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/ mongrel_rails:243 from /usr/bin/mongrel_rails:16:in `load'' from /usr/bin/mongrel_rails:16
-B http://mongrel.rubyforge.org/docs/howto.html ~Wayne -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20071212/ac5561af/attachment.html
Actually, the trace snip level is hard-compiled into Ruby. Find the place where the traceback occurs, rescue the exception, and print out e.traceback (or whatever it is) instead. Then you''ll see the whole thing. Evan On Dec 12, 2007 1:27 PM, Wayne E. Seguin <wayneeseguin at gmail.com> wrote:> -B > > http://mongrel.rubyforge.org/docs/howto.html > > ~Wayne > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-- Evan Weaver Cloudburst, LLC
cool, thanks guys On Dec 12, 2007, at 1:53 PM, Evan Weaver wrote:> Actually, the trace snip level is hard-compiled into Ruby. Find the > place where the traceback occurs, rescue the exception, and print out > e.traceback (or whatever it is) instead. Then you''ll see the whole > thing. > > Evan > > On Dec 12, 2007 1:27 PM, Wayne E. Seguin <wayneeseguin at gmail.com> > wrote: >> -B >> >> http://mongrel.rubyforge.org/docs/howto.html >> >> ~Wayne >> >> _______________________________________________ >> Mongrel-users mailing list >> Mongrel-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mongrel-users >> > > > > -- > Evan Weaver > Cloudburst, LLC > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users
On Dec 12, 2007 11:53 AM, Evan Weaver <evan at cloudbur.st> wrote:> Actually, the trace snip level is hard-compiled into Ruby. Find the > place where the traceback occurs, rescue the exception, and print out > e.traceback (or whatever it is) instead. Then you''ll see the whole > thing.e.backtrace The constants that determine length of truncated backtrace are TRACE_HEAD and TRACE_TAIL, #defined in eval.c. Changing them to bigger numbers and recompiling is another way to deal with this issue. -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://rubyworks.thoughtworks.com]