无法在 Visual Studio 即时窗口中使用 WinDbg 和 SOS [英] Cannot use WinDbg and SOS in Visual Studio Immediate window

查看:36
本文介绍了无法在 Visual Studio 即时窗口中使用 WinDbg 和 SOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习本教程:链接.在第 8 步,当我在即时窗口中说 .load sos 时,它只是呕吐 expected expression.

I'm following this tutorial: link. At step 8, when I say .load sos in the Immediate Window, it just pukes expected expression.

系统:Win 7 x64,Visual Studio 2012 Premium.我已经安装了 Windows (x64) 11/14/2012 调试工具,现在我安装了 X64 调试器和工具.我有适用于 Windows 7 (7.1) 的 Windows SDK.WinDbg.exe 位于 c:\Program Files\Debugging Tools for Windows (x64)\ 中,我可以从开始菜单启动它.但是我找不到 sos.dll,它应该与 Windows (x64) 调试工具一起提供.

System: Win 7 x64, Visual Studio 2012 Premium. I have an installed Debugging Tools for Windows (x64) 11/14/2012, Now I installed X64 Debuggers And Tools. I have Windows SDK for Windows 7 (7.1). WinDbg.exe is in c:\Program Files\Debugging Tools for Windows (x64)\ and I can start it from start menu. However I cannot find sos.dll, which supposed to come with the Debugging Tools for Windows (x64).

我怎样才能做到这一点?

How can I make this happen?

额外问题:第 4 步中的 {,,kernel32}_LoadLibraryExW@12 不起作用,我使用 {,,kernel32}LoadLibraryExW,但后来我无法弄清楚加载的 dll 名称在哪里.我正在查看寄存器.

Bonus question: {,,kernel32}_LoadLibraryExW@12 in Step 4 doesn't work, I use {,,kernel32}LoadLibraryExW, but then I cannot figure out where is the loaded dll name. I was poking around with the registers.

推荐答案

NTSD 命令支持 (MSDN)立即窗口命令 描述了 Visual Studio 2005、2008 和 2010 支持哪些 WinDbg 命令(或类似于 WinDbg).这只是一小部分:

NTSD command support (MSDN) and Immediate Window Commands describe which WinDbg commands (or similar to WinDbg) are supported by Visual Studio 2005, 2008 and 2010. It's only a small subset:

.S
.X
.K
.U
.~
.Reload
.Sympath
.Cxr
.Exr
.Load
.Unload
.Unloadall

最重要的可能是 .Load,它允许加载扩展,然后使用扩展的 ! 命令.

Most important is probably the .Load which allows loading extensions and then using ! commands of the extension.

VS 2012 似乎不再支持 WinDbg 命令,因为您无法调用高于 VS 2010 的 VS 版本的网页.

It seems that support for WinDbg commands was dropped with VS 2012, since you cannot call the web page for VS versions higher than VS 2010.

这篇关于无法在 Visual Studio 即时窗口中使用 WinDbg 和 SOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆