Header-only cross-platform C++11 stacktraces, without boost.
Simple usage (one line!):
#include "stacktrace.h"
int main()
{
stacktrace::dump_stacktrace(); // print stacktrace to cout
}
This will print out (built in debug mode for symbols):
AT: [0000562c78b23d12] /home/runner/work/stacktrace/stacktrace/examples/main.cpp:108 (main)
AT: [00007f1831dda0b3] UNK:0 (UNK)
AT: [0000562c78b2390e] UNK:0 (_start)
Advanced usages here!
Supported compilers:
- MSCV
- g++
- clang
Supported operating systems:
- windows
- linux
- macos (not tested)
Check out the wiki page