如何知道 pdb 文件在哪里寻找源代码

How to know where the pdb files is looking for source code

我有一个外部 dll 和一个来自 C# 代码的 pdb 文件。我已经在我的电脑上下载了源代码。在 Visual Studio 中,在 modules 下,Symbol status 是:Symbol loaded 对于那个特定的 dll。但是 User code 是:N/A.

而且我无法进入那个 dll 中的函数。我如何知道将源代码放在哪里以便 pdb 找到它? pdb 是否在特定目录中查找 C# 源文件,有没有办法找出位置?

有一个名为 SrcTool.exe 的工具随 WinSDK 安装。 Srctool.exe 实用程序列出在 .pdb 文件中索引的所有文件。

SrcTool.exe -r filename.pdb 将打印源文件路径。