On this page
  1. breakpoint
  2. Import & Availability
  3. Overview & Signature
  4. Usage
  5. Gotchas
  6. REPL Inspect

breakpoint

Prev: bool | Up: __builtins__ | Next: bytearray
Rel: compile, eval, exec, globals, input
Ref: docs.python.org — breakpoint
Tags: #public #python3 #builtins


Import & Availability

# Built-in (available globally without import)
from builtins import breakpoint

Overview & Signature

breakpoint(*args, **kws)

Call sys.breakpointhook(*args, **kws). sys.breakpointhook() must accept whatever arguments are passed.

Usage

import sys

# Calls sys.breakpointhook() -> drops into pdb unless PYTHONBREAKPOINT=0
assert callable(breakpoint) and callable(sys.breakpointhook)

Gotchas

REPL Inspect

help(breakpoint)

Linked from

Related notes