SlimDX:在 Visual Studio 2010 中无法看到 Direct3D 调试输出

发布于 2024-09-15 18:09:47 字数 237 浏览 10 评论 0原文

  1. 我已经安装了 2010 年 6 月的 SDK,
  2. 并在 DirectX 控制面板中启用了调试运行时
    • 将调试输出级别设置为最大(更多)
  3. 启用非托管代码调试。

结果:Direct3D 的调试输出丢失

但是,如果我从外部启动应用程序并使用 dbgview.exe,输出将显示在那里。

原因可能是什么?

  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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

左岸枫 2024-09-22 18:09:47

经过几个小时的反复试验,我找到了解决问题的方法。

导出您的设置并检查以下设置的值:

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

我那里有 0。最可能的原因是我使用 CSharp 默认设置。当使用 C++ 环境默认设置时,该值很可能已经设置。

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.

不及他 2024-09-22 18:09:47

您还可以转到托管可执行文件的项目属性,在“调试”选项卡下,然后打开“本机代码调试”,以允许消息通过。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文