How to set memory breakpoint in Eclipse

可紊 提交于 2019-12-11 01:16:37

问题


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

for example:

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

}

I want to detect the action when a is assigned to a new value.

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.


回答1:


maybe this helps: 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



来源:https://stackoverflow.com/questions/9814476/how-to-set-memory-breakpoint-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!