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)
Make Nose support less invasive. Closes https://github.com/gotcha/ipdb/issues/52 Closes https://github.com/gotcha/ipdb/issues/31 [blink1073, gotcha]
Fix for post_mortem in context manager. Closes https://github.com/gotcha/ipdb/issues/20 [omergertel]
0.8 (2013-09-19)
More Python 3 compatibility; implies dropping Python 2.5 support. Closes https://github.com/gotcha/ipdb/issues/37 [gotcha]
0.7.1 (2013-09-19)
IPython 1.0 compatibility. Closes https://github.com/gotcha/ipdb/issues/44 [pgularski]
Index into version_info in setup.py for Python 2.6 compatibility. [kynan]
Add Travis CI configuration. [kynan]
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)
Add setuptools console_scripts entry point. [akrito, gotcha]
Nose support. Closes https://github.com/gotcha/ipdb/issues/8 [akaihola, gotcha]
0.5 (2011-08-05)
IPython 0.11 support. [lebedov]
0.4 (2011-06-13)
When used from IPython, use its colors. Closes https://github.com/gotcha/ipdb/issues/1 [gotcha]
Fixed errors when exiting with “q”. [gotcha]
Allow use of python -m ipdb mymodule.py. Python 2.7 only. Closes https://github.com/gotcha/ipdb/issues/3 [gotcha]
Fixed post_mortem when the traceback is None. [maurits]
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pdbi-0.1.tar.gz
.
File metadata
- Download URL: pdbi-0.1.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a2b8dac02166e2f25e9fcc1410a104146480f916be40001043350f2a2e2c8b7 |
|
MD5 | 6991c24f56b7b88f4e2194ae8cf747ef |
|
BLAKE2b-256 | 4d87e40cc604bf2973f2264e3efd52d667cba21185785a704313ee8458bf005f |