I want to debug the whole flow of a (Java) program. I see there are several options for stepping through my program. What is the difference between step into and step over?
This question is related to
debugging
Step Into The next expression on the currently-selected line to be executed is invoked, and execution suspends at the next executable line in the method that is invoked.
Step Over The currently-selected line is executed and suspends on the next executable line.
step into will dig into method calls
step over will just execute the line and go to the next one
You can't go through the details of the method by using the step over. If you want to skip the current line, you can use step over, then you only need to press the F6 for only once to move to the next line. And if you think there's someting wrong within the method, use F5 to examine the details.
When debugging lines of code, here are the usual scenarios:
Eclipse has other advanced debugging features, but these are the basic fundamentals.
Source: Stackoverflow.com