# Debugger (pdb)

say it: **“dee-BUG-er”** **/diːˈbʌɡər/** or **“PEE-DEE-BEE”** **/ˌpiˌdiˈbi/**

A tool that pauses your program so you can inspect it line by line.

## What is a **debugger**?

A **debugger** pauses your program at a line you choose so you can look at the variables and step through the code one line at a time. Python's is called `pdb`.

```python
def checkout(cart):
    total = sum(cart)
    breakpoint()      # pauses here: type p total, then c to continue
    return total * 1.07
```

Level: Journeyman · [More Python terms at this level](https://www.ask-codey.com/glossary?category=python&level=3)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/debugger-pdb
