I Am using a third party library in one of my .NET projects.
I notice there are a ton of pdb files included in the bin folder - one for each dll. What is the purpose of the pdb file?
I Am using a third party library in one of my .NET projects.
I notice there are a ton of pdb files included in the bin folder - one for each dll. What is the purpose of the pdb file?
They hold the debugging symbol information.
A dll is binary so you can't have your code line inside. For instance ,the pdb helps your debugger to show you your code line when you have an exception when you're executing your binaries.
You can remove them on deployment server. They are useless except for debugging purpose.
If your .NET program throws an exception and it is built with a PDB file the stack trace for that exception message will look like this -
at Program.Main(String[] args) in C:\dev\program.cs:line 262
If you don't have PDB files it will look like this -
at Program.Main(String[] args)
The difference being the PDB file gives you the location in your source code where the exception happened.
© 2022 - 2024 — McMap. All rights reserved.