Step Over
What is Step Over?
Step Over: Run the current line and stop on the next one, without descending into function calls. Step Over runs the current line, including any functions it calls, and stops at the next line in the same function. In VS Code it is F10; in JetBrains IDEs, F8. It is the most used debugging step. You move through your code line by line, watching variables change, without diving into every function call along the way.
Frequently asked questions about Step Over
What should you keep in mind with Step Over?
Use it to find the line where something goes wrong: step until a variable has an unexpected value, then step into that call on the next run. If you step over a line and the program suddenly ends or throws an exception, the problem is inside that call. Breakpoints with conditions save a lot of stepping when the interesting moment only happens on, say, the 500th loop iteration.
At a glance
| Category | Keyboard shortcuts |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |