How can you read the source paths used to compile a pdb in .NET (C#) environment?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The PDB format is NOT documented – but there is an API from MS called DIA which provides several methods to deal PDB. It is COM-based… for details see MSDN. PDB files usually contain filenames and linenumbers BUT I am not sure that they always contains full path to the source.
Some interesting information on PDBs can be found here.
IF you want some .NET source code dealing with .PDBs see
Mono.Ceciland esp. the namespaceMono.Cecil.Pdb.2/12/16 update
Microsoft has been open-sourcing the PDB format. Information can be found in their github repo here.