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)
| 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.