{"repo":"bloomberg/pystack","free":true,"listed":false,"github":"https://github.com/bloomberg/pystack","clone":"git clone https://github.com/bloomberg/pystack.git","description":"🔍 🐍 Like pstack but for Python!","language":"C++","stars":1208,"topics":["coredump","python","python3","stacktrace","troubleshooting"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"PyStack Print the stack trace of a running Python process, or of a Python core dump. PyStack is a tool that uses forbidden magic to let you inspect the stack frames of a running Python process or a Python core dump, helping you quickly and easily learn what it's doing (or what it was doing when it crashed) without having to interpret nasty CPython internals. What PyStack can do PyStack has the following amazing features: - 💻 Works with both running processes and core dump files. - 🧵 Shows if each thread currently holds the Python GIL, is waiting to acquire it, or is currently dropping it. - 🗑️ Shows if a thread is running a garbage collection cycle. - 🪆 Reports on multiple interpreters in the same process. - 🐍 Optionally shows native function calls, as well as Python ones. In this mode, PyStack prints the native stack trace (C/C++/Rust function calls), except that the calls to Python callables are replaced with frames showing the Python code being executed, instead of showing the internal C code the interpreter used to make the call. - 🔍 Automatically demangles symbols shown in the native stack. - 📈 Includes calls to inlined functions in the native stack whenever enough debug information is available. - 🔍 Optionally shows the values of local variables and function arguments in Python stack frames. - 🔒 Safe to use on running processes. PyStack does not modify any memory or execute any code in a process that is running. It simply attaches just long enough to read some ","default_branch":null,"files":null,"tree":[],"storefront":"/r/bloomberg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bloomberg/pystack/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}