https://docs.python.org/3/library/pdb.html
https://zhuanlan.zhihu.com/p/37294138
l
ll
b
b lineno
b filename:lineno
b functionname
tbreak
tbreak lineno
tbreak filename:lineno
tbreak functionname
cl
cl filename:lineno
cl bpnumber [bpnumber ...]
p expression
s 执行下一行,进入函数体
n 执行下一行(不进入函数体)
r 直接执行到函数返回处
c 持续执行直到遇到断点
unt lineno 持续执行直到遇到指定行或者断点
j lineno 直接跳转指定行
a 打印当前函数参数
whatis expression 打印变量类型
interact 实时操作变量,ctrl+d
w打印堆栈信息
q退出
https://zhuanlan.zhihu.com/p/25942045
https://www.jianshu.com/p/fb5f791fcb18
https://www.jianshu.com/p/1c2212fc28a6
网友评论