DirectX 10 debug output not working

2019-08-14 21:01发布

问题:

I cannot make debug output for DirectX 10 to work for my simple C# application. I've installed DirectX SDK, opened DirectX Control Panel and added application exe to list.

DirectX debug output was not shown in neither DebugView (when I start application exe manually) or Visual Studio 10 output console (when I start Debug).

I've added SlimDX to my project as a NuGet package, and the platform is set as x86.

I've run out of ideas how to make this work. Can someone think of something that I could try?

Thanks in advance.

UPDATE:

When I created Direct3D9 simple example, debug was displayed. Direct3D10 is still not working.

回答1:

My experience is with SharpDX rather than SlimDX, but hopefully the following will hold true. In addition to installing the DirectX SDK and adding your executable to the debug list you should also:

  • Open you project's properties and set 'Debug > Enable native code debugging' to true
  • Create your DirectX device with the Debug device creation flag

Additionally, This Post suggests you may need to edit you VS settings.