How can we get the version number of the source file from the pdb file?

We have a source server turned on, and source indexing is implemented in accordance with Using SrcSrv (MSDN) . The debugger intelligently copies the file from the server to the local cache. This works fine on the developer's machine.

Using the IdebugSymbols interface, we can extract information from pdb files. We have the IdebugSymbols API functions to extract the file name, source line number, module name, etc. Link: IDebugSymbols Interface (MSDN)

My query: is it possible to restore the version number of the source file from the .pdb file using any Microsoft API?

Please let me know if the problem is not understood or you need additional data on my part. Thank:)

+4
source share
1 answer

I found another general approach using Microsoft tools called "pdbstr.exe" and "Srctool.exe". These tools can be found at% PROGRAMFILES% \ Debugging Tools for Windows (x86) \ srcsrv (from: Source Server (MSDN) )

These tools simply interact with the pdb character file and extract information. Therefore, I was interested in receiving the following information and yes, which answers my question. - What are all the files indexed with their revision number?

+2
source

All Articles