【发布时间】:2014-06-05 20:37:34
【问题描述】:
我正在使用 Visual C# 2010 Express 来调试 DirectX 应用程序(其中消息循环为每次迭代处理单帧动画)。默认情况下,调试引擎处理“退出线程”(EXIT_THREAD_DEBUG_EVENT) 事件。因为我的应用程序实现了多线程,所以这个事件每帧发生多次(消息循环的迭代)并且事件的处理会减慢我的应用程序的速度。这是不可取的......
有没有一种方法可以禁用单个调试事件处理程序,而无需创建和附加自定义调试引擎?
I know that I can disable the output to the debug window by doing the following:
On the Tools menu, click Options.
In the Options dialog box, select the Debugging node.
Under the expanded Debugging node, select the Output Window entry.
Under General Output Settings on the right hand side of the Options window, change 'Thread Exit Messages' from 'On' to 'Off'
Click OK
但是,调试引擎继续处理事件,应用程序继续缓慢运行...
【问题讨论】:
标签: c# multithreading visual-studio-2010 debugging