src/MCoreApplication.php
public static function setIsDebug(bool $bool): void
    {
        if (self::isCliApp()) {
            self::$IS_DEBUG = $bool;
        } else {
            MSession::set(MCoreApplication::DEBUG, $bool);
        }
    }
public static function setIsDebug(bool $bool): void
    {
        if (self::isCliApp()) {
            self::$IS_DEBUG = $bool;
        } else {
            MSession::set(MCoreApplication::DEBUG, $bool);
        }
    }
public static function setIsDebug ( bool $ bool ) : void { if ( self :: isCliApp ( ) ) { self :: $ IS_DEBUG = $ bool ; } else { MSession :: set ( MCoreApplication :: DEBUG , $ bool ) ; } }
Set the debug mode.

@param bool $bool
Set the debug mode .