Print to Output /To trace runtime

可参考 Visual Studio调试之断点进阶篇http://www.cnblogs.com/killmyday/archive/2009/09/27/1574919.html )

方法1.修改代码,用System.Diagnostics.Trace.WriteLine(...)

方法2.设置断点的When hit,输出时间,从而可准确判断执行时长,简单有效。

Function: $FUNCTION, Thread: $TID $TNAME, Start_PresentData = |{start}

 However, we can also use               System.Diagnostics.Debug.WriteLine(***)

                                                    MessageBox.Show(***)  (Windows.Form.)

                                   MessageBox.Show(lenthInfo.ToString(), "", MessageBoxButtons.AbortRetryIgnore);

原文地址:https://www.cnblogs.com/WangShun/p/2826045.html