摘要:
在交互环境中通常使用pdb.run来调试:import pdbdef pdb_test(arg): for i in range(arg): print(i) return argpdb.run("pdb_test(3)")b 函数名、行号: 打断点,b可以查询所有的断点。(Pdb) b pdb_testBreakpoint 1 at c:\users\plpcc\desktop\pdbtest.py:3(Pdb) bNum Type Disp Enb Where1 breakpoint keep yes at c:\users\plp... 阅读全文