Skip to main content

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

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

Project details


Download files

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

Source Distribution

pdb4qt-0.2.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file pdb4qt-0.2.tar.gz.

File metadata

  • Download URL: pdb4qt-0.2.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pdb4qt-0.2.tar.gz
Algorithm Hash digest
SHA256 8ae68f6d01728579edb81c6cf1e0aff620e8464c96105ebebbceed1a7cee6a81
MD5 e8906c3cbe78530a733452591e1506f1
BLAKE2b-256 2d8dc542b42d71a7335fb316a960628a62cabf1b595b24f844b604dd50ba6822

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page