skip to navigation
skip to content

pdb-clone 1.9.2

A clone of pdb, fast and with the remote debugging and attach features.

Latest Version: 1.10

Features

  • Improve significantly pdb performance. With breakpoints, pdb-clone runs just below the speed of the interpreter while pdb runs 10 to 100 times slower than the interpreter, see Performances.
  • Extend pdb with remote debugging. A remote debugging session may be started when the program stops at a pdb.set_trace_remote() hard-coded breakpoint, or at any time and multiple times by attaching to the process main thread. This feature is implemented in the py3 and py2.7 versions of pdb-clone, see RemoteDebugging
  • Fix pdb long standing bugs entered in the python issue tracker, see the News.
  • Add a bdb comprehensive test suite (more than 70 tests) and run both pdb and bdb test suites.
  • Three versions of pdb-clone are supported:
    • The py3 version of pdb-clone runs on python3 from python 3.2 onward.
    • The py2.7 vesion runs on python 2.7.
    • The py2.4 version runs on all python versions from 2.4 to 2.7 included. In this version, the restart command only handles source code changes made to the main module.

The pdb command line interface remains unchanged except for the new detach and thread pdb commands. All the versions of pdb-clone implement the most recent python3 features of pdb, as defined in the python3 pdb documentation.

See also the README and the project home page.

Report bugs to the issue tracker.

Install

For example, to install the Python 3 version of pdb-clone version 1.9.2 with pip:

sudo pip install pdb-clone==1.9.2.py3

Usage

Invoke pdb-clone as a script to debug other scripts. For example:

$ pdb-clone myscript.py

Or use one of the different ways of running pdb described in the pdb documentation and replace:

import pdb

with:

from pdb_clone import pdb
 
File Type Py Version Uploaded on Size
pdb-clone-1.9.2.py2.4.tar.gz (md5) Source 2015-02-15 43KB
pdb-clone-1.9.2.py2.7.tar.gz (md5) Source 2015-02-15 79KB
pdb-clone-1.9.2.py3.tar.gz (md5) Source 2015-02-15 99KB