我正在使用Visual Studio Community 2017版本15.9.2,并且尝试在C#中调试某些内容。我想加载符号,但是尽管我已经正确配置了Visual Studio,但是符号缓存完全是空的。
当我通过从模块窗格中选择加载符号来显式加载我感兴趣的 Unity.Mvc.dll 程序集的符号时在调试时,它会尝试下载并最终在符号状态窗口中显示找不到或打开PDB文件。
符号负载信息对话框报告如下。
C:\Program Files (x86)\IIS Express\Unity.Mvc.pdb: Cannot find or open the PDB file. C:\Users\computer\AppData\Local\Temp\Temporary ASP.NET Files\vs\385c2246\beb904df\assembly\dl3\91f61dc3\00610fa0_6b3fd401\Unity.Mvc.pdb: Cannot find or open the PDB file. C:\projects\aspnet-mvc\src\obj\Release\net45\Unity.Mvc.pdb: Cannot find or open the PDB file. C:\Windows\Unity.Mvc.pdb: Cannot find or open the PDB file. C:\Windows\symbols\dll\Unity.Mvc.pdb: Cannot find or open the PDB file. C:\Windows\dll\Unity.Mvc.pdb: Cannot find or open the PDB file. C:\Users\computer\AppData\Local\Temp\SymbolCache\Unity.Mvc.pdb\41297c5a10a2446ba7397343f3dbad86ffffffff\Unity.Mvc.pdb: Cannot find or open the PDB file. C:\Users\computer\AppData\Local\Temp\SymbolCache\MicrosoftPublicSymbols\Unity.Mvc.pdb\41297c5a10a2446ba7397343f3dbad86ffffffff\Unity.Mvc.pdb: Cannot find or open the PDB file. C:\Users\computer\AppData\Local\Temp\SymbolCache\Unity.Mvc.pdb\41297c5a10a2446ba7397343f3dbad861\Unity.Mvc.pdb: Cannot find or open the PDB file. C:\Users\computer\AppData\Local\Temp\SymbolCache\MicrosoftPublicSymbols\Unity.Mvc.pdb\41297c5a10a2446ba7397343f3dbad861\Unity.Mvc.pdb: Cannot find or open the PDB file. C:\Sathyaish\repos\private\sathyaish.net\Code\Unity.Mvc.pdb: Cannot find or open the PDB file. SYMSRV: BYINDEX: 0x3
C:\Users\computer\AppData\Local\Temp\SymbolCache*https://msdl.microsoft.com/download/symbols
Unity.Mvc.pdb
41297C5A10A2446BA7397343F3DBAD86ffffffff SYMSRV: UNC: C:\Users\computer\AppData\Local\Temp\SymbolCache\Unity.Mvc.pdb\41297C5A10A2446BA7397343F3DBAD86ffffffff\Unity.Mvc.pdb
- path not found SYMSRV: UNC: C:\Users\computer\AppData\Local\Temp\SymbolCache\Unity.Mvc.pdb\41297C5A10A2446BA7397343F3DBAD86ffffffff\Unity.Mvc.pd_
- path not found SYMSRV: UNC: C:\Users\computer\AppData\Local\Temp\SymbolCache\Unity.Mvc.pdb\41297C5A10A2446BA7397343F3DBAD86ffffffff\file.ptr
- path not found SYMSRV: HTTPGET: /download/symbols/Unity.Mvc.pdb/41297C5A10A2446BA7397343F3DBAD86ffffffff/Unity.Mvc.pdb SYMSRV: HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND SYMSRV: HTTPGET: /download/symbols/Unity.Mvc.pdb/41297C5A10A2446BA7397343F3DBAD86ffffffff/Unity.Mvc.pd_ SYMSRV: HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND SYMSRV: HTTPGET: /download/symbols/Unity.Mvc.pdb/41297C5A10A2446BA7397343F3DBAD86ffffffff/file.ptr SYMSRV: HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND SYMSRV: RESULT: 0x80190194 SYMSRV: BYINDEX: 0x4
C:\Users\computer\AppData\Local\Temp\SymbolCache*https://msdl.microsoft.com/download/symbols
Unity.Mvc.pdb
41297C5A10A2446BA7397343F3DBAD861 SYMSRV: UNC: C:\Users\computer\AppData\Local\Temp\SymbolCache\Unity.Mvc.pdb\41297C5A10A2446BA7397343F3DBAD861\Unity.Mvc.pdb
- path not found SYMSRV: UNC: C:\Users\computer\AppData\Local\Temp\SymbolCache\Unity.Mvc.pdb\41297C5A10A2446BA7397343F3DBAD861\Unity.Mvc.pd_
- path not found SYMSRV: UNC: C:\Users\computer\AppData\Local\Temp\SymbolCache\Unity.Mvc.pdb\41297C5A10A2446BA7397343F3DBAD861\file.ptr
- path not found SYMSRV: HTTPGET: /download/symbols/Unity.Mvc.pdb/41297C5A10A2446BA7397343F3DBAD861/Unity.Mvc.pdb SYMSRV: HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND SYMSRV: HTTPGET: /download/symbols/Unity.Mvc.pdb/41297C5A10A2446BA7397343F3DBAD861/Unity.Mvc.pd_ SYMSRV: HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND SYMSRV: HTTPGET: /download/symbols/Unity.Mvc.pdb/41297C5A10A2446BA7397343F3DBAD861/file.ptr SYMSRV: HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND SYMSRV: RESULT: 0x80190194 https://msdl.microsoft.com/download/symbols: Symbols not found on symbol server.
这不是第一次发生这种情况。我通常每隔几年会解决一次,却忘记了我是怎么做到的。