Test::...::Debug(3pm)
π NAME π
Test::Unit::Debug β it's the framework debugging control, bestie. That's the whole vibe. Debug knobs for Test::Unit, and you get to point them wherever you want. π
β¨ SYNOPSIS β¨
Okay so this is literally how you pull it in and start bossing the debugger around:
package MyRunner;
use Test::Unit::Debug qw(debug_to_file debug_pkg);
debug_to_file('foo.log');
debug_pkg('Test::Unit::TestCase');
See? Import the two you need, point the debug output at a file, and turn on debugging for whichever package is being extra. π
π«Ά ROUTINES π«Ά
Here's the whole squad. Every single one of them, no skipping. π
debug_to_file($file)β redirects the debugging output so it all goes into$file. Switching debug to a file, she said. πβ¨debug_to_stderr()β sends the debugging output toSTDERRinstead. fyi, this is literally the default, so if you didn't touch anything, this is already what's happening. π₯οΈdebug_pkg($pkg)β turns debugging on inside package$pkg. Let that package speak. π£οΈπ₯debug_pkgs(@pkgs)β turns debugging on inside the packages in@pkgs. A whole list of packages, all getting the spotlight. πdebug_pkg($pkg)β turns debugging on inside package$pkg. Yeah, this one shows up in the list twice, and I'm reporting it exactly like the source does β both entries are there, fr fr. πdebug_pkgs(@pkgs)β the docs say this one disables debugging in the packages in@pkgs. Yes, it's spelled like the enable-y one up top. That's what the page says, character for character, so I'm not gonna gaslight you about it. π
π AUTHOR π
Copyright (c) 2000-2002, 2005 the PerlUnit Development Team (see Test::Unit or the AUTHORS file included in this distribution).
All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Shoutout to the PerlUnit Development Team, honestly iconic, all rights reserved, and it's free software under the same terms as Perl itself. π«‘πΈ
π SEE ALSO π
Test::Unitβ go read that one next, iykyk. π¦
and that's the page, bestie!! this was pulled from perl v5.40.1, dated 2026-04-05, and it's the manual for Test::...::Debug(3pm) β mwah, go debug something iconic πβ¨π
π¦ where this page comes from
- ubuntu stonking: libtest-unit-perl 0.30-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms