Data::...::Debug(3pm)
π Data::...::Debug(3pm) π
okay bestie, so this is a User Contributed Perl Documentation page β a whole little Perl manual, Data::...::Debug(3pm), all about debugging your phrasebooks. let's get into it π«Ά
β¨ NAME β¨
Data::Phrasebook::Debug β Phrasebook debugging. that's the whole name. short, sweet, iconic. π
πΈ SYNOPSIS πΈ
like, here's how you'd actually use it:
use Data::Phrasebook;
my $q = Data::Phrasebook->new(
class => 'Plain',
loader => 'Text',
file => 'phrases.txt',
debug => 2,
);
my $r = Phrasebook->new( file => 'phrases.txt', debug => 3 );
$r->debug(4);
$r->store(3,"Start");
my @log = $r->retrieve(2);
$r->clear();
see how the debug value goes up? you're turning up the volume. and then you're poking at the log directly with store, retrieve and clear. main character moves only. π
π¦ DESCRIPTION π¦
so this module is what makes debug logging happen for phrasebook classes. it literally just stores all the interaction with the phrasebook, and then you can interrogate it later. it's giving security camera for your data. πΉ
do NOT call this directly! you go through the class object, bestie. that's the rule.
there's a single storage for every level of the Data::Phrasebook hierarchy β so storage and retrieval are both yours to do, whenever you want. and there are several different levels of debugging, which are:
1 - Errors
2 - Warnings
3 - Information
4 - Variable Debugging
levels 1, 2 and 3 are just simple strings that get recorded while stuff is processing. easy, breezy. but level 4?? that one is specifically for dumping the contents of significant variables. it's the messy one. it's the one that shows you everything. π
and with the debug() method you can flip debugging on and off at whatever significant points you feel like β highkey useful for zeroing in on one specific moment. and the clear() method wipes the current trail of debugging info. fresh slate, no crumbs. β¨
π METHODS π
debug
Accessor to the debugging flag. ποΈ
clear
Clear the currently stored debugging information. bye-bye evidence π§Ή
store
Store debugging information. π₯
retrieve
Retrieve debugging information. π€
dumper
Uses an 'on demand' call to Data::Dumper::Dumper(). it only shows up when you actually need it β very mysterious of it, honestly. π§
π SEE ALSO π
Data::Phrasebook.
π SUPPORT π
Please see the README file. (yes, that's it. the README knows things.) π
π AUTHOR π
Barbie, <barbie@cpan.org>
for Miss Barbell Productions <http://www.missbarbell.co.uk>.
we stan Barbie fr fr π
β COPYRIGHT AND LICENSE β
Copyright (C) 2004-2013 Barbie for Miss Barbell Productions.
This distribution is free software; you can redistribute it and/or
modify it under the Artistic License v2.
free software!! under the Artistic License v2!! slay!! π₯
and that's the whole page, bestie π«Ά this was Data::...::Debug(3pm) from perl v5.36.0, dated 2022-11-19 β mwah, go debug something iconic, no cap π
β¨
π¦ where this page comes from
- debian bookworm: libdata-phrasebook-perl 0.35-3 Β· Artistic-2.0
- debian trixie: libdata-phrasebook-perl 0.35-3 Β· Artistic-2.0
- ubuntu noble: libdata-phrasebook-perl 0.35-3 Β· Artistic-2.0
- ubuntu resolute: libdata-phrasebook-perl 0.35-3 Β· Artistic-2.0
- ubuntu stonking: libdata-phrasebook-perl 0.35-3 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms