Python trepan
From wikinotes
trepan (formerly pydbgr, and before that pydb) is an extension of the python pdb module that introduces some features from gdb.
Generally I like trepan far more than pdb/ipdb except that I miss autocompletion.
Install
## install sudo pip2 install trepan ## ipython-compatibility install cd $HOME/.ipython/profile_default/startup wget https://raw.github.com/rocky/ipython-trepan/master/trepanmagic.py
Usage
IPython
%trepan run test.py ## trepan in ipythonTerminal
trepan2 test.py trepan2 --trace -- test.py 'a' 'b' ## Separate trepan options from pythonScript options ## using '--' (like xorg)Run Inside Script
from trepan.api import debug debug()