Visual Studio Breakpoint Macro to modify a value?

后端 未结 5 1173
一个人的身影
一个人的身影 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:13

    Looking for similar today and found that you can also use the 'Print a message:' option instead of a macro. Values from code can be printed by placing them inside {}. The key is that VS will also evaluate the content as an expression - so {variable_name=0} should achieve the same as the macro example.

提交回复
热议问题