When the project is built under "Debug" mode, .pdb files will get created.
When compiled with debugging information, an executable file contains two references to the associated PDB file:
• Local variable names.
• The full path of the associated PDB file that will be used during the debugging session.
The other information is not required in the PDB file because it is available in metadata file.
When a program to be debugged is launched, the debugger goes into the executable file and tries to locate the correct PDB file to proceed to the debugging session.
Asked In: Many Interviews |