W3C home > Mailing lists > Public > www-validator@w3.org > November 2002

Debug option in configuration file broken ?

From: Frederic Schutz <schutz@mathgen.ch>
Date: Mon, 4 Nov 2002 06:25:36 -0500 (EST)
To: www-validator@w3.org
Message-Id: <0378A0AC-F052-11D6-AC84-000393BAB03A@mathgen.ch>


it looks like the CVS version of the Navigator does not take into 
the DEBUG option set in the configuration file.

On line 95, the option is correctly read:


but later, on line 226, this variable is reset by

    $DEBUG = $File->{Opt}->{Debug};

So even if the configuration file asks for the DEBUG information to be
printed (as is the case presently in the CVS), it will not be displayed 
long as it is not required as by CGI parameter.

Would it make sense to change line 226 for

    $DEBUG ||= $File->{Opt}->{Debug};

so that the debug mode is turned on as soon as it has been requested
(whatever the manner, configuration file, environment variable or CGI
parameter) ?

Received on Monday, 4 November 2002 19:03:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:30 UTC