pdb && cProfile pdb https://docs.python.org/zh cn/3.7/library/pdb.html module pdb 使用方式 1、在命令行下直接运行调试 bash python m pdb test.py 2、在需要被调试的代码中添加 im 2019-07-28 更新于 2022-11-06 Python