I don't know why setting breakpoints cannot work.
- Tried to disable the optimization and setting to C7 compatible Debug information Format.
- Cleaning and rebuilding the solution didn't work too.
- Deleted all PDB's EXE's manually in order to rebuild the solution again.
- Rebooting and hence launching again VS 2010 is not working.
- In some cases, the breakpoints are set but cannot be hit. The following is displayed in time of direct cursor of mouse at:
The breakpoint will not be currently hit. No executable code is not associated with this line. possible causes include: preprocessor directives or compiler linker optimizations.
It is just equality check statement (== ) without any effects at the line of interest. Probably no code is generated for it even in debug mode.