【发布时间】:2016-06-27 19:56:18
【问题描述】:
我有一个简单的演示控制台程序可以调试,但令人惊讶的是,windbg 无法从 Microsoft 默认存储中获取符号。
我愿意
.reload /f
我得到了总结:
************* Symbol Loading Error Summary **************
Module name Error
ConsoleApp PDB not found : cache*
Unable to locate the .pdb file in this location
The system cannot find the file specified : SRV*https://msdl.microsoft.com/download/symbols
The SYMSRV client failed to find a file in the UNC store, or there
is an invalid UNC store (an invalid path or the pingme.txt file is
not present in the root directory), or the file is present in the
symbol server exclusion list.
符号文件路径是
srv*
我试图使用我自己的应用程序的 pdf 文件,但它甚至找不到微软符号。
更新
整理其他问题后,我可以将其重现。好像我只是读错了消息。由于错误消息指向微软默认商店,我读它就像它没有在微软商店找到指定的文件......认为它没有连接/查找/下载微软符号,而实际上主要错误说它只是没有'找不到我自己的应用程序的符号。
不过,消息不是很清楚。例如,当我设置并添加一个额外的路径时,Ok 说。
0:000> .sympath srv*c:\test\Symbols*https://msdl.microsoft.com/download/symbols;c:\test\hello
DBGHELP: Symbol Search Path: srv*c:\test\symbols*https://msdl.microsoft.com/download/symbols;c:\test\hello
DBGHELP: Symbol Search Path: srv*c:\test\symbols*https://msdl.microsoft.com/download/symbols;c:\test\hello
Symbol search path is: srv*c:\test\Symbols*https://msdl.microsoft.com/download/symbols;c:\test\hello
Expanded Symbol search path is: srv*c:\test\symbols*https://msdl.microsoft.com/download/symbols;c:\test\hello
************* Symbol Path validation summary **************
Response Time (ms) Location
Deferred srv*c:\test\Symbols*https://msdl.microsoft.com/download/symbols
OK c:\test\hello
现在当我.reload /f 符号加载错误摘要是这样的:
************* Symbol Loading Error Summary **************
Module name Error
App The system cannot find the file specified : srv*c:\test\symbols*https://msdl.microsoft.com/download/symbols
The SYMSRV client failed to find a file in the UNC store, or there
is an invalid UNC store (an invalid path or the pingme.txt file is
not present in the root directory), or the file is present in the
symbol server exclusion list.
PDB not found : c:\test\hello\symbols\exe\App.pdb
Unable to locate the .pdb file in this location
不知道为什么无法在路径PDB not found : c:\test\hello\symbols\exe\App.pdb加载?
【问题讨论】:
-
这是正确的语法:
SRV*C:\symbols*https://msdl.microsoft.com/download/symbols -
我不再收到此错误,可能是在我退出并重新启动 windbg 之后
-
PDB 在哪里?你把它放在 c:\test\hello, c:\test\hello\symbols 还是在哪里?同样重要的是:你是怎么把它放在那里的?复制/粘贴还是使用 symstore?
-
@ThomasWeller 我并没有真正将 pdb 文件放在那里,我只是想看看它在那里搜索但没有找到它的消息。
标签: windbg