Package Info

perl-Devel-Confess


Include stack traces on all warnings and errors


Development/Libraries/Perl

This module is meant as a debugging aid. It can be used to make a script complain loudly with stack backtraces when 'warn()'ing or 'die()'ing. Unlike other similar modules (e.g. Carp::Always), stack traces will also be included when exception objects are thrown.

The stack traces are generated using Carp, and will work for all types of errors. Carp's 'carp' and 'croak' functions will also be made to include stack traces.

$ perl -d:Confess -e 'sub f { die "arghh" }; sub g { f }; g' arghh at -e line 1. main::f() called at -e line 1 main::g() called at -e line 1

$ perl -d:Confess -w -e 'sub f { $a = shift; @a = @$a };'
-e 'sub g { f(undef) }; g' Use of uninitialized value $a in array dereference at -e line 1. main::f(undef) called at -e line 2 main::g() called at -e line 2

Internally, this is implemented with $SIG{WARN} and $SIG{DIE} hooks.

Stack traces are also included if raw non-object references are thrown.

This module is compatible with all perl versions back to 5.6.2, without additional prerequisites. It contains workarounds for a number of bugs in the perl interpreter, some of which effect comparatively simpler modules, like Carp::Always.


License: Artistic-1.0 or GPL-1.0+
URL: http://search.cpan.org/dist/Devel-Confess/

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.009004-bp156.3.1 info GA Release 2023-07-22 15 SP6
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Devel-Confess
0.009004-bp155.2.10 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Devel-Confess
0.009004-bp154.1.23 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Devel-Confess
0.009004-bp153.1.15 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Devel-Confess
0.009004-bp152.3.16 info GA Release 2020-04-16 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Devel-Confess
0.009004-bp151.3.1 info GA Release 2019-07-16 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Devel-Confess
0.009004-bp151.2.14 info GA Release 2019-05-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Devel-Confess
0.009004-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Devel-Confess