r2 - 14 Jul 2004 - 05:56:57 - PeterThoenyYou are here: TWiki >  Codev Web > BrowserCacheFixes > WebDebug
Tags:
, create new tag
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

Topic attachments
I Attachment Action Size Date Who Comment
plpm WebDebug.pm manage 6.6 K 13 Jul 2004 - 21:05 JonathanGraehl WebDebug.pm
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo