Visual Studio 2010:内存地址发生变化时中断 [英] Visual studio 2010: Break when memory address has changed

查看:91
本文介绍了Visual Studio 2010:内存地址发生变化时中断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我正在使用visual studio 2010进行调试。

用C编程

我想要在内存地址发生变化时中断。这意味着,我有一个内存地址,可以在代码中的数百个位置进行更改。我希望在实际更改时找到代码中的位置。我怎么能这样做?



谢谢

Hello,

I am debugging using visual studio 2010.
Programming in C.
I want to break when a memory address has changed. It means, I have a memory address, which can be changed in hundreds of places in the code. I want to find the place in the code when it is actually changed. How can I do it?

Thanks

推荐答案

我想数据断点 [ ^ ]正是您要找的,但我从未使用它,所以我不喜欢知道它是如何工作的。
I guess the Data Breakpoint[^] is what you are looking for, but I never used it, so I don't know how it exactly works.


我不确定这是不是你想要的,但你可以使用观看功能 [ ^ ]检查变量何时发生变化。
I'm not sure if this is exactly what you want, but you can use the Watch feature[^] to check when a variable changes.


这篇关于Visual Studio 2010:内存地址发生变化时中断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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