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 History Action Size Date Who Comment
Perl source code filepm WebDebug.pm r1 manage 6.6 K 2004-07-13 - 21:05 UnknownUser WebDebug.pm
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2004-07-14 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.