DebuggerStepThrough requests that the debugger step through a function without any user interaction.

 static void Main(string[] args)
        {
            DoWorkProxy();
            Console.ReadLine();
        }


        [DebuggerStepThrough,DebuggerHidden]
        static void DoWorkProxy()
        {
            PrintTime();
        }

        static void PrintTime()
        {
            Console.WriteLine($"Now is {DateTime.Now.ToString("yyyyMMddHHmmssffff")} ");
        }

DebuggerStepThrough requests that the debugger step through a function without any user interaction.

 

posted @ 2020-06-01 11:10  FredGrit  阅读(115)  评论(0编辑  收藏  举报