https://docs.python.org/zh-cn/3.7/library/pdb.html#module-pdb
1
python -m pdb test.py
import pdb
pdb.set_trace()