简体   繁体   English

DirectX 10调试输出不起作用

[英]DirectX 10 debug output not working

I cannot make debug output for DirectX 10 to work for my simple C# application. 我无法使DirectX 10的调试输出适用于我的简单C#应用程序。 I've installed DirectX SDK, opened DirectX Control Panel and added application exe to list. 我已经安装了DirectX SDK,打开了DirectX控制面板,并将应用程序exe添加到列表中。

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). DirectX调试输出既没有显示在DebugView中(当我手动启动应用程序exe时),也没有显示在Visual Studio 10输出控制台中(当我启动Debug时)。

I've added SlimDX to my project as a NuGet package, and the platform is set as x86. 我已将SlimDX作为NuGet软件包添加到我的项目中,并且平台设置为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. 当我创建Direct3D9简单示例时,显示了调试。 Direct3D10 is still not working. Direct3D10仍然无法正常工作。

My experience is with SharpDX rather than SlimDX, but hopefully the following will hold true. 我的经验是使用SharpDX,而不是SlimDX,但希望以下内容能够成立。 In addition to installing the DirectX SDK and adding your executable to the debug list you should also: 除了安装DirectX SDK并将可执行文件添加到调试列表之外,您还应该:

  • Open you project's properties and set 'Debug > Enable native code debugging' to true 打开项目的属性,并将“调试>启用本机代码调试”设置为true
  • Create your DirectX device with the Debug device creation flag 使用调试设备创建标志创建DirectX设备

Additionally, This Post suggests you may need to edit you VS settings. 此外, 本帖子建议您可能需要编辑VS设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM