一、使用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), 浏览源码有很好的表现

教程

最新文章

  1. mysql中insert into select from的使用
  2. xml读写文件实例
  3. mysql 选择性高
  4. Huge CSV and XML Files in Python, Error: field larger than field limit (131072)
  5. HTML 页面加载动画效果
  6. IOS、java支持DES加密
  7. c语言中逗号运算符和逗号表达式
  8. es6笔记5^_^set、map、iterator
  9. 在C语言中以编程的方式获取函数名
  10. JDBC连接最新版Mysql数据库url设置
  11. async ,await 有图有真相
  12. BZOJ3230 相似子串 字符串 SA ST表
  13. Behavior Question - Most challenging project.
  14. wifipineapple获取用户上网信息
  15. django的request介绍和APIView流程分析和CBV的流程分析
  16. [整理]Win下好用的Markdown工具
  17. selenium python 启动Chrome
  18. 2.7 usb摄像头之usb摄像头描述符打印
  19. spring中action和url的对应关系
  20. maven3官网下载地址

热门文章

  1. Python之模块(一)
  2. case功能菜单选项
  3. HTML5 位运算符
  4. 定时器 setInterval(‘function()’, 2000)
  5. javaEncode
  6. UI5-文档-4.9-Component Configuration
  7. Ztree学习(-)简单例子
  8. DB分布式 跨库分页
  9. win10 ubuntu双系统安装后无法引导进入ubuntu
  10. os.popen与os.system区别