MacVIM pdb hook
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 (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 VIM server commands – currently only MacVIM)
Usage
install this package
put something like this in your ~/.pdbrc:
# 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 mvim 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
Links
Download
Metadata
Release files for vimpdbhook 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vimpdbhook-0.2.tar.gz | 2.6 kB | Without provenance | Details for vimpdbhook-0.2.tar.gz |
Release files / vimpdbhook-0.2.tar.gz
| Download URL | vimpdbhook-0.2.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f4e60f5366fe080bfa7a484851974ee357367ab7cfd3b442110805261b36e28
|
|
BLAKE2b-256 checksum How to use checksums |
99383dd89a1a54e0482853b8962659fcebe5129594c02e038f9fe78310048ebc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for vimpdbhook 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.