SlimDX: Cannot see Direct3D debug output in Visual Studio 2010

我怕爱的太早我们不能终老 提交于 2019-12-10 11:28:50

问题


  1. I've installed the June 2010 SDK
  2. Enabled the Debug Runtime in the DirectX Control Panel
    • set the Debug Output Level to maximum (More)
  3. Enabled unmanaged code debugging.

Result: The debug output from Direct3D is missing

However if I start the application externally and use dbgview.exe, the output is shown there.

What could be the reason for that?


回答1:


After hours of trial and error I found a solution to my problem.

Export your settings and check the value of the following setting:

<PropertyValue name="OutputOnOutputDebugString">1</PropertyValue>

I had 0 there. The most likely reason for this is that I use CSharp default settings. When using C++ environment default settings, that value is most likely already set.




回答2:


You can also go to the project properties of your managed executable, under the Debug tab, and turn on Native Code Debugging, which allows the messages through.



来源:https://stackoverflow.com/questions/3564445/slimdx-cannot-see-direct3d-debug-output-in-visual-studio-2010

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