Aller au contenu | Aller au menu | Rechercher

Blog | Budget | Gallery | Sys Info |

LibDebug - a signal handler library for debugging

About LibDebug

On signal catch, this library will display lots of useful debugging information depending to the environment variable DEBUG_.


This library need to be link to the application under debugging or to be preloaded before starting the application.


Environment variable DEBUG_ activates the signal catcher. If is contains 'y' all information are displayed but one can display only selective information such as:


The following examples show what is needed during linking of at execution time to get selective information on a segfault.

echo 'int main (int argc, char *argv[]) { return *argv[argc]; }' > test.c

gcc -ldebug test.c
DEBUG_=y ./a.out

gcc test.c
LD_PRELOAD=/usr/lib/ DEBUG_=9 ./a.out


Shell view


Source packages

Debian packages


This library only need a C compiler to be build.

To install, one only needs to


LibDebug 1.2.1 (Tue, 03 Jun 2014 09:17:08 +0200)

LibDebug 1.2 (Tue, 17 Sep 2013 12:15:50 +0200)

Clean debugging info
  • LibDebug 1.0 (Sat Dec 29 11:48:56 2012 +0100)

    Fix dump of file descriptors
  • LibDebug 0.1 (Wed Dec 26 11:25:16 2012 +0100)

    • Initial version
  • Page créee/modifié le 20 septembre 2013.

    Envoyez tout commentaire à Laurent Mazet

    Ce site fonctionne avec des logiciels libres tels que Debian GNU/Linux, Apache, MySQL et PHP

    Valid XHTML 1.1 Valid CSS!