code: def enable_debug(self):
          
          if self.args.foreground:
              self.config.application[config.DEBUG] = True
docs: If the cli arg for foreground is set, set the configuration option
          for debug.