Where must PDB files be located for debugging to work?
Asked
Active
Viewed 1,912 times
0
-
1Have you tried to search the google for "PDB files" before posting the question? There are a lot of explaining articles. – Andrey Korneyev Feb 10 '16 at 09:06
-
2Have you tried google? First post : https://msdn.microsoft.com/en-us/library/yd4f8bd1(vs.71).aspx – Jonas W Feb 10 '16 at 09:06
1 Answers
1
See MSDN:
A program database (PDB) file holds debugging and project state information that allows incremental linking of a debug configuration of your program. A PDB file is created when you build with /debug (Visual Basic/C#). You can build Visual Basic and Visual C# applications with /debug:full or /debug:pdbonly. Building with /debug:full generates debuggable code. Building with /debug:pdbonly generates PDBs but does not generate the DebuggableAttribute that tells the JIT compiler that debug information is available. Use /debug:pdbonly if you want to generate PDBs for a release build that you do not want to be debuggable.
Also check this article by John Robbins: PDB Files: What Every Developer Must Know

Rahul Tripathi
- 168,305
- 31
- 280
- 331