liveBook · Manning

Step Over

As explained in Troubleshooting Java, Second Edition

Step over is a debugger navigation operation that executes the next execution line without entering a method called from the current line.

Step over is a debugger operation that continues execution to the next execution line without entering a called method. It normally keeps you in the same method and lets you inspect how values change. section 2.2.2

Use step over to investigate code while keeping the execution path manageable:

  • Pause at a breakpoint, step over the current line, and inspect variables in scope. section 2.2.2
  • Prefer it before step into, because entering methods opens additional investigation plans and increases complexity. section 2.4
  • Treat the next execution line as runtime behavior rather than simply the following source line; exceptions can redirect execution. section 2.2.2

Inspecting a computed value

Given `var digits = new StringDigitExtractor(s).extractDigits();`, step over the line and pause afterward. The initialized `digits` value can reveal what the instruction did without entering `extractDigits()`. Enter the method only when that observation is insufficient. section 2.2.2

Figure 2.12 The navigation operations help you walk through the app logic in a controlled way to identify how the code works. To navigate through code, you can use the buttons on the IDE’s GUI or use the keyboard shortcuts associated with these operations.

The navigation diagram connects step over with the debugger’s GUI controls and keyboard shortcuts. section 2.2.2

How Troubleshooting Java, Second Edition covers it

How deep it goes
Explains execution behavior, investigation-plan complexity, variables, stack effects, and exception control flow.
Examples
Demonstrates a StringDigitExtractor call, the resulting digits variable, GUI controls, shortcuts, and exception redirection.
What it assumes
Assumes basic source-code reading and teaches breakpoint placement, navigation operations, and runtime observation.
What you can do after
Diagnose/debug with a debugger by stepping through lines, inspecting values, and deciding when deeper navigation is necessary.
How it connects
Connects breakpoints, debuggers, step into, step out, execution stack traces, and variable scope.

Also explained in

Compare how 2 books explain Step Over →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Troubleshooting Java, Second Edition. The section links point to the parts of the book it draws on.