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?
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?
Method of Communicating with a Debugger
(Or, how I explain my road trip to my grandmother)
Step Into: "When the next statement to execute reaches a method call, dont execute the method as a whole, but rather, execute the first line of that method and stop"
Step Over: "When the next statement to execute reaches a method call, execute the method as a whole and stop"
Step Out: "Finish off executing the callee's code and stop when execution returns to the caller"
Continue: "Execute up until the next breakpoint"
Here is a great example to practically demonstrate the concepts above: