In my case, I edited my code during debugging, adding a zero check so that I could place a breakpoint to stop execution only when a certain value was zero. I could not add a breakpoint because the line of code in question was not present in the running application.
In Java, some code changes can be woven as soon as the file is saved, so in my case, remembering to save the changes was enough to place a breakpoint.
For changes that cannot be woven, the application must be restarted before new lines of code appear.
Theodore Murdock Aug 01 '14 at 10:54
source share