如何在Eclipse中设置内存断点 [英] How to set memory breakpoint in Eclipse

查看:366
本文介绍了如何在Eclipse中设置内存断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人可以告诉我如何在Eclipse(C ++)中设置内存断点?

Could anyone tell me how to set memory breakpoint in Eclipse (C++)?

例如:

int a = 0;
for(int i = 0; i < 100; i++)
{
  if(i == 50) a = 50;

}

我想检测a新值。

我知道在Visual Studio中,我们应该通过获取 a & a )。在Eclipse中有同等的方式吗?

I know in Visual Studio we should set memory break point by getting the address of a (i.e. &a). Is there an equivalent way in Eclipse?

我们非常感谢您的帮助。感谢。

Your help would be highly appreciated. Thanks.

推荐答案

也许这有助于:
http://www.linuxtopia.org/online_books/eclipse_documentation/ eclipse_c_c ++ _ guide / topic / org.eclipse.cdt.doc.user / tasks / eclipse_c_c ++ _ guide_cdt_t_add_watch.htm

这篇关于如何在Eclipse中设置内存断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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