更新时间:2022-06-16 22:49:21
您可以通过在调试器中停止时将新变量添加到代码窗口(而不是立即窗口)中来实现相同的功能.
You can accomplish the same functionality by adding the new variable to your code window (rather than immediate window) while stopped in the debugger.
确保已选中工具->选项->调试->编辑并继续->启用本机编辑并继续.
int myVariable=444;
然后添加您的代码, Debug->应用代码更改" ,它可以正常工作. (可选)使用设置下一条语句将执行点移到另一行.
Then add your code, Debug->Apply Code Changes, and it works. Optionally use Set Next Statement to move the execution point to a different line.