查看完整文档:help pdb
查看某条命令的文档:help <command>
重跑一遍:restart
设断点:b <filename>:<LineNumber>
显示所有断点:b(reak)
删除断点: clear <bpnumber>
设置条件断点:condition <bpnumber> [condition]
disable某断点: disable <bpnumber>
Step over(next, 执行一行代码,不step into子函数): n
Continue: c
Step into: s
Step out(运行至return处): return
查看当前位置的代码:l (连续几次,可每次往后看一截)
查看第n行代码附近的:l <n>
显示当前函数所有代码:ll
查看当前callstack: bt 或者w(here)
进入上一帧callstack:up
进入下一帧callstack: down
运行python命令: 例如 !test='world' 将会把test变量的值设置为world
Powerful的功能:
断点hit后执行一些命令:commands <bpnumber>
跳转至某行处:j(ump) <lineno>
查看retur value: retval
查看当前函数参数列表:a(rgs)
查看指定对象的源代码: source expression
?: display [expression]