Break on a file and line number from within the debugger.
Section: Breakpoints and pdb
Set a breakpoint in pdb
text
text
b app.py:42Learn 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
Insert a built-in breakpoint
Pause execution and enter the configured debugger.
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.