Pdb Commands
来源:互联网 发布:沙钢网络管理学院 编辑:程序博客网 时间:2024/05/21 06:02
Startup and Help
python -m pdb <name>.py [args] begin the debugger
help [command] view a list of commands, or view help for a specific command
within a python file:
import pdb...pdb.set_trace() begin the debugger at this line when the file is runnormally
Navigating Code (within the Pdb interpreter)
l(ist) list 11 lines surrounding the current linew(here) display the file and line number of the current linen(ext) execute the current lines(tep) step into functions called at the current liner(eturn) execute until the current function’s return is encountered
Controlling Execution
b [#] create a breakpoint at line [#]b list breakpoints and their indicesc(ontinue) execute until a breakpoint is encounteredclear[#] clear breakpoint of index [#]
Changing Variables / Interacting with Code
p <name> print value of the variable <name>! <expr> execute the expression <expr> NOTE: this acts just like a python interpreterrun [args] restart the debugger with sys.argv arguments [args]q(uit) exit the debugger
z转自 http://web.stanford.edu/class/physics91si/2013/handouts/Pdb_Commands.pdf
0 0
- Pdb Commands
- pdb
- pdb
- pdb
- pdb
- commands
- Commands
- commands
- pdb python
- pdb Python
- mfcs42ud.pdb
- PDB 文件
- PDB 调试
- 调试&PDB
- PDB文件
- PDB错误
- Python--pdb
- PDB调试
- 启动、运行超快的Android模拟器 genymotion
- Avro RPC
- Android 组件系列之Activity的传值和回传值
- java自带线程池和队列详细讲解
- BAPI_GOODSMVT_CREATE
- Pdb Commands
- Difference between HashSet and HashMap in Java
- Matlab保存图像的方法
- 针对性的mysql 查询统计
- 栈模板
- NOIP难度 零件分组 stick 题解&代码
- 在Qt creator中选择了dark配色方案编写shell,某些命令为深紫色很难看清楚的解决方法
- 上传控件动态化2
- 一些优秀的项目