skip to navigation
skip to content

Not Logged In

PdbTextMateSupport 0.3

Display source code in TextMate while debugging with pdb.

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.

 
File Type Py Version Uploaded on Size
PdbTextMateSupport-0.3-py2.4.egg (md5, pgp) Python Egg 2.4 2007-02-18 3KB
PdbTextMateSupport-0.3.tar.gz (md5, pgp) Source 2007-02-18 2KB
  • Downloads (All Versions):
  • 19 downloads in the last day
  • 115 downloads in the last week
  • 625 downloads in the last month