Dar*_*zer 24 python debugging breakpoints pdb
你将什么插入到Python源代码中以使其进入pdb(当执行到达那个位置时)?
Dar*_*zer 37
import pdb; pdb.set_trace()
有关此更多有用的提示,请参阅Python:在初学者调试器中编码.
Ada*_*ter 8
从 Python 3.7 开始,您可以使用breakpoint()- https://docs.python.org/3/library/functions.html#breakpoint
breakpoint()
归档时间:
17 年,8 月 前
查看次数:
8459 次
最近记录:
11 年,2 月 前