In this section we illustrate some of the ways you can step through code in the debugger.
Following the previous section, the debugger should have stopped execution of JDBCExamples.Query() at the first statement in the method:
Here are some example steps you can try:
Step to the next line Choose Run > Step Over, or press F7 to step to the next line in the current method. Try this two or three times.
Run to a selected line Select the following line using the mouse, and choose Run > Run To Selected, or press F6 to run to that line and break:
max_price = price;
The red arrow moves to the line.
Set a breakpoint and execute to it Select the following line (line 292) and press F9 to set a breakpoint on that line:
return max_price;
An asterisk appears in the left hand column to mark the breakpoint. Press F5 to execute to that breakpoint.
Experiment Try different methods of stepping through the code. End with F5 to complete the execution.
When you have completed the execution, the Interactive SQL Data window displays the value 24.
The complete set of options for stepping through source code are displayed on the Run menu. You can find more information in the debugger online Help.