I've been encountering some seriously neck breaking errors when trying to make debugging break points for my C++ project. When I try to run them, they don't seem to break at those points. So I scoured the net for solution and found these:
Solution Number 1: http://bit.ly/ckBNQq
To do this:
1) Goto Project->Properties
2) Make sure "Configuration" at the top is "Debug"
3) On the left, select "C/C++", then "General"
4) On the right, change "Debug information format" to "Program Database for edit and continue (/ZI)"
5) On the left, Select "Optimization"
6) On the right, Change "Optimization" to "Disabled (/Od)"
7) On the left, select "Code Generation"
8) On the right, change "Runtime library" to "Multi-Threaded Debug (/MTd)"
9) On the left, expand "Linker" and select "Debugging"
10) On the right, change "Generate Debug info" to "Yes (/DEBUG)"
11) Rebuild your project.
Spent a day working this out.. googling always helps !!! A big thanks to these forums.
Solution Number 2: http://bit.ly/92qjPN
I'm posting this blog mostly to remind myself how to fix this if ever I run into it again, but if anyone else benefits from it, then awesome.
In the Visual Studio IDE, when I set a breakpoint at a line of code, and start debugging, the breakpoint becomes that hollow maroon circle with a warning that says The breakpoint will not currently be hit. No symbols have been loaded for this document.
I've read a bunch of articles about makiing sure you're running in debug versus release mode, and making sure you deleted your obj AND bin folders. None of that worked for me. After some digging, and some help from John Alexander and Jeff Julian, I found one way that works for me.
I'm not really an expert on this, but I welcome any questions anyone may have, and I'll try to help out if you still can't get it to work.
~Doug
And here's an additional note from me: