Package : perl-Devel-Confess > RPM : perl-Devel-Confess-0.9.4-2.mga7.src.rpm

Basic items

Name perl-Devel-Confess
Version 0.9.4
Release 2.mga7
URL http://search.cpan.org/dist/Devel-Confess
Group Development/Perl
Summary Include stack traces on all warnings and errors
Size 26KB
Arch noarch
License GPL+ or Artistic

Description

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), it includes stack traces even
when exception objects are thrown.

The stack traces are generated using Carp, and will look work for all
types of errors. Carp's "carp" and "confess" 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.

Media information

Distribution release Mageia 7
Media name core-release
Media arch i586

Advanced items

Source RPM NOT IN DATABASE ?!
Build time 2018-09-20 09:24:13
Changelog View in Sophie
Files View in Sophie
Dependencies View in Sophie