# Breakpoint

> A mark on a line. It tells the debugger to stop the program right there.

**Field:** Software Development  
**Category:** Editors & Tools

## Think of it like

Think of it like a bookmark that also stops the reader. When they reach that page, they pause and look around.

## Definition

A breakpoint is a mark on a line of code that tells the debugger to pause there. You usually set one by clicking next to the line number in your editor. When the program reaches that line, it stops before running it. Then you can look at the values and step on. Python also lets you write breakpoint() in the code itself.

## Example

Jack clicks beside line 42, where the total is worked out. He runs the app, and it pauses there with all values on show.

## Example code

```python
price = 10
breakpoint()   # the program pauses here
total = price * 2
```

The program stops at breakpoint() and hands control to the debugger.

## Why it matters

A breakpoint takes you straight to the line you care about. You skip the thousands of lines that work.

## Common mistake

Leaving a breakpoint() call in the code that goes live. The real app then freezes, waiting for a debugger.

## Three principles

- **Pause on a line.** The program stops before that line runs.
- **Set by a click.** Click next to the line number.
- **Take them out.** Never ship code that pauses itself.

## Related terms

- [Debugger](https://learn.benibix.com/term/development/debugger)
- [Debugging](https://learn.benibix.com/term/development/debugging)
- [Integrated Development Environment (IDE)](https://learn.benibix.com/term/development/ide)
- [Stack Trace](https://learn.benibix.com/term/development/stack-trace)

## Taught in

- [Debuggers and Breakpoints](https://learn.benibix.com/learn/development-tools/debuggers-and-breakpoints): Coding Tools, 5/13

---

Source: https://learn.benibix.com/term/development/breakpoint
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
