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