Visual Studio Breakpoint Macro to modify a value?

后端 未结 5 1195
一个人的身影
一个人的身影 2021-01-05 12:25

I\'m debugging an application (C++), and I\'ve found a point in the code where I want to change a value (via the debugger). So right now, I\'ve got a breakpoint set, whereu

5条回答
  •  温柔的废话
    2021-01-05 13:08

    Select "Condition..." and write an assignment for the variable in question in the "Condition:" textbox. This will naturally resolve to "true" with it not being an actual conditional test. Therefore, the breakpoint is never hit, and your variable has been set accordingly.

提交回复
热议问题