Skip to content

e-fever/xbacktrace

Repository files navigation

XBacktrace - Cross-platform backtrace utility

It is a single header library to provide a cross platform backtrace utility.

Supported Platforms: Linux/Mac/Windows

Credit:

The Windows backtrace code is entirely based on Furkan Üzümcü's Furkanzmc/ExceptionHandler and Jerry Coffin's code. Thanks Furkan and Jerry!

Example usage

#include <xbacktrace.h>

int main(int argc, char *argv[])
{
    XBacktrace::enableBacktraceLogOnUnhandledException();
    int *s = 0;
    s = 10;
    return 0;
}

Installation

    $ wget https://raw.githubusercontent.com/e-fever/xbacktrace/master/XBacktrace.h

API

XBacktrace::enableBacktraceLogOnUnhandledException()

XBacktrace::enableBacktraceLogOnUnhandledException(callback)

TBD

XBacktrace::attachConsole()

Windows-Only API

About

Cross Platform Backtrace Utility for Qt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published