Debugger does not follow program flow


I've encountered a strange behaviour (or at least unusual for me) of the debugger. In the attached example code, the debugger seems to be unable to follow the program's execution flow. As seen in the attached image, looking at the next step of exection it looks like the function should return, but instead it jumps back to the outer for-loop (which, of course, is expected behavior of the code). In other words, the program works as expected, but the debugger shows a different flow. This makes debugging more complex code a lot more difficult.

If you look at the attached image, would you not say that the number 2 should have been written to the console? Or is this normal IDEA behavior? In Eclipse 3.4.1 it works as I want it to.

Please tell me if you need more information, or a better explanation :)



Please sign in to leave a comment.