错误:在WinDbg中找不到符号文件

错误:在WinDbg中找不到符号文件,windbg,Windbg,我正在使用VmWare对windows vista进行远程调试,但遇到以下问题: *** ERROR: Symbol file could not be found. Defaulted to export symbols for ntkrpamp.exe " 另外,如果我在windbg中给出“!process 0”,我将得到 **** NT ACTIVE PROCESS DUMP **** NT symbols are incorrect, please fix symbols 我尝试

我正在使用VmWare对windows vista进行远程调试,但遇到以下问题:

*** ERROR: Symbol file could not be found.  Defaulted to export symbols for ntkrpamp.exe " 
另外,如果我在windbg中给出“!process 0”,我将得到

**** NT ACTIVE PROCESS DUMP **** NT symbols are incorrect, please fix symbols
我尝试将_NT_SYMBOL_PATH设置为“symsrv*symsrv.dll*c:\symbols”*http://msdl.microsoft.com/download/symbols“(这在中给出),然后我将windbg的符号文件路径更改为“srv*C:\Symbols\MsSymbols”*http://msdl.microsoft.com/download/symbols“,但即使在这之后,当我运行symchk.exe下载符号时,也会出现相同的错误,我可能会收到很多失败的消息。 当我尝试使用重新加载时。运行后重新加载!sym吵闹,我受不了

Connected to Windows Vista 6000 x86 compatible target at (Sat Jan 28 16:52:23.839 2012 (GMT+5)), ptr64 FALSE
SYMSRV:  The system cannot find the file specified.
SYMSRV:  The system cannot find the file specified.
SYMSRV:  The system cannot find the file specified.
SYMSRV:  c:\symbols\mssymbols\ntkrpamp.pdb\FD50D285751D4684938604B2CC1B41682\ntkrpamp.pdb not found
SYMSRV:  http://msdl.microsoft.com/download/symbols/ntkrpamp.pdb/FD50D285751D4684938604B2CC1B41682/ntkrpamp.pdb not found
DBGHELP: ntkrpamp.pdb - file not found
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for ntkrpamp.exe - 
DBGHELP: nt - export symbols
Loading Kernel Symbols
...............................................................
................................................................
............
Loading User Symbols

Loading unloaded module list
....
但是当我试着跑的时候!进程0 0时,我收到一个错误,表示符号不正确


感谢您的帮助和提前的时间。

您的固定符号路径在我看来很好,第一条路径完全不正确。你能试试下面的命令,看看它是否有效吗

.symfix c:\websymbols
.reload /o

如果这不起作用,您是否正在目标上运行正式版本?比如,它不是Beta版或者什么的,对吧?您可能还想排除任何网络问题。

我也遇到过同样的问题。 这是因为我的IE浏览器无法连接Internet(而其他浏览器可能会),导致windbg返回错误\u无法\u连接\u Internet导致找不到pdb文件

SYMSRV:  BYINDEX: 0x5
     d:\symbolslocal*http://msdl.microsoft.com/download/symbols
     ntdll.dll
     4CE7B96E13c000
SYMSRV:  d:\symbolslocal\ntdll.dll\4CE7B96E13c000\ntdll.dll - file not found
SYMSRV:  HTTPGET: /download/symbols/ntdll.dll/4CE7B96E13c000/ntdll.dll
SYMSRV:  HttpSendRequest: 12029 - ERROR_INTERNET_CANNOT_CONNECT
SYMSRV:  d:\symbolslocal\ntdll.dll\4CE7B96E13c000\ntdll.dll not found          

SYMSRV:http://msdl.microsoft.com/download/symbols/ntdll.dll/4CE7B96E13c000/ntdll.dll not found
DBGHELP: E:\Program Files (x86)\Windows Kits\10\Debuggers\x64\ntdll.dll - file not found
DBGHELP: E:\Program Files (x86)\Windows Kits\10\Debuggers\x64\ntdll.dll - file not found
DBGENG:  ntdll.dll - Image mapping disallowed by non-local path.
DBGHELP: No debug info for ntdll.dll.  Searching for dbg file
SYMSRV:  BYINDEX: 0x6
     d:\symbolslocal*http://msdl.microsoft.com/download/symbols
     ntdll.dbg
     4CE7B96E13c000
SYMSRV:  d:\symbolslocal\ntdll.dbg\4CE7B96E13c000\ntdll.dbg - file not found
SYMSRV:  HTTPGET: /download/symbols/ntdll.dbg/4CE7B96E13c000/ntdll.dbg
SYMSRV:  HttpSendRequest: 12029 - ERROR_INTERNET_CANNOT_CONNECT
SYMSRV:  d:\symbolslocal\ntdll.dbg\4CE7B96E13c000\ntdll.dbg not found
SYMSRV:       http://msdl.microsoft.com/download/symbols/ntdll.dbg/4CE7B96E13c000/ntdll.dbg not found
DBGHELP: .\ntdll.dbg - file not found
DBGHELP: .\dll\ntdll.dbg - path not found
DBGHELP: .\symbols\dll\ntdll.dbg - path not found
DBGHELP: ntdll.dll missing debug info.  Searching for pdb anyway
DBGHELP: Can't use symbol server for ntdll.pdb - no header information available
DBGHELP: ntdll.pdb - file not found
*** ERROR: Module load completed but symbols could not be loaded for ntdll.dll
所以只要解决IE的问题,windbg就可以正常工作了。 关于如何解决IE问题, 打开“Internet选项”-->“连接”--> 删除所有连接---->重新启动IE---->IE OK

然后windbg现在可以访问Internet,它现在可以下载符号文件


IE无法访问互联网可能会在许多程序中造成许多问题。希望能有所帮助。

为什么这很重要?您想调试代码还是调试操作系统?调试驱动程序..我正在运行一个安装程序,其中目标操作系统(vista)在vmware中运行,我有一台主机Win7 OSIt,这非常非常重要。如果没有NT模块(即内核和执行子系统)的符号,调试器将毫无用处。当然,您可以调试自己的模块,但是您不能检查系统的整体状态(这在进行内核级调试时非常重要)。否则您可以访问symbol服务器吗?比如说,将用户模式调试器附加到explorer.exe,您是否为此获得MS符号?你正在运行Vista的预发行版/测试版/修补版吗?@jcopenha:不,我也尝试了用户模式调试,但失败了。.我正在运行Windows Vista home premium。我也尝试了……它不起作用。.我正在检查一些网络问题。.当调试Win 8.1机器和Win 7机器时,可能是防火墙或AVA为我解决了它。