Skip to main content

Tool to print python thread and greenlet stacks

Project description

PyPI

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

PyPI - Python Version PyPI - Implementation

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

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

pystack_debugger-0.11.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

pystack_debugger-0.11.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file pystack_debugger-0.11.0.tar.gz.

File metadata

  • Download URL: pystack_debugger-0.11.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for pystack_debugger-0.11.0.tar.gz
Algorithm Hash digest
SHA256 d4fd5d1fb3dc3b4670066cfc46cd093f7c7251626f4f86503470ba30b22e5fbb
MD5 8d7ec716583cc331b7eec326a0131f41
BLAKE2b-256 b21188852bd4df368c8a98ce68e1b113c538f664d57841a1229341ee77f7344d

See more details on using hashes here.

File details

Details for the file pystack_debugger-0.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pystack_debugger-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d967eb77cb4c8f4768cc0a54f76a207d499d1a25249069725c052978ad0c2e2
MD5 6721609c2112994ebf375abe7c1d4ae1
BLAKE2b-256 e8878e9b47113353a6a976e6d1a22d9af3350baf39f76dfdce9adffdc0c5c7a5

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