0

Where must PDB files be located for debugging to work?

selvakumar
  • 1,771
  • 3
  • 20
  • 34

1 Answers1

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