WebDebug < Codev < TWiki

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
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.

AltStyle によって変換されたページ (->オリジナル) /