5

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

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?

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.

4

1 回答 1

2

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

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

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

VS 2012 似乎放弃了对 WinDbg 命令的支持,因为您无法调用高于 VS 2010 的 VS 版本的网页。

于 2015-07-16T19:29:13.097 回答