The debugger is a Visual Studio tool which works as a background process to inspect the execution of the program. Breakpoints are used to notify the debugger to pause the execution of the program when it hits at a certain line. PDB (Program Data Base) files are used to store the debugging information. It stores the line number, Data Tips information, and many other related information of the source code which are required to debug the application. Visual Studio then reads it to pause the debugging and provide more details of the execution.
When you build the application in debug mode, the PDB file has more information than in release mode.
It is not mandatory that in all cases the debugger will work. Certain situations exist when your debugging information is invalid and in such cases the Visual Studio debugger will fail to attach to the...