Step through source code

You can step through source code in the Java debugger in several ways. In this section we illustrate the different ways you can step through code using the serverMain( ) method.

When execution pauses at a line until you provide further instructions, we say that the execution breaks at the line. The line is a breakpoint. Stepping through code is a matter of setting explicit or implicit breakpoints in the code, and executing code to that breakpoint.

Following the previous section, the debugger should have stopped execution of JDBCExamples.serverMain( ) at the first statement: