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 pdbtextmatesupport

How to install PdbTextMateSupport

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

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:

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

Literal block expected; none found.

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.

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:4

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.