如何在远程机器上不安装DXSDK的情况下使用VS2008进行远程调试时获取DirectX调试消息?
我尝试调试一些问题 这只发生在某些 Windows XP 计算机上。我的开发系统使用Vista,我希望避免在XP中设置完整的开发环境来调试这个问题。我已经使用 VS2008 成功设置了 XP 系统的远程调试,但无法让 DirectX 输出任何调试语句。 搜索 MSDN 没有找到任何内容这解决了问题。我尝试将所有调试 DLL 从开发 PC 的 %DXSDK_DIR%\Developer Runtime\x86
复制到程序的工作目录,然后复制到 Windows\System32 目录 此处描述。然后,我复制了 %DXSDK_DIR%\Utilities\Bin
目录,并使用 DirectX 控制面板将 DirectX 设置为在远程 PC 上进行调试,但无济于事。将我的开发 PC 切换为使用 Debug DirectX 也没有帮助。
话虽如此,有谁知道如何让 DirectX 通过远程调试会话在 VS2008 中输出调试消息,而不是在远程计算机上安装 DirectX SDK(这确实有效,但并不总是实用)?
I'm trying to debug some problems that only happen on some Windows XP machines. My development system uses Vista, and I'd like to avoid having to setup a complete development environment in XP to debug this problem. I've successfully setup remote debugging to the XP systems using VS2008, but have not been able to get DirectX to output any debug statements. Searching MSDN didn't turn up anything that solved the problem. I tried copying all of the Debug DLLs from my development PC's %DXSDK_DIR%\Developer Runtime\x86
to the program's working directory and then to the Windows\System32 directory as described here. I then copied over the %DXSDK_DIR%\Utilities\Bin
directory and used the DirectX Control Panel to set DirectX to debug on the remote PC to no avail. Switching my dev PC to use Debug DirectX didn't help either.
All that being said, does anyone know how to get DirectX to output debug messages in VS2008 over a remote debugging session other than installing the DirectX SDK on the remote machine (which did actually work, but isn't always practical)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试调试视图?它是一个小型的 Microsoft sysinternals 工具,可以捕获在其运行的计算机上编写的所有跟踪/调试语句(无需附加调试器)
You could try Debug View? Its a small Microsoft sysinternals tool that captures all trace / debug statements written on the machine its running on (without having to attach a debugger)
我怀疑这是可能的。这些消息仅由调试运行时输出,唯一的官方安装方法是安装 SDK。您也许可以找到一种方法,通过复制某些文件并更改一些注册表设置来使调试运行时正常工作,而无需进行完整安装,但几乎可以肯定,仅安装 SDK 会更容易。
I doubt it's possible. The messages are only output by the debug runtime and the only official way to install that is to install the SDK. You might be able to figure out a way to get the debug runtimes working by copying certain files over and changing a few registry settings without doing a complete install but it's almost certainly easier to just install the SDK.