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);

 

posted on 2012-12-20 10:56  shwang  阅读(139)  评论(0编辑  收藏  举报