
DOCUMENTATION for ec_debug.c

HOW TO USE THE DEBUG INSIDE ETTERCAP

===============================================================================

The debug file "ettercap_debug.log" is created only if ettercap was configured
with the --enable-debug flag.

The DEBUG_INIT() macro opens the file and write down some info like this:

----------------------------------------------------------

-> ettercap 0.6.5

-> running on Linux 2.4.18  glibc 2.2
-> compiled with gcc 3.0
-> ncurses 5.2.20010714


DEVICE OPENED FOR ettercap DEBUGGING

---------------------------------------------------------

this macro MUST be used once and it is called form main() before anything else.

to write in the debug file use the DEBUG_MSG() macro.
this will check if DEBUG is defined and take the proper action.

#ifdef DEBUG
   #define DEBUG_MSG(x, args...) debug_msg(x, ## args)
#else
   #define DEBUG_MSG(x, args...)
#endif


the declaration of this macro is in ec_debug.h

ec_debug.h is automatically incuded by ec_main.h so you can use this macro
everywhere in the code.


EOF
