I am debugging my application in Eclipse. Finally I reached a breakpoint in a state which will trigger the bug in the next line of code.
Due to a breaking change in the class, the most likely solution would be to remove that line of code.
Of course I could do that now: remove the line, recompile and reproduce the sitatuation again. However, since it is hard to reproduce the bug, can I simply skip the execution of that line of code now? E.g. can I set the "instruction pointer" in Eclipse?
Things I did:
- I don't want
F6
(Step Over), since that will execute the line. - Also "Run to cursor" is not what I want, since that will also execute the problematic line.
- Comment out the code according to How to modify Java code during debugging, but that re-executed the method, thus changing the state
- I have tried to find an answer on this question, but I don't only want to run a single line of code but all the rest.
- This question only has answers which run code in between.
- The drop to frame feature is also not helpful.
The linked questions are from 2009 to 2013, so I hope to get new answers.
I'm using Eclipse 4.5.1 (Mars.1), latest official version at the time of asking.