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>




Hello,

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

On line 95, the option is correctly read:

    $DEBUG = TRUE if $ENV{W3C_VALIDATOR_DEBUG} || $CFG->{DEBUG};

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 
as
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) ?

Frédéric
Received on Monday, 4 November 2002 19:03:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:04 GMT