I know that a variable value can be changed in the debug mode of Eclipse. But can I make that change happen every time a certain line is getting executed?
What I want to do is to make the change every time without manually having to do it.
I know that a variable value can be changed in the debug mode of
Share
If I got you right, I might have a solution that suits your needs here (or at least “might have suited”, for I must admit this thread is pretty old by now … ;-):
I had a similar issue this morning, detouring a “mailTo” (just a variable holding the recipients adress). I came to use a conditional breakpoint with the following condition:
You always hit the breakpoint because “42” (or whatever value 😉 will never be equal to the assignment on the right – which yet does the main-job here.
Its also possible to make it “really conditional” (if needed) by using
{real condition} && {fake condition}(because the fake is then depending on a preceding ‘true’)