Howto enable Bird debug messages (DBG)
Hello all How can I enable the debug messages, printed with the macro DBG? I tried with: ./configure --enable-debug and adding: if test "$enable_debug" = yes ; then cat >>confdefs.h <<\_ACEOF #define DEBUGGING 1 + #define LOCAL_DEBUG 1 + #define GLOBAL_DEBUG 1 _ACEOF and starting with: bird -d ... or: bird -d -D /var/log/bird.debug But I never see the messages printed with "DBG". For example: sysdep/unix/main.c: DBG("Initializing.\n"); What do I do wrong? I use bird 1.1.6 on a Gentoo Linux system. Thanks for any help. Best regards Elmar
On Tue, Dec 01, 2009 at 09:02:56AM +0100, Vonlanthen, Elmar wrote:
Hello all
How can I enable the debug messages, printed with the macro DBG?
I tried with: ./configure --enable-debug
It should be enough to use './configure --enable-debug' and change #undef LOCAL_DEBUG' to '#define LOCAL_DEBUG 1' at the beginning of an appropriate source file. -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
Hello Ondrej
On Tue, Dec 01, 2009 at 09:02:56AM +0100, Vonlanthen, Elmar wrote:
Hello all
How can I enable the debug messages, printed with the macro DBG?
I tried with: ./configure --enable-debug
It should be enough to use './configure --enable-debug' and change #undef LOCAL_DEBUG' to '#define LOCAL_DEBUG 1' at the beginning of an appropriate source file.
Thank you very much. That did the trick. Now I see the debugging output. Best regards Elmar
participants (2)
-
Ondrej Zajicek -
Vonlanthen, Elmar