Skip to main content

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

Metadata

Release files for pdb4qt 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdb4qt 0.2
File Size Uploaded
pdb4qt-0.2.tar.gz 2.0 kB Details

Release files / pdb4qt-0.2.tar.gz

Download URL pdb4qt-0.2.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8ae68f6d01728579edb81c6cf1e0aff620e8464c96105ebebbceed1a7cee6a81
BLAKE2b-256 checksum
How to use checksums
2d8dc542b42d71a7335fb316a960628a62cabf1b595b24f844b604dd50ba6822
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page