NAME

WeBWorK::Debug - Print (or don't print) debugging output.

head1 SYNOPSIS

use WeBWorK::Debug;

# Enable debugging
$WeBWorK::Debug::Enabled = 1;

# Log to a file instead of STDERR
$WeBWorK::Debug::Logfile = "/path/to/debug.log";

# log some debugging output
debug("Generated 5 widgets.");

CONFIGURATION VARIABLES

$Enabled

If true, debugging messages will be output. If false, they will be ignored.

$Logfile

If non-empty, debugging output will be sent to the file named rather than STDERR.

$DenySubroutineOutput

If defined, prevent subroutines matching the following regular expression from logging.

$AllowSubroutineOutput

If defined, allow only subroutines matching the following regular expression to log.

FUNCTIONS

debug(@messages)

Write @messages to the debugging log.

AUTHOR

Written by Sam Hathaway, sh002i (at) math.rochester.edu.