pystack-debugger
The pystack-debugger is to python as jstack is to java.
It's a debug tool to print python threads or greenlet stacks.
Idea stolen from pyrasite.
Install
$ pip install pystack-debugger
Usage
You may need to run it with sudo.
$ sudo pystack [--include-greenlet] <pid>
Compatibility
The pystack is compatible with CPython 3.8+ in both client side (the debugger) and server side (the destination process).
Using PyPy may work in client side (the debugger) but it is untested. Do not attempt to attach a PyPy process as destination. It may lead to unexpected and undefined behavior, because the pystack debugger uses gdb/lldb to invoke the CPython ABI.
Development
Run testing on a container environment:
$ podman machine start
$ ./test.sh
$ ./test.sh coverage html
Metadata
Release files for pystack-debugger 0.11.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 | |
|---|---|---|---|---|
| pystack_debugger-0.11.0.tar.gz | 5.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pystack_debugger-0.11.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.3 kB
Release files / pystack_debugger-0.11.0.tar.gz
| Download URL | pystack_debugger-0.11.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4fd5d1fb3dc3b4670066cfc46cd093f7c7251626f4f86503470ba30b22e5fbb
|
|
BLAKE2b-256 checksum How to use checksums |
b21188852bd4df368c8a98ce68e1b113c538f664d57841a1229341ee77f7344d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / pystack_debugger-0.11.0-py3-none-any.whl
| Download URL | pystack_debugger-0.11.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d967eb77cb4c8f4768cc0a54f76a207d499d1a25249069725c052978ad0c2e2
|
|
BLAKE2b-256 checksum How to use checksums |
e8878e9b47113353a6a976e6d1a22d9af3350baf39f76dfdce9adffdc0c5c7a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for pystack-debugger 0.11.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.