---
name: "Test::Unit::Debug"
section: "3pm"
platform: "linux"
package: "libtest-unit-perl"
version: "0.27-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Test::Unit::Debug"
---

# Test::Unit::Debug(3pm)

framework debugging control

## NAME

Test::Unit::Debug - framework debugging control

## SYNOPSIS

```
    package MyRunner;
    use Test::Unit::Debug qw(debug_to_file debug_pkg);
    debug_to_file('foo.log');
    debug_pkg('Test::Unit::TestCase');
```

## ROUTINES

### debug\_to\_file($file)

Switch debugging to `$file`.

### debug\_to\_stderr()

Switch debugging to STDERR (this is the default).

### debug\_pkg($pkg)

Enable debugging in package `$pkg`.

### debug\_pkgs(@pkgs)

Enable debugging in the packages `@pkgs`.

### debug\_pkg($pkg)

Enable debugging in package `$pkg`.

### debug\_pkgs(@pkgs)

Disable debugging in the packages `@pkgs`.

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

## SEE ALSO

Test::Unit
