Breakpoint

noun

say it: “BRAYK-point” /ˈbreɪkˌpɔɪnt/

A mark you put on a line of code so the debugger pauses the program right before that line runs.

What is a breakpoint?

A breakpoint is a mark on a line that tells the debugger to pause before that line runs. In VS Code you click left of the line number to add the red dot; in code, breakpoint() does the same.

def parking_fee(hours):
    fee = hours * 3.50
    return fee   # a breakpoint here pauses before the return, with fee to look at

In a sentence

  • “She put a breakpoint on the return line to check the fee.”
  • “The program stopped at the breakpoint and showed that hours was the text '2', not the number.”

Level: Apprentice · More Python terms at this level

Updated

In other subjects