代码:
import pdb
def fun():
i = 100
pdb.set_trace()
if __name__ == '__main__':
fun()
输出:
$ python pdb_script.py
--Return--
> /home/h/CARDIO/WorkSpace/PDB/pdb_script.py(7)fun()->None
-> pdb.set_trace()
(Pdb) a
(Pdb) a
(Pdb)
不i
应该是争论吗?