我有一个源索引 PDB,但 Visual Studio 在调试时不会尝试下载适当的源(使用 Fiddler 验证),即使它确实在符号缓存中创建了正确的目录结构(即在 src/ 子目录下)。为了解决我使用 srctool.exe 的问题:
srctool -x myfile.pdb
但是,这只会导致 URL 被列出;它不会尝试下载它们:
https://myurl.com/bitbucket/projects/BLAH/repos/MyRepo/browse/Src/SomeDir/SomeFile.cs?at=05bff5155beece6c7e6acde97f7aeefc7b65e2cf&raw
...
myfile.pdb: 20 source files were extracted.
pdbstr 的输出如下:
SRCSRV: ini ------------------------------------------------
VERSION=2
SRCSRV: variables ------------------------------------------
RAWURL=https://myurl.com/bitbucket/projects/BLAH/repos/MyRepo/browse/%var2%?at=05bff5155beece6c7e6acde97f7aeefc7b65e2cf&raw
SRCSRVVERCTRL=https
SRCSRVTRG=%RAWURL%
SRCSRV: source files ---------------------------------------
E:\AnotherDir\work\9f49bd3ba978a6f5\Main\Src\SomeDir\SomeFile*Src/SomeDir/SomeFile
...
SRCSRV: end ------------------------------------------------
如果有人能指出我正确的方向来弄清楚发生了什么,我将不胜感激。