I am using (C++) Visual Studio 2010.
I have to trace the control flow of my Application. To do so, I have put a break point in the source code.
While running the app in Debug mode, the break point hits. But in Release mode it didn’t hit.
How can I cause the break point to be hit when debugging in Release mode?
In release mode your code is optimized and that can change the flow of your program. For example, if a function is simple and only called once, the compiler can inline the function in release mode.
Debug mode doesn’t have these kind of optimization and is designed for debugging your code.