Log of /branches/rel-2-4-patches/webwork-modperl/lib/WeBWorK/Debug.pm
Parent Directory
Revision
4135 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jun 19 15:39:51 2006 UTC (7 years ago) by
sh002i
Original Path:
trunk/webwork-modperl/lib/WeBWorK/Debug.pm
File length: 3384 byte(s)
Diff to
previous 4050
Added HTTP-Basic authenticator for WeBWorK:
AuthenWeBWorK.pm - steals $ce/$authz/$db/$authen bootstrapping code from
the dispatcher, overrides Authen's get_credentials method (and clobbers
cookie methods and set_params)
Debug.pm - load WeBWorK::Contsants explicitly in case it isn't already
loaded
Authen.pm - added maybe_kill_cookie shim (so that it can be overridden
elsewhere)
Configure as follows:
<Location /some_protected_location>
AuthName "My Protected Location"
AuthType Basic
PerlAuthenHandler Apache::AuthenWeBWorK
PerlSetVar authen_webwork_root /path/to/webwork2
PerlSetVar authen_webwork_course some_course_id
require valid-user
</Location>
Revision
4050 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Apr 12 18:54:39 2006 UTC (7 years, 2 months ago) by
sh002i
Original Path:
trunk/webwork-modperl/lib/WeBWorK/Debug.pm
File length: 3360 byte(s)
Diff to
previous 3973
Use undefstr to convert undefined values to the string "###UNDEF###". If
you think a value you're sending to debug() might be undefiend, send it
as a separate item in the argument list rather than concatenating it or
interpolating it into a string. For example, say:
debug("now myVal=", $myVal, ", exiting");
If $myVal is undefined, you'll see:
now myVal=###UNDEF###, exiting
Revision
3485 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Aug 12 02:47:30 2005 UTC (7 years, 10 months ago) by
sh002i
Original Path:
trunk/webwork-modperl/lib/WeBWorK/Debug.pm
File length: 3302 byte(s)
Diff to
previous 2871
added HiRes timing data to WeBWorK::Debug, removed WeBWorK::Timing. all
existing calls to the WeBWorK::Timing methods now pass the same messages
to debug().
added an option to WeBWorK::Debug to allow only certain subroutines to
log debug messages, in addition to the existing option to bar certain
subroutines from doing so.
Revision
2367 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Wed Jun 23 00:37:18 2004 UTC (8 years, 11 months ago) by
sh002i
Original Path:
trunk/webwork-modperl/lib/WeBWorK/Debug.pm
File length: 2668 byte(s)
This module provides the function debug(). It conveniently writes
debugging output to STDERR or a logfile (if the $Logfile constant is
non-empty). It can be turned on and off with the $Enabled constnat.
This module should be used in place of warn() for any debugging output.
warn() should only be used for non-fatal errors that we want the user to
see, not informational status messages.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.