import pdb;pdb_set_trace() #适合在项目中打断点调试 # https://www.jianshu.com/p/d3c5f79625f4
pysnooper #https://www.jianshu.com/p/57d51311aa63
import pdb import pysnooper @pysnooper.snoop() def add(x, y): k = 10 z = x + y for i in range(k): #pdb.set_trace() z += i return z def main(): x, y = 1, 2 # pdb.set_trace() z = add(x, y) print(z)