pdb4qt 0.2

Last updated:

0 purchases

pdb4qt 0.2 Image
pdb4qt 0.2 Images
Add to Cart

Description:

pdb4qt 0.2

Set a tracepoint in the Python debugger that works with PyQt4
It uses ipdb if is available

Install
From PyPI:
$ pip install pdb4qt
Or by downloading the source and running:
$ python setup.py install
Or, for the latest git version:
$ pip install git+git://github.com/nqnwebs/pdb4qt.git


Usage
Simply import set_trace from pdb4qt and call it where you want
to do the breakpoint:
from pdb4qt import set_trace; set_trace()


Why it’s needed?
Standard pdb/ipdb set_trace returns a loop of QCoreApplication::exec: The event loop is already running that disallow to input anything.


Credits
It’s heavily inspired on the answer of the user quark from
this stackoverflow’s thread

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.