Obtaining the PDB file location stored in debug assemblies...


Nathan Baulch

What is the best way to get the full path name of an assembly's PDB file?
Hex editing an assembly that was compiled in debug mode shows that it knows
where the PDB was originally created.
I can find out if the assembly should have an associated PDB by looking for
the DebuggableAttribute and checking the IsJITTrackingEnabled property.
Should I just be taking the full path name of the assembly and replacing the
extension with PDB?
This obviously wouldn't work if the assembly was moved so it's not ideal.



Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question