Currently I\'m seeing an oddity in functions in one of my programs in visual studio is acting. VS allows me to put break points at certain points in the file, but then in debug
Make sure the file containing that code doesn't have any optimization flags that override the global settings.
I had the same problem and worked around it by creating a new "solution" in VS and importing the existing .h and .cpp files into it.
Debugging problems gone.
I'm sure the issue was somewhere in the config settings.
Here are some ideas:
I found end-of-line could cause the problem like this. Once I changed some lines from the windows style carriage to linux style carriage by accident, the debugging point no longer hit the line. What I did to solve the problem was using notepad++ to fix EOL
When I see things like this the first thing i always do is to open up the Debug->Modules window and make sure that the binary I'm debugging was loaded from the place I think it should be.