I’m working on Eclipse on Ubuntu 12.04. I have a huge project with multiple files and classes. One member variable of a class is set to wrongly to zero somewhere during run time and I don’t know when that happens.
I would like to be able to set a breakpoint programmatically to break once say x is set to zero during runtime.
How can I do that please?
Thank you.
You can use breakpoint conditions for that.
Right click on the break point and set a condition in its property window. You can set a condition like
See this article for detailed instructions.
Edit
Change all your occurances of your member valriable from
to
and set in that setter method a breakpoint.