Skip to main content

Display source code in TextMate while debugging with pdb.

Project description

This module is used to hook up pdb, the python debugger, with TextMate, an

advanced text and programming editor for Mac OS, 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 PdbTextMateSupport import preloop, precmd
pdb.Pdb.preloop = preloop
pdb.Pdb.precmd = precmd

The easiest way to do this is to use the provided script:

$ pdbtmsupport 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 TextMate 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 current line” feature, which can be enabled in the “General” tab in TextMate’s preferences.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PdbTextMateSupport-0.2.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

PdbTextMateSupport-0.2.1-py2.4.egg (3.3 kB view details)

Uploaded Source

File details

Details for the file PdbTextMateSupport-0.2.1.tar.gz.

File metadata

File hashes

Hashes for PdbTextMateSupport-0.2.1.tar.gz
Algorithm Hash digest
SHA256 8b72194f5a4c773ce4a0de586b8db3e1b045a63697f4e75ac8b2da06220f4432
MD5 1bf85ef3f19fe5bbffbeb46dd80578d3
BLAKE2b-256 cfeafe868b22095a8aa67cc2532a4266a88ac31505118d9e2eeb84da165f93fd

See more details on using hashes here.

File details

Details for the file PdbTextMateSupport-0.2.1-py2.4.egg.

File metadata

File hashes

Hashes for PdbTextMateSupport-0.2.1-py2.4.egg
Algorithm Hash digest
SHA256 79a066122ed42aff1cb9a3a1c05231338add15d295e657dd8047a73addce0458
MD5 ea2f7f8d8fd8727479a11ab98f7654ae
BLAKE2b-256 11c2dc4ebe934def57c8c3aa6f42d980b1da784ed636cd6ee0063c583444f443

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page