Xymon Mailing List Archive search

How to turn on debug mode

2 messages in this thread

list Robert P McGraw · Mon, 21 Apr 2008 14:17:20 -0400 ·
I need to print some debug information and the routines that I am interested
have the subroutine dbgprintf which will print the necessary information
that I need to see.

Dbgprintf() is found in lib/errormsg.c.


This seem to be turned on and off by a debug parameter in errormsg.c. Is
there any other way to turn on and off debugging other than recompiling
errormsg.c?


Thanks

Robert


Robert P. McGraw, Jr.
Manager, Computer System                 EMAIL: user-33cf07af04dd@xymon.invalid
Purdue University                         ROOM: MATH-807
Department of Mathematics                PHONE: (XXX) XXX-XXXX
XXX N. University Street                                               
West Lafayette, IN XXXXX-XXXX
list Henrik Størner · Mon, 21 Apr 2008 22:44:37 +0200 ·
quoted from Robert P McGraw
On Mon, Apr 21, 2008 at 02:17:20PM -0400, McGraw, Robert P wrote:
I need to print some debug information and the routines that I am interested
have the subroutine dbgprintf which will print the necessary information
that I need to see.

Dbgprintf() is found in lib/errormsg.c.


This seem to be turned on and off by a debug parameter in errormsg.c. Is
there any other way to turn on and off debugging other than recompiling
errormsg.c?
All of the daemon programs (hobbitd, the various hobbitd_channel
handlers etc.) support sending a SIGUSR2 signal to toggle debugging
on/off.


Henrik