使用哪个工具打开.pdb(符号)文件?
我有 .pdb
文件,是从MS符号服务器下载的。我需要获取符号列表(函数,参数,它具有的所有内容)。 CodeProject上有一个工具,但仅报告模块。有 DbgHelp
API,但只能在运行的进程中使用。我如何离线读取 .pdb
文件?
I have .pdb
file, downloaded from MS symbols server. I need to fetch list of symbols (functions, arguments, anything it has). There is a tool on CodeProject, but it only reports modules. There is DbgHelp
API, but it only could be attcahed to running process. How can I read .pdb
file offline?
您还可以使用Visual Studio的 Dia2Dump 示例程序从PDB文件转储人类可读的输出,包括公共符号。
You can also use Visual Studio's Dia2Dump sample program to dump human-readable output from a PDB file, including its public symbols.
请务必将其构建为32位应用程序,否则可能会遇到一些问题问题。 (请参见 dia2dump:CoCreateInstance失败-HRESULT = 80040154 )
Be sure to build it as a 32-bit application though, or you might run into some problems with it. (See dia2dump: CoCreateInstance failed - HRESULT = 80040154)