Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install vimpdbhook

How to install vimpdbhook

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install vimpdbhook
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
0.2 Available View build log
Linux (32-bit)
Linux (64-bit)
 
License
BSD
Dependencies
Imports
Lastest release
version 0.2 on Jan 5th, 2011

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.

Features

  • Activates MacVIM, uses new tab to open debugged file
  • reuses existing MacVIM instance
  • after loading the file, the terminal program is activated

System Message: WARNING/2 (<string>, line 14)

Bullet list ends without a blank line; unexpected unindent.

(given focus) to allow for rodent-free debugging. - The focus-switching is done using appscript which is a python package for AppleScript.

Dependencies

  • Mac OS X (duh)
  • MacVim (or another gui-enabled VIM which understands the

System Message: WARNING/2 (<string>, line 23)

Bullet list ends without a blank line; unexpected unindent.

VIM server commands -- currently only MacVIM)

Usage

  • install this package

  • put something like this in your ~/.pdbrc:

    System Message: WARNING/2 (<string>, line 31)

    Literal block expected; none found.

# 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

System Message: WARNING/2 (<string>, line 37)

Bullet list ends without a blank line; unexpected unindent.

utility for firing up macVIM using the terminal.

  • Currently, I assume that you use "iTerm" and use a variant of mvim

System Message: WARNING/2 (<string>, line 40)

Bullet list ends without a blank line; unexpected unindent.

called vimpdb (that's my setup). Please see below.

Tweaking

The package uses the environment to fetch the name of the terminal app and the MacVIM launch script

VIMPDBHOOK_MVIM_SCRIPT Set this to your mvim script. default: vimpdb

VIMPDBHOOK_TERMINAL_APP Set this to the name of the terminal application. default: iTerm

Download

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.