code: public static function activateDebug()
      {
          if (self::$_bFirstActivation === true) {
  
              self::_setFileNameInErrorFile();
              self::$_bFirstActivation = false;
          }
  
          self::_initLogFile();
          self::$_bActivateDebug = true;
          self::activateError(E_ALL);
          self::activateException(E_ALL);
      }
docs: activate debug
  
  @access public
  @return void