libebt: get human-readable backtrace messages in C++

Everything related to the code /
Tout ce qui touche au code
Post Reply
milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

libebt: get human-readable backtrace messages in C++

Post by milipili » Thu Apr 16, 2009 1:05 pm

The libebt library provides a clean way of getting human-readable backtrace messages in C++. It uses the RAII (resource acquisition is initialisation) idiom to manage backtrace stack items without needing macros, control structures or an external debugger -- adding context to a function or block is done through a single simple variable declaration.

http://libebt.berlios.de/

I am not really convinced but it might interest some of you
Damien Gerard
Ta3d & Yuni Developer

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Thu Apr 16, 2009 1:32 pm

TA3D used a similar system a long time ago, it was removed because it was useless:
_crashes would happen in small critical functions that could not afford such an overhead
_because of overhead it was not used in critical stuffs

so it was dropped, gdb is much more helpful for debugging and pertinent logs are better for end user experience.
=>;-D Penguin Powered

milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

Post by milipili » Thu Apr 16, 2009 7:46 pm

Agreed
Damien Gerard
Ta3d & Yuni Developer

Post Reply

Who is online

Users browsing this forum: No registered users and 36 guests