Step Over advances the debugger to the next line in the current function. When that line calls another function, it runs the called function to completion without opening it line by line. In VS Code, press F10 or choose Step Over from the debug toolbar. section 8.2.2
Tracing a counting bug
Set a breakpoint in a function such as count_words, start debugging, and click Step Over to watch execution move from count = 0 to the loop and conditional. Inspect variables after each step to see whether count changes as expected. The same technique exposes a bug in most_students: stepping through the classroom rows shows count reaching 4, then the loop ending before max_count is updated. section 8.2.2 section 8.5
Listing 8.4 Incorrect count_words function for debugging
def count_words(words):
count = 0
for word in words:
if "dan" in word.lower():
count += 1
return count
words = ["Dan", "danger", "Leo"] #1
print(count_words(words)) #1
Inspect the incorrect count_words function used to practice breakpoints, stepping, and variable observation. section 8.2.2

