我想把 PDBーー Python 调试器ーー添加到我的工具箱中?
Here's a list of resources to get started with the Python debugger:
Synopsis:
# epdb1.py -- experiment with the Python debugger, pdb import pdb a = "aaa" pdb.set_trace() b = "bbb" c = "ccc" final = a + b + c print final
现在运行你的脚本:
$ python epdb1.py (Pdb) p a 'aaa' (Pdb)