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 to STDERR instead. 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