Display source code in BBEdit while debugging in pdb
Project description
- This module is used to hook up pdb, the python debugger, with BBEdit, a
text editor for Mac OS X, enabling it to display the debugged source code during a pdb session.
After downloading and unpacking the package, you should install the helper module using:
$ python setup.py install
Next you need to hook up pdb with this module by add the following to your .pdbrc:
from PdbBBEditSupport import preloop, precmd pdb.Pdb.preloop = preloop pdb.Pdb.precmd = precmd
The easiest way to do this is to use the provided script:
$ pdbbbsupport enable
Alternatively you can also do it manually. The .pdbrc is located in your home folder and possibly needs to be created first. You may also use the supplied sample configuration file for pdb to enable the hook like:
$ cp pdbrc.sample ~/.pdbrc
Afterwards BBEdit should get started automatically whenever you enter a debug session. The current source line will be displayed simultaneously while stepping through the code. However, having the cursor moved automatically within that source file is not always very obvious, so you might want to use the “Highlight insertion point: Line color” feature, which can be enabled in the “Text Colors” tab in BBEdit’s preferences.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file PdbBBEditSupport-1.0.tar.gz
.
File metadata
- Download URL: PdbBBEditSupport-1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0d11039843954d573f7bbb8609c91d319e320a9a4b4793baa3bd652c7d1c662 |
|
MD5 | e1ec9b56626dcc998a8c07ed9af07a71 |
|
BLAKE2b-256 | 2bc46b63e9013418a14dadf78a974bbbd7a4179b4dd01b9c56a029fb2b060e4c |