NAME

Test2::Plugin::DBBreak - Automatic breakpoint on failing tests for the perl debugger

DESCRIPTION

This plugin will automatically break when a test running in the perl debugger fails.

SYNOPSIS

This test:

use Test2::V0;
use Test2::Plugin::DBBreak;

ok(0, "fail");

done_testing;

Produces the output:

not ok 1 - fail
Test2::Plugin::DBBreak::listener(/usr/local/lib/perl5/site_perl/5.36.1/Test2/Plugin/DBBreak.pm:29):
29:         return;

OPTIONS

To disable the breakpoint temporarily, set the $disable variable to 1:

$Test2::Plugin::DBBreak::disable = 1

SOURCE

The source code repository for Test2-Plugin-DBBreak can be found at http://github.com/kcaran/Test2-Plugin-DBBreak/.

MAINTAINERS

Keith Carangelo <lt>kcaran@gmail.com<gt>

AUTHORS

Keith Carangelo <lt>kcaran@gmail.com<gt>

COPYRIGHT

Copyright 2024 Keith Carangelo<lt>kcaran@gmail.com<gt>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/