# File lib/mongrel/configurator.rb, line 308
308:     def debug(location, what = [:objects, :rails, :files, :threads, :params])
309:       require 'mongrel/debug'
310:       handlers = {
311:         :files => "/handlers/requestlog::access", 
312:         :rails => "/handlers/requestlog::files", 
313:         :objects => "/handlers/requestlog::objects", 
314:         :threads => "/handlers/requestlog::threads",
315:         :params => "/handlers/requestlog::params"
316:       }
317: 
318:       # turn on the debugging infrastructure, and ObjectTracker is a pig
319:       MongrelDbg.configure
320: 
321:       # now we roll through each requested debug type, turn it on and load that plugin
322:       what.each do |type| 
323:         MongrelDbg.begin_trace type 
324:         uri location, :handler => plugin(handlers[type])
325:       end
326:     end