Skip to main content

Improved IPython-enabled pdb

Project description

Python Debugger Improved

Use

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()

Features

  • ‘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

email: amit@helpi.me

linkedin: Amit Assaraf

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

Changelog

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 github.com.

0.2 (2010-10-20)

  • Added pm(). [Paulo Benedict Ang]

0.1 (2010-04-26)

  • First “non dev” release.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

pdbi-0.1.tar.gz (17.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page