C# DebugHelper

Date: 2024-01-30
    public class DebugHelper
    {
        public static bool IsDebugMode() => IsDebugBuild() && Debugger.IsAttached;

        public static bool IsDebugBuild()
        {
#if DEBUG
            return true;
#else
            return false;
#endif
        }
    }
82290cookie-checkC# DebugHelper