pdb — The Python Debugger(Python调试器)
来源:互联网 发布:姚明新秀数据 编辑:程序博客网 时间:2024/05/17 04:22
在Spyder中进行python开发时,调试是必不可少的。它主要依赖了pdb模块,pdb模块为Python开发者提供一个交互式的代码调试器。
发现该调试器和gdb有很多相似之处,这里罗列出几条常用的调试命令。
With a lineno argument, set a break there in the current file. With afunction argument, set a break at the first executable statement within that function. The line number may be prefixed with a filename and a colon, to specify a breakpoint in another file (probably one that hasn’t been loaded yet). The file is searched onsys.path. Note that each breakpoint is assigned a number to which all the other breakpoint commands refer.
If a second argument is present, it is an expression which must evaluate to true before the breakpoint is honored.
Without argument, list all breaks, including for each breakpoint, the number of times that breakpoint has been hit, the current ignore count, and the associated condition if any.
Continue execution until the line with the line number greater than the current one is reached or when returning from current frame.
New in version 2.6.
Restart the debugged Python program. If an argument is supplied, it is split with “shlex” and the result is used as the new sys.argv. History, breakpoints, actions and debugger options are preserved. “restart” is an alias for “run”.
New in version 2.6.
Quit from the debugger. The program being executed is aborted.
和gdb类似的是,pdb状态下连续回车,则重复执行最近的一次debug命令
- pdb — The Python Debugger(Python调试器)
- 使用PDB(The Python Debugger)命令行调试Python代码
- pdb — The Python Debugger
- pdb — The Python Debugger
- The python debugger调试(PDB)的简介
- pdb: Using the Python debugger in Django
- Python 调试器debugger
- python pdb 调试器
- python调试器pdb
- Notes on Python Debugger pdb
- Python——pdb调试
- python编程(pdb调试)
- 使用Python调试器pdb调试程序(mac)
- python pdb 基础调试
- Python pdb基础调试
- pdb 调试python
- Python 调试 PDB
- 调试python程序---pdb
- JavaScript中判断对象类型的几种方法
- 总结:使用IoMarkPending的原因及原理
- MVC界面点击下载进行下载JSON文件
- Mastering Markdown
- 产生随机数
- pdb — The Python Debugger(Python调试器)
- 服务器端 文件上传模版代码
- Caldroid日历控件的使用
- 网络爬虫-通过百度百科查询行政区划代码
- 华为路由器查看DHCP地址池ip使用状态
- html标签/分类/特点
- ReactJS编写的树形表格
- Kblack loves flag hdu
- Unity 通过 Secondary Maps + UV Set 动态修改UV