Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 816 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 816 Bytes

libdbgthrow

Build Status

An exception debugging library for C++ programs. Prints backtrace of each exception thrown.

Example

$ make
$ LD_PRELOAD=./libdbgthrow.so ./your_binary
std::runtime_error thrown at:
  f() at /home/vojta/libdbgthrow/test/test1.cpp:6 (./test1)
  main at /home/vojta/libdbgthrow/test/test1.cpp:15 (./test1)
  __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6 [0x7fcd4061f740])
  ?? (./test1 [(nil)])

Configuration

Environment Variable Default
DBGTHROW_BACKTRACE_DEPTH 10
DBGTHROW_OUTPUT_FILENAME stderr
DBGTHROW_EXCEPT_PATTERN