pbd debug模块使用方法 (可以带参数调试

设置断点:
pdb.set_trace()
进入debug mode
python -m pdb main.py --args
debug mode下

       (pbd)c    #continue debug
       (pbd)step #next step
       (pbd)exit #exit pbd mode
原文地址:https://www.cnblogs.com/ashyLoveLoli/p/15346260.html