问题描述
我能够为DirectX变量(如LPD3DXMESH等)启用调试信息。
I was able to enable debugging info for directX variables like LPD3DXMESH etc.
通常,它仅显示IUnknown和一些指针值,但是如果启用了其他调试功能,
Normally it just shows IUnknown and a some pointer value, but if additional debugging is enabled its possible to see more detailed info about the structure.
问题是我丢失了项目,现在我不记得如何再次启用这种调试了。
Problem is that I lost the project and now I can't remember how to enable this type of debugging again.
请帮助我再次找到它。
谢谢!
推荐答案
首先,您是否启用了DirectX调试模式?如果不是,请转到开始菜单中 Microsoft DirectX SDK / DirectX实用工具下的DirectX控制面板,然后启用调试模式(选中使用Direct3D的调试版本复选框)。
First of all, have you enabled DirectX debug mode? If not, go to the DirectX Control Panel under "Microsoft DirectX SDK/DirectX Utilities" in the Start menu and enable debug mode (Check the checkbox "Use Debug Version of Direct3D").
下一步,确保将项目构建配置设置为调试。在Visual Studio中,选择构建>配置管理器,然后将项目的配置更改为调试。
Next, make sure that your projects build configuration is set to Debug. In Visual Studio, choose Build > Configuration Manager and change the configuration of your project to Debug.
最后,请确保按照
这篇关于如何在VS 2008中为DirectX变量启用更多调试信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!