mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
bb9d488965
PR: ports/70659 Submitted by: Alex Kapranoff <alex@kapranoff.ru>
18 lines
411 B
Plaintext
18 lines
411 B
Plaintext
This module lets you add debugging instructions which look
|
|
like comments and do nothing unless you 'use' this module.
|
|
|
|
use Devel::StealthDebug;
|
|
|
|
my $foo = 0;
|
|
# ... Several processing on $foo
|
|
|
|
my $bar = 1 / $foo; #!assert($foo != 0)!
|
|
|
|
my %myhash; #!watch(%myhash)!
|
|
|
|
sub func1 { #!emit(Entering func1)!
|
|
#...
|
|
}
|
|
|
|
WWW: http://search.cpan.org/dist/Devel-StealthDebug/
|