Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A set_trace() that works with PyQt4

Project Description

Set a tracepoint in the Python debugger that works with PyQt4

It uses ipdb if is available


From PyPI:

$ pip install pdb4qt

Or by downloading the source and running:

$ python install

Or, for the latest git version:

$ pip install git+git://


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.


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

Release History

Release History

This version
History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pdb4qt-0.2.tar.gz (2.0 kB) Copy SHA256 Checksum SHA256 Source Mar 26, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting