# jeremy-rifkin/cpptrace

Simple, portable, and self-contained stacktrace library for C++11 and newer

Repository: https://github.com/jeremy-rifkin/cpptrace
Canonical: https://ross.abutalabs.com/products/cpptrace
Language: C++
License: MIT
License Family: permissive
Topics: backtrace, debugging, diagnostics, stacktrace
Last push: 2026-03-13T04:40:01+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 72, release rhythm 40, longevity 82
- inputs: {"age_days": 1159, "days_push": 173, "days_rel": 404, "gap_med": 20, "n_releases_24m": 14}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1472, forks 169 (observed 2026-08-28T04:04:49.529806+00:00)

## What it is
Cpptrace is a simple, portable, self-contained C++ stacktrace library supporting C++11 and newer on Linux, macOS, and Windows (including MinGW and Cygwin). It also provides a mechanism for capturing stack traces from thrown exceptions to aid debugging and triaging, plus a C API.

## Use cases
- capture stack traces in a C++ application
- get stack traces from thrown exceptions for debugging
- portable backtrace support across Linux, macOS, and Windows
- add crash diagnostics to a C++11 or newer codebase
- generate stack traces from a C API
- debug SEH exceptions on Windows

## When to choose
- you need stack traces in C++11+ code without relying on C++23 <stacktrace>
- you want exception traces via CPPTRACE_TRY/CPPTRACE_CATCH
- you need cross-platform support including MinGW and Cygwin
- you want a simple, self-contained, MIT-licensed library

## When to avoid
- you need stack traces in languages other than C/C++
- you require C++20/23 std::stacktrace and can rely on standard library support
- you need a full profiler or performance analysis tool rather than diagnostics

## Facets
- artifact type: library
- maturity: active
- function: developer-tools, error-handling, logging
- domain: developer-tools, cross-platform
- platform: windows, cpp, cross-platform
- tags: stacktrace, backtrace, debugging, diagnostics, c-plus-plus, exception-handling, c-api, linux, macos

## Member repositories
- jeremy-rifkin/cpptrace (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:49.529806+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-30T04:34:41.758262+00:00, confidence not recorded.
  - readme: https://github.com/jeremy-rifkin/cpptrace (fetched 2026-08-28T04:04:49.529806+00:00, sha a8cd93ad13e6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
