sharkdp/dbg-macro
A dbg(…) macro for C++ observed · 2026-08-28
Health v2 · maintenance only
53/100
- Activity 67
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2632
- days_rel: n/a
- days_push: 200
- n_releases_24m: 0
Adoption not part of the score
3233 stars · 274 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A single-header C++ library providing a dbg(…) macro for quick printf-style debugging. It prints file, line, function, expression, value, and type information with colorized, pretty-printed output.
Use cases
- quickly inspect variable values while debugging C++ code
- print container contents with pretty formatting
- replace printf/cout debugging with richer output
- trace expressions inline without a debugger
- get compiler warnings reminding to remove debug prints
When to avoid
- you need a full interactive debugger with breakpoints
- you want structured logging for production use
Facets
library · maturity stable
developer-tools logging developer-tools cpp cross-platform debugging macro pretty-printing header-only printf-debugging
1 source
- readme: https://github.com/sharkdp/dbg-macro · fetched 2026-08-28 · 950b55ee06b0
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sharkdp/dbg-macro | main | 53 |
For agents
markdown · JSON · MCP: product_card(name="sharkdp/dbg-macro")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem