python 调试方法
2024-10-18 19:57:39
一、使用pdb
二、使用gdb
需首先配置gdb pythin支持,步骤如下:
1、修改Python-2.6/Misc/gdbinit,将
while $_i < f->f_nlocals
修改为
while $_i < f->f_code->co_nlocals
2、在文件:~/.gdbinit中,加入如下内容
source Python-2.6/Misc/gdbinit
调试方法
gdb python
run true_false.py
三、使用ipdb
安装方法:
ipdb (easy_install ipdb) - 像 ipython (自动补齐, 颜色等)
四、使用pudb
安装方法:
pudb (easy_install pudb) - 基于curses (类gui), 浏览源码有很好的表现
教程
最新文章
- mysql中insert into select from的使用
- xml读写文件实例
- mysql 选择性高
- Huge CSV and XML Files in Python, Error: field larger than field limit (131072)
- HTML 页面加载动画效果
- IOS、java支持DES加密
- c语言中逗号运算符和逗号表达式
- es6笔记5^_^set、map、iterator
- 在C语言中以编程的方式获取函数名
- JDBC连接最新版Mysql数据库url设置
- async ,await 有图有真相
- BZOJ3230 相似子串 字符串 SA ST表
- Behavior Question - Most challenging project.
- wifipineapple获取用户上网信息
- django的request介绍和APIView流程分析和CBV的流程分析
- [整理]Win下好用的Markdown工具
- selenium python 启动Chrome
- 2.7 usb摄像头之usb摄像头描述符打印
- spring中action和url的对应关系
- maven3官网下载地址