Yifei Kong

Nov 27, 2017

pdb

常用命令

  • [n]ext 下一步
  • [s]tep into 进入函数
  • [r]eturn 跳出函数
  • [b]reakpoint 打断点

pdb

pdb is fine, just don’t have so many features

Usage: import pdb; pdb.set_trace()

Ipdb is better

Usage: import ipdb; ipdb.set_trace() n next p print pp pprint s setp into c continue to next breakpoint b breakpoint a args