From: Sean Chittenden Date: 2002-06-11T04:34:09+09:00 Subject: Re: mod_ruby and module space > > > BTW: A nice thing I hadn't seen anywhere in the mod_ruby documentation; > > > the lib/apache/ruby-debug.rb variant which outputs exception info to the > > > client. (It really should have been default in the installation for > > > mod_ruby_nubies like myself. :-) > > > > BTW, where is that module? I'd like to set it up here. > > In the mod_ruby-0.9.8 source, it is in the lib/apache/ directory. The .rb > file contains documentation how to set it up. I think it is installed > along with the normal one, so you just need to change the httpd.conf: > > == Example of httpd.conf > > RubyRequire apache/ruby-debug > > SetHandler ruby-object > RubyHandler Apache::RubyDebug.instance > > > =end > > The only differences is the RubyRequire and RubyHandler lines. Along the lines of debugging and quality, there's another approach worth considering here: http://sean.chittenden.org/programming/ruby/mod_ruby/apachecon-2002/intro_to_mod_ruby/html/node35.html Catching all web errors and saving them has done wonders for me for squashing bugs. One thing that I like about this approach is that I don't have to worry about catching every exception in my scripts: I just let this one script handle all uncaught exceptions and act accordingly. Keeps consistency high and the amount of typing low. -sc -- Sean Chittenden