A PDB hook for MacVIM
Using this package one can enable a hook in the python pdb such that the current file is automagically opened in MacVim and the line is highlighted.
appscriptwhich is a python package for AppleScript.
install this package
put something like this in your
# save this in .pdbrc in your home directory from vimpdbhook import preloop, precmd pdb.Pdb.preloop = preloop pdb.Pdb.precmd = precmd
make sure that you have also installed the
mvim command line
utility for firing up macVIM using the terminal.
Currently, I assume that you use “iTerm” and use a variant of
vimpdb (that’s my setup). Please see below.
The package uses the environment to fetch the name of the terminal app and the MacVIM launch script