Stepping Over a Method

The Step Over command, like Step Into, enables you to execute program statements one at a time. However, if you issue the Step Over command when the execution point is located on a method call, the debugger runs that method without stopping (instead of stepping into it), then positions the red_arrow execution point on the statement that follows the method call.

If the execution point is located on the last statement of a method, choosing Step Over causes the debugger to return from the method, placing the execution point on the line of code that follows the call to the method you are returning from.

You can step over a method in any of the following ways:

Unlike previous releases of JDeveloper, you cannot start debugging by pressing the step_over Step Over button. Step over will only cause stepping on an already-started debugging process.

See Setting the Debugger Start Options to set how you want the debugger to run when executed. When you set it to start by stepping over, the debugger will let the program you are debugging execute until a method in a tracing-enabled class is reached, but it will not stop in class static initializer method.

As you debug, you can step into some methods and step over others. If you are confident that a method is working properly, you can step over calls to that method, knowing that the method call will not cause an error. If you aren't sure that a method is well behaved, step into the method and check whether it is working properly.


Stepping Into a Method
Controlling Which Classes are Traced Into
Running and Pausing the Debugger
Moving Through Code While Debugging