As we step , we see that the main method is constructing a TestMe instance. Each step takes us through the constructor and finally back into the main method. The locals command lists all of the local variables visible in the current stack. By using step , we can get inside any of the methods to see what is going on. Of course, when we step , we won't always want to trace into each method we encounter.
Some method calls can nest very deeply.
If we were forced to trace through an entire hierarchy, we might never finish. The stepi command executes the current instruction. The step up call executes until the current method returns to its caller. Simply put, this stepper executes a method and nothing else. However, that's all that will happen.