Skip to main content

Install

You’ll need GDB compiled with python support, and the pdbinject package:

easy_install pdbinject

OS X Notes

The default GDB does not come compiled with Python support.

Homebrew fixes that:

brew install gdb

Usage

$ python example/loop.py &
Process running with PID 6319

$ sudo pdbinject 6319
Remote PDB has been configured on port 4444

        nc 127.0.0.1 4444

$ nc 127.0.0.1 4444
--Return--
> /home/ubuntu/pdbinject/pdbinject/debugger.py(16)run()->None
-> debugger.set_trace()

Now have some fun:

from guppy import hpy
hp = hpy()
heap = hp.heap()
heap.get_rp()

To print the stacktrace across all the threads:

import sys, traceback
for thread_id, stack in sys._current_frames().iteritems(): print 'Thread id: %s\n%s' % (thread_id, ''.join(traceback.format_stack(stack)))

Metadata

Release files for pdbinject 0.2.0

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

Source distribution (sdist)

Source distribution for pdbinject 0.2.0
File Size Uploaded Provenance Actions
pdbinject-0.2.0.tar.gz 3.5 kB Without provenance Details for pdbinject-0.2.0.tar.gz

Release files / pdbinject-0.2.0.tar.gz

Download URL pdbinject-0.2.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
857f06b1a5bda7b42379256d52a331a3b955d51dd7a9a73850a4b9b331ddf711
BLAKE2b-256 checksum
How to use checksums
9cba99e8f14f60f4f11ac8b18b0e2752ac93f8f3a8d13aff9a0b669bcb7721b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pdbinject 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file No provenance

0.1.0

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