一些调试程序的小技巧

可以使用输出来调试程序,监测程序变量的变化,但是不能使用Console.WriteLine,可以使用Debug.WriteLine

//System.Diagnostics.Trace 高于 System.Diagnostics.Debug 高于Console.WriteLine
System.Diagnostics.Debug.WriteLine($"手动选中范围:{string.Join(",", r1, r2, c1, c2)}");

posted @ 2017-10-11 14:05  BaizLi  阅读(186)  评论(0编辑  收藏  举报