Break point in release mode

前端 未结 4 1456
爱一瞬间的悲伤
爱一瞬间的悲伤 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:46

    You can use the __debugbreak() intrinisic. This is also very handy if you want to break on a specific condition. For example:

    if (var > LIMIT)
      __debugbreak();
    

提交回复
热议问题