How to enable more debugging info for DirectX variables in VS 2008?

佐手、 提交于 2019-12-20 05:52:47

问题


I was able to enable debugging info for directX variables like LPD3DXMESH etc.

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.

Please help me find it again.

Thank you!


回答1:


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").

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.

Finally, make sure to define D3D_DEBUG_INFO as described in Enabling Direct3D Debug Information on MSDN



来源:https://stackoverflow.com/questions/3331240/how-to-enable-more-debugging-info-for-directx-variables-in-vs-2008

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!