Perl module for displaying debug output in browser as well as data/debug.txt (browser output is surpressed unless SCRIPT_NAME contains "debug". Knows how to dump variable references to just about anything, and can be told how to dump new object types. Also has per-package &debugOn and &debugOff toggles (as well as global defaults) for selective &debug.
To use:
use WebDebug qw(:all);
&installWriteLnDriver(\&TWiki::writeDebug);
&debugOn;
&debug("$a=",$a,\$a);
&webHeadersDone;
&debug("nothing will get to the browser until you call &webHeadersDone");
Part of
BrowserCacheFixes, or get it seperately:
--
JonathanGraehl - 13 Jul 2004
Thanks for sharing this.
--
PeterThoeny - 14 Jul 2004