# osandov/drgn

Programmable debugger

Repository: https://github.com/osandov/drgn
Canonical: https://ross.abutalabs.com/products/drgn
Language: Python
License: NOASSERTION
License Family: other
Last push: 2026-08-25T20:04:30+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 69, longevity 100
- inputs: {"age_days": 2938, "days_push": 8, "days_rel": 126, "gap_med": 71, "n_releases_24m": 8}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2082, forks 217 (observed 2026-08-28T04:06:11.752806+00:00)

## What it is
drgn is a programmable debugger that exposes program types and variables for expressive Python scripting, originally developed at Meta for debugging the Linux kernel. It also works as a library for building debugging and introspection tools for the kernel and userspace C programs.

## Use cases
- debug the linux kernel from a python script
- introspect kernel memory structures like module lists
- build custom debugging and introspection tools
- inspect live userspace C program state
- analyze kernel crash dumps programmatically
- script complex debugging tasks instead of using gdb commands

## When to choose
- you need to debug or introspect the Linux kernel with rich scripting
- you want to automate debugging of complex interconnected program state
- you're building custom debugging tools on top of a debugger library

## When to avoid
- you need a general-purpose interactive debugger with a GUI
- you primarily debug languages other than C/C++
- you need Windows or macOS kernel debugging support

## Facets
- artifact type: library
- maturity: active
- function: developer-tools
- domain: developer-tools, operating-systems
- platform: python, cli
- tags: debugger, kernel-debugging, introspection, linux-kernel, memory-analysis, crash-analysis, debugging, scripting, linux

## Member repositories
- osandov/drgn (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:11.752806+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:55:55.802487+00:00, confidence not recorded.
  - readme: https://github.com/osandov/drgn (fetched 2026-08-28T04:06:11.752806+00:00, sha a18ba85c1a0e)
  - registry_pypi: https://pypi.org/pypi/drgn/json (fetched 2026-08-29T10:35:55.060306+00:00, sha 13416e01327c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
