Tags:
create new tag
, view all tags
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
Perl source code filepm WebDebug.pm manage 6.6 K 2004-07-13 - 21:05 JonathanGraehl WebDebug.pm
Topic revision: r2 - 2004-07-14 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.