Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Improved IPython-enabled pdb

Project Description

Python Debugger Improved


pdbi is an improvment on ipdb which is a Python Debugger that exports IPython functionality. The improvements are aimed at more powerful debugging as well as fixing useless commands.

Example usage:

import pdbi; pdbi.set_trace()


  • ‘cf’ command (continue forever) will continue execution until the end of the program.
  • ‘c’ command argument that allows to decide the number of breakpoints to continue over. ‘c 2’
  • ‘n’ command argument that allows to decide the number of lines to execute. ‘n 2’ [Stops when a frame returns]
  • New ‘e’ command that will open an editor (Notepad++ on Windows, VIM or VI on Unix) on the current debugger line, then when the editor is closed, the debugger shows the difference and restarts the program (Based on sys.argv).
  • Allow the usage of ipython magics like ‘func?’ or ‘func?@’ etc.
  • All updated commands allow pythonic arguments for example ‘c len(cmd_list)’ or ‘n abc’.
  • ‘l’ command updated to allow giving only one argument that shows that argument amount of lines around the current line.
  • ‘ll’ command that is a shortcut to show the current line the debugger is on.
  • ‘restart’ command that is used to restart the program based on sys.argv.
  • ‘cls/clear’ command that clears the screen.
  • Added ability to force ignore commands by prefixing the command with an ‘!’. For example ‘!cls’ or ‘!e’.

Contact me


linkedin: Amit Assaraf

I’d love to get feedback and suggestions on what I should add/change! Thanks!


0.8.2 (unreleased)

  • Nothing changed yet.

0.8.1 (2015-06-03)

0.8 (2013-09-19)

0.7.1 (2013-09-19)

0.7 (2012-07-06)

  • Add launch_ipdb_on_exception context manager. Implies dropping Python 2.4 support. [Psycojoker]
  • Wrap sys.excepthook only once. [marciomazza]
  • Add GPL file and refer in headers. [stan3]
  • Python 3 support. [Piet Delport]
  • Basic tests. [msabramo]
  • Added the functions runcall, runeval and run. [dimasad]

0.6.1 (2011-10-17)

  • State dependency on IPython later or equal to 0.10. [gotcha]

0.6 (2011-09-01)

0.5 (2011-08-05)

  • IPython 0.11 support. [lebedov]

0.4 (2011-06-13)

0.3 (2011-01-16)

  • Add post_mortem() for Products.PDBDebugMode support. [Jean Jordaan]
  • Moved to

0.2 (2010-10-20)

  • Added pm(). [Paulo Benedict Ang]

0.1 (2010-04-26)

  • First “non dev” release.

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(17.0 kB) Copy SHA256 Hash SHA256
Source Jan 1, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting