Skip to main content

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.

Release files for pdbi 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdbi 0.1
File Size Uploaded
pdbi-0.1.tar.gz 17.0 kB Details

Release files / pdbi-0.1.tar.gz

Download URL pdbi-0.1.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4a2b8dac02166e2f25e9fcc1410a104146480f916be40001043350f2a2e2c8b7
BLAKE2b-256 checksum
How to use checksums
4d87e40cc604bf2973f2264e3efd52d667cba21185785a704313ee8458bf005f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page