Skip to main content

Tool to print python thread and greenlet stacks

Project description

PyPI

pystack

The pystack 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 2.7+ and CPython 3.6+ in both client (the debugger) and server (the destination process).

Using PyPy may work in client (the debugger) but it is untested. Do not attempt to attach a PyPI process as destination since the pystack debugger uses gdb/lldb to invoke the CPython ABI.

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.9.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

pystack_debugger-0.9.0-py2-none-any.whl (5.2 kB view details)

Uploaded Python 2

File details

Details for the file pystack-debugger-0.9.0.tar.gz.

File metadata

  • Download URL: pystack-debugger-0.9.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for pystack-debugger-0.9.0.tar.gz
Algorithm Hash digest
SHA256 d56d95aae93f5e9ca96882a93f73331fc92b56aae43d83c852c4e1e5cd5054ec
MD5 25007c220050ac6dc73a35e1f59cddc2
BLAKE2b-256 f0c4f4966492e8ea2f457c839c58e8a82a0785b082bd9d3350dbc8b01a26280d

See more details on using hashes here.

File details

Details for the file pystack_debugger-0.9.0-py2-none-any.whl.

File metadata

  • Download URL: pystack_debugger-0.9.0-py2-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for pystack_debugger-0.9.0-py2-none-any.whl
Algorithm Hash digest
SHA256 f19852d40177fbf9c306f60c6594737fc96a2d5e025ea036818781ea5b0dbe47
MD5 7906648aa06a74d650d91423b9399b1b
BLAKE2b-256 212323f71b823206910cd6cd8c354a76a9953d2b6b511e6cadd263e887deb1cb

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