Pause execution and enter the configured debugger.
Section: Breakpoints and pdb
Insert a built-in breakpoint
python
python
breakpoint()Explanation
Uses Python's built-in breakpoint hook. By default this opens pdb in interactive runs.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Breakpoints and pdb
Drop into pdb at a specific line
Classic explicit breakpoint using pdb.
Run a script with pdb and arguments
Pass normal program arguments when starting under pdb.