VS2005(Visual Studio 2005)中命令窗口的使用里有线程调试 http://blog.csdn.net/Octavius/archive/2008/11/25/3369496.aspx
谢谢大家的回复,我的代码很简单的.System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(Test)); t.Start(); 这样就没法调试Test(); 不使用线程直接调用这个方法就可以调试了.
肯定是在test里打断点了, 问题就是用 System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(Test)); t.Start(); 这种方式到了断点位置后就不能往下执行了. 不使用线程就可以到达断点并往下调试.
2.日志记录
3.挂起 Thread.Sleep(3000);
http://blog.csdn.net/Octavius/archive/2008/11/25/3369496.aspx
t.Start();
这样就没法调试Test();
不使用线程直接调用这个方法就可以调试了.
System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(Test));
t.Start();
这种方式到了断点位置后就不能往下执行了. 不使用线程就可以到达断点并往下调试.
{
System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(Test));
t.Start();
} private void Test()
{
int mid;
mid = 1;
mid = mid * 9;
mid = mid * 10;
}断点打在mid = 1; 上, 但是没办法往下执行了.
真是烦人啊.