如何在调试时编辑变量的值(Visual C ++) [英] How to edit a value of a variable while debugging (Visual C++)

查看:132
本文介绍了如何在调试时编辑变量的值(Visual C ++)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在运行时编辑和更改变量的值....但是我做的不正确....请帮帮我...



在此先感谢.....

I want to edit and change a value of a variable during run time....but i am not getting it right ....Please help me out ......



Thanks in advance.....

推荐答案

设置使用变量的断点并开始调试.当执行在断点处停止时,请在本地窗口中更改变量的内容,然后按F5键继续执行.
Set a break point where your variable is used and start debugging. When execution stops at the break point, change the content of your variable in the local window and resume execution by pressing F5.


在适当的行使用断点停止程序并更改变量值例如,使用QuickWatch窗口.
Stop your program using a breakpoint at the proper line and change variable value using, for instance, the QuickWatch window.


我尝试过,但原始值仍然存在......
I tried it but still the original value persists......


这篇关于如何在调试时编辑变量的值(Visual C ++)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆