branches with status:
Name Status Last Modified Last Commit
lp:~pivanov/ipython/devel 1 Development 2009-05-13 00:08:49 UTC
1175. Improved Vim integration (running a v...

Author: Paul Ivanov
Revision Date: 2009-05-13 00:08:49 UTC

Improved Vim integration (running a visual selection in ipython, setting breakpoints, etc)

F5 : still does a %run as before
Shift-F5 : sends current line to IPython
Ctrl-F5 : toggle weather to auto-run current file on every write (was F7)
F6 : add a breakpoint at current line
Shift-F6 : remove the breakpoint at current line
Ctrl-F6 : toggle %pdb on and off
F7 : run the current file through pdb (stopping at the breakpoints)
Shift-F7 : clear ALL breakpoints
F9 : sends the current visual selection to IPython
Shift-F9 : toggle reselecting the visual selection after sending it

Note that, as of write now - before you can do any of the debugging stuff, you
need to have invoked pdb at least once, so do something like a 1/0 to start it.
Otherwise, you'll get stuff like:
    AttributeError: 'NoneType' object has no attribute 'set_break'
    AttributeError: 'NoneType' object has no attribute 'run'

This is because I'm accessing pdb using __IP.InteractiveTB.pdb, which only gets
set after a debug call is made.

11 of 1 result