import debug
Python
Switch branches/tags
Latest commit 0634cae Oct 12, 2016 @narfdotpl narfdotpl v0.3.2
Permalink
Failed to load latest commit information.
manual_test_directory added manual tests Oct 12, 2016
HISTORY.markdown v0.3.2 Nov 1, 2016
README.markdown added support for multiple entry points Oct 26, 2011
UNLICENSE added readme May 9, 2011
debug.py fixed `level` logic Oct 26, 2016
manual_test.py added manual tests Oct 12, 2016
setup.py v0.3.2 Nov 1, 2016

README.markdown

import debug

Start fancy debugger in a single statement.

People debug with print. It's great in simple cases. Another debugging tool, pdb, is less popular as it requires more effort: one has to do a Google search, skim through documentation, type some long "trace... sth", and all of this only to get some unfriendly two-color shell that doesn't even seem to understand how tab key should work.

This project FTFY: you import debug and you find yourself in a debugger with syntax highlighting, tab completion, and readable dir() alternative. From there you can pretend you're just using interactive console -- you don't have to know any pdb commands, just remember that "c" closes debugger and goes back to your program.

(What really happens is that we simply start ipdb and import see for you.)

Usage

Put import debug right where you want to start debugging (it's like antigravity).

Thanks to some monkeys and some patches, it will work as many times as you need it to.

Installation

pip install debug

Meta

This little piece of glue code is written by Maciej Konieczny. It's released into the public domain and uses semantic versioning for release numbering.