Python 调试 import pdb s = '0' n = int(s) pdb.set_trace() # stop here print(10 / n) 运行之后输入 p n 表示查看n此时的值 在命令行输入c继续运行 输入q结束调试