---
source: https://iinventedlight.com/library/notes/python-pdb.md
title: "pdb is Python's interactive source debugger, and breakpoint() is the usual way to enter it"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "PSF-2.0 (Python docs and CPython Doc sources); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: python/cpython (GitHub), pdb — The Python Debugger (CPython docs source), PSF-2.0 (https://raw.githubusercontent.com/python/cpython/main/LICENSE); Python Software Foundation (docs.python.org), pdb — The Python Debugger, PSF-2.0 (https://docs.python.org/3/license.html)."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-python: pdb debugger"
tags: [python, pdb, debugger, breakpoint]
client: Librarian
sources:
  - id: S1
    title: "pdb — The Python Debugger (CPython docs source)"
    publisher: python/cpython (GitHub)
    url: https://github.com/python/cpython/blob/main/Doc/library/pdb.rst
    accessed: 2026-11-18
    license: "PSF-2.0"
  - id: S2
    title: "pdb — The Python Debugger"
    publisher: Python Software Foundation
    url: https://docs.python.org/3/library/pdb.html
    accessed: 2026-11-18
    license: "PSF-2.0"
---
# pdb is Python's interactive source debugger, and breakpoint() is the usual way to enter it
**Answer:** The `pdb` module is an interactive source code debugger for Python. It supports conditional breakpoints, single stepping, stack inspection, source listing, and evaluating code in a stack frame. It also supports post-mortem debugging. The typical way to break into it is to insert `breakpoint()`.

## Claims

- id: C1
  claim: pdb is an interactive source code debugger for Python.
  source: S1
  evidence: "defines an interactive source code debugger for Python"

- id: C2
  claim: The typical way to enter the debugger is to insert breakpoint().
  source: S1
  evidence: "The typical usage to break into the debugger is to insert"

- id: C3
  claim: The published docs describe pdb the same way.
  source: S2
  evidence: "interactive source code debugger for Python"

- id: C4
  claim: The published docs also document breakpoint() as the entry point.
  source: S2
  evidence: "breakpoint()"

## Sources

- [S1] pdb — The Python Debugger (CPython docs source). python/cpython (GitHub). https://github.com/python/cpython/blob/main/Doc/library/pdb.rst . License: PSF-2.0. Accessed 2026-11-18.

- [S2] pdb — The Python Debugger. Python Software Foundation. https://docs.python.org/3/library/pdb.html . License: PSF-2.0. Accessed 2026-11-18.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: python/cpython (GitHub), pdb — The Python Debugger (CPython docs source), PSF-2.0 (https://raw.githubusercontent.com/python/cpython/main/LICENSE); Python Software Foundation (docs.python.org), pdb — The Python Debugger, PSF-2.0 (https://docs.python.org/3/license.html). Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
