Skip to main content
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.

Release files for PdbTextMateSupport2 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PdbTextMateSupport2 0.5
File Size Uploaded
PdbTextMateSupport2-0.5.tar.gz 2.7 kB Details

Release files / PdbTextMateSupport2-0.5.tar.gz

Download URL PdbTextMateSupport2-0.5.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a3efb25e4f0a0508bd7b2b0c5c137c45417db6153e97378342d1a585a302be52
BLAKE2b-256 checksum
How to use checksums
6267b2cdddd1b3330b2cfccb4fbba310b38828b376ace42e9347a054d9df5b12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5 This release

1 release file

0.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page