To enable the output of debug information you have to use either
the -V option on the command line or the Debug option in the
config file (if available).
By default the code for debug information is now included, to
disable the code you have to invoke configure with the option:
--disable-debug
Both options use the format area,level. The area describes the
part of the source code where debugging should be enabled. The
level limits the output. The level should be between 0 (disabled)
and 9 (maximum output). These options can be used several times
to activate different parts with different levels.
The special keyword "ALL" for the area will activate all areas:
-V all,4
will set all levels for all areas to 4 (if not set otherwise).
-V all
will set level 9 to all areas.
The command line options
-V all,1 -V 3,4
is equal to the configuration file settings
Debug: all,1
Debug: 3,4
and will set all areas to level 1 except area 3 which is set to 4.
The possible areas depend on the used binary (see also flopdebug.h):
sockserv:
---------
main program 0
SendToServer 1
ReceiveFromSocket 2
Drop 3
OpenSocket 4
CommandLine 5
ConnectServer 6
Connect 7
OpenDropSocket 8
CheckEndian 17
utility functions 18
ControlThread 21
SetValues 22
servsock:
---------
main program 0
Drop 3
OpenServer 4
CommandLine 5
OpenDropSocket 8
WriteToSocket 9
ReceiveFromClient 10
ReadConfig 11
Database 12
signal functions 13
OpenAlertSocket 14
ReadData 15
DumpData 16
CheckEndian 17
utility functions 18
ControlThread 21
SetValues 22
alert, drop:
------------
main program 0
OpenSocket 4
CommandLine 5
ConnectServer 6
ReadConfig 11
utility functions 18
Mail 19