2

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.

Yik
  • 515
  • 1
  • 5
  • 16