Debugger

noun

say it: “dee-BUG-er” /diˈbʌɡər/

A tool that runs a program and lets you pause it, go one line at a time and see each variable's value as it changes.

What is a debugger?

A debugger runs your program and pauses it where you choose, so you can run it one line at a time and see every variable's value. VS Code's Python extension has one: F5 starts it.

def order_total(prices):
    total = 0
    for price in prices:
        total += price   # pause here and watch total grow
    return total

In a sentence

  • “He started the debugger with F5 and found the line where the fee doubled.”
  • “In the debugger she watched total change on each pass of the loop.”

Level: Apprentice · More Python terms at this level

Updated

In other subjects