# File lib/mongrel/configurator.rb, line 312 def debug(location, what = [:access, :files, :objects, :threads, :rails]) require 'mongrel/debug' handlers = { :access => "/handlers/requestlog::access", :files => "/handlers/requestlog::files", :objects => "/handlers/requestlog::objects", :threads => "/handlers/requestlog::threads", :rails => "/handlers/requestlog::params" } # turn on the debugging infrastructure, and ObjectTracker is a pig MongrelDbg.configure # now we roll through each requested debug type, turn it on and load that plugin what.each do |type| MongrelDbg.begin_trace type uri location, :handler => plugin(handlers[type]) end end