Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's a PDB file?

Tags:

.net

pdb

What's the PDB files inside the .NET dll files and what it does? Usually peoples remove this file in deploying and only keep the dll file in lib folders but it seems nothing happened and everything works well...

like image 317
Afshin Mehrabani Avatar asked Jun 26 '12 06:06

Afshin Mehrabani


3 Answers

A Program Data Base file has nothing to do with incremental linking and Project State! PDB files are used to map EXE with SOURCES. They are used for Debug and Release binaries. Here an article that explains this binding link between an Executable Image and its PDB file

like image 93
mox Avatar answered Oct 22 '22 16:10

mox


PDB files store the information that allows you to debug an application.

The reason that the files are usually not deployed is that there is usually no need to ship them. Should you want to debug the application, you can always load them from a directory, network share or symbol server.

like image 33
tehlexx Avatar answered Oct 22 '22 16:10

tehlexx


See http://www.wintellect.com/CS/blogs/jrobbins/archive/2009/05/11/pdb-files-what-every-developer-must-know.aspx and https://stackoverflow.com/a/72190/150984

like image 1
Toft Avatar answered Oct 22 '22 14:10

Toft