code: def debug(self, key):
          
          return (not self.quiet and not self.debug_none and
                  (self.debug_all or getattr(self, "debug_%s" % key)))
docs: Returns True if the debug setting is enabled.