cpptrace
« Back to VersTracker
Description:
Simple, portable, and self-contained stacktrace library for C++11 and newer
Type: Formula  |  Latest Version: 1.0.4@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ debugging stacktrace library header-only
Install: brew install cpptrace
About:
Cpptrace is a lightweight, zero-dependency C++ library designed for generating stack traces across multiple platforms and compilers. It provides a simple API for capturing and printing call stacks, making debugging significantly easier in production or complex environments. The library is self-contained and supports various backends like libunwind, libdw, and dbghelp.
Key Features:
  • Cross-platform support (Linux, macOS, Windows)
  • No external dependencies required
  • Simple, modern C++ API
  • Supports both full and partial stack traces
Use Cases:
  • Debugging crashes in production C++ applications
  • Adding diagnostic logging to complex codebases
  • Building custom error reporting systems
Alternatives:
  • boost::stacktrace – Boost is heavier and requires the full Boost ecosystem, whereas cpptrace is a standalone single-header library.
  • backward-cpp – Backward-cpp is primarily focused on pretty-printing stack traces on termination, while cpptrace offers more programmatic control.
License: MIT
Dependencies: dwarfutils, zstd
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, sonoma, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Oct 30, 2025 11:25am 0 VERSION_BUMP c2ea95e2