drgn (pronounced “dragon”) is a debugger-as-a-library. In contrast to existing debuggers like¬†GDB¬†which focus on breakpoint-based debugging, drgn excels in live introspection. drgn exposes the types and variables in a program for easy, expressive scripting in Python.

https://github.com/osandov/drgn