code: def debug(self, state=None):
          
          if state is None:
              return self.__debug
          self.__debug = bool(state)
          return self.__debug
docs: Get or set debug mode
  
          :param state: debug state or None for get value
          :type state: bool or None
          :returns: debug state or None if set fail
          :rtype: bool or None