debugging python script in ipython
来源:互联网 发布:windows系统恢复选项 编辑:程序博客网 时间:2024/05/22 07:07
ipython doesn't work with built-in pdb debugger. While I tried to debug a python script with "run -d script.py" within ipython shell, I got bellow error:
To debug script in ipython, we need to use a different debugger, pydb, for example. There are only three steps to setup and use it.
Because pydb use the same set of commands with gdb, it's fairly straightforward to get start with it if you have done some debugging in gdb. This is one reason why I pick it as my debugger.
Reference:
Introducing the pydb Debugger
Debugging in Python
AttributeError: Pdb instance has no attribute 'curframe'
To debug script in ipython, we need to use a different debugger, pydb, for example. There are only three steps to setup and use it.
- download and install pydb.
- start ipython with -pydb argument: ipython -pydb
- start debugging with: run -d script.py
KeyError: 'HOME'
It can be solved by adding HOME environment variable.Because pydb use the same set of commands with gdb, it's fairly straightforward to get start with it if you have done some debugging in gdb. This is one reason why I pick it as my debugger.
Reference:
Introducing the pydb Debugger
Debugging in Python
- debugging python script in ipython
- debug python in ipython
- Debugging Python in VIM
- Debugging in Python
- [debug] debugging in python with pdb
- Python----ipython
- use python in vim script of ~/.vimrc
- Debugging in .NET
- Debugging in .NET[转]
- Javascript debugging in IE6
- Debugging in .NET
- Python学习之IPython/IPython notebook篇
- Python之IPython
- Python---ipython特性
- python,ipython,wxPython安装
- python ipython 包
- windows 装 python ipython
- python第一步:安装ipython
- MFC窗口系统下的OSG简单框架
- DWR的学习笔记....坚持更新
- 2010 英特尔® 线程挑战赛—Hosoya指数
- 】【又写了个 JavaScript 小游戏】
- openoffice exports better pdf than word
- debugging python script in ipython
- install ipython and readline on mac
- use ffmpeg to setup streaming server on android
- invisible directshow render window
- logging with osip
- sip elements lifecycle
- capture network traffic on windows ce
- use googletest on windows ce
- describe intention directly before ask a question