In [1]:
from IPython.core.debugger import Tracer; debug_here = Tracer()

In [2]:
xxx = [1,2,3,4,5,6]
yyy = [6,5,4,3,2,1]
debug_here()
xyx = zip(xxx,yyy)
xyx


--Return--
None
> <ipython-input-2-d45d89691928>(3)<module>()
      1 xxx = [1,2,3,4,5,6]
      2 yyy = [6,5,4,3,2,1]
----> 3 debug_here()
      4 xyx = zip(xxx,yyy)
      5 xyx

ipdb> dir()
['In', 'Out', 'Tracer', '_', '__', '___', '__builtin__', '__builtins__', '__doc__', '__name__', '__package__', '__return__', '_dh', '_i', '_i1', '_i2', '_ih', '_ii', '_iii', '_oh', '_sh', 'debug_here', 'exit', 'get_ipython', 'quit', 'xxx', 'yyy']
ipdb> xxx
[1, 2, 3, 4, 5, 6]
ipdb> yyy
[6, 5, 4, 3, 2, 1]
ipdb> c
Out[2]:
[(1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1)]

In [ ]: