python3 -m pdb script.py

Category: Python & pip

python3 -m pdb script.py

Run script under the Python debugger (pdb)

Runs a script under pdb, Python's built-in debugger. Lets you step through code line by line.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.