调试小技巧

//在指定路径生成文档,内容是你运行步骤的时间+输入的msg

 

public static void WriteMessage(string msg)
{
File.AppendAllText(Path, DateTime.Now.ToLongTimeString() + ":\t" + msg + " " + ShowUsedMemory() + "\n", Encoding.UTF8);
}

posted @ 2021-02-23 14:33  月下独酌孤醉  阅读(39)  评论(0)    收藏  举报