Ejemplo n.º 1
0
        /// <summary>
        /// Write a debug message
        /// </summary>
        /// <param name="Label">The label to apply to the data</param>
        /// <param name="Data">The data to write</param>
        public static void WriteDebug(string Label, object Data)
        {
            if (!DebugMode)
            {
                return;
            }

            DebugData.Enqueue(new DebugData(Label, Data));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Write a debug message
        /// </summary>
        /// <param name="Label">The label to apply to the data</param>
        /// <param name="Data">The data to write</param>
        public static void WriteDebug(string Label, object Data)
        {
            if (!DebugMode)
            {
                return;
            }

            DebugData.Enqueue(new DebugData(Label, Data));
            if (VerboseDebug)
            {
                Console.WriteLine($"{DateTime.Now.ToString("HH:mm:ss.fff")} : {Label}");
            }
        }