<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def enable_debug(self):
 """If the cli arg for foreground is set, set the configuration option for debug. """

        if self.args.foreground:
            self.config.application[config.DEBUG] = True