In eclipse I am writing some code that crawls a specific webpage and downloads an applet, which it then adds to a JFrame and executes. If I run program without adding any breakpoints, it works perfectly. It loads the applet, and it begins running. However, if I add a breakpoint to the applets update(Graphics g) method, it simply stops refreshing. This is expected, obviously, but it never actually trips the breakpoint.
I know breakpoints are working in general with my setup, and in fact if I add a breakpoint to the paint(Graphics g)
method of the exact same applet, it will trip whenever you would expect it to.
The only thing that is slightly unconventional about this is that I don't have the source of the applet which I am displaying. Instead, I simply set a breakpoint on the method entry.
If I disable the breakpoint while the applet is running, it resumes painting, but if I enable it again, it won't always stop repainting.
I don't know if this could somehow be the expected behavior of eclipse/jvm, or if I have found a bug. If it is a bug, is it a bug in eclipse or the jvm?