def set_debug_on(self, on):
     """
     Sets (and saves) specified debug configuration.
     """
     debug_on = self.get_debug_on()
     if debug_on == on:
         return
     self.config.db["debug"] = debug_on = on
     ut.set_debug_on(debug_on)
     self.config.save()
     appuifw.note(u"Debugging %s" % (debug_on and "on" or "off"), "info")
 def apply_debug_config(self):
     """
     Applies current debug configuration.
     """
     debug_on = self.config.db.get("debug", False)
     ut.set_debug_on(debug_on)