Break point in release mode

前端 未结 4 1442
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-04 12:18

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

4条回答
  •  离开以前
    2021-01-04 12:27

    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.

提交回复
热议问题