cpptrace

Self-contained stacktrace library for C++11 and newer

brewmacoslinux
Try with needOr install directly
Source

About

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

Commands

cpptrace

Examples

Generate and print a stacktrace from a C++ program$ cpptrace ./your_program
Capture stacktrace in C++ code using the library$ clang++ -I/usr/local/include myprogram.cpp -o myprogram -lcpptrace
View stacktrace with source code context$ cpptrace --context ./your_program