# File lib/mongrel.rb, line 997
 997:     def debug(location, what = [:object, :rails, :files, :threads, :params])
 998:       require 'mongrel/debug'
 999:       handlers = {
1000:         :files => "/handlers/requestlog::access", 
1001:         :rails => "/handlers/requestlog::files", 
1002:         :object => "/handlers/requestlog::objects", 
1003:         :threads => "/handlers/requestlog::threads",
1004:         :params => "/handlers/requestlog::params"
1005:       }
1006: 
1007:       # turn on the debugging infrastructure, and ObjectTracker is a pig
1008:       ObjectTracker.configure if what.include? :object
1009:       MongrelDbg.configure
1010: 
1011:       # now we roll through each requested debug type, turn it on and load that plugin
1012:       what.each do |type| 
1013:         MongrelDbg.begin_trace type 
1014:         uri location, :handler => plugin(handlers[type])
1015:       end
1016:     end