# pdbbbeditsupport

Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

# PdbBBEditSupport 1.0

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.

$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.

Updated for BBEdit by Matthew Schinckel <matt@schinckel.net>

Original author of TextMate version:

Andreas Zeidler, az@zitc.de, 2007/02/18

# Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.