BSD Ports

devel/p5-B-Debug 1.26 DragonFly

Walk Perl syntax tree, printing debug info about ops

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
12.1 KiB, 29.6 KiB installed

Description

Walk Perl syntax tree, printing debug info about ops

Without actually executing a Perl 5 program, you can walk its optree:

$ cat hello.pl
print "Hello world!\\n";

$ perl -MO=Debug hello.pl
hello.pl syntax OK
LISTOP (0x55d1520414f8)
	op\_ppaddr	0x55d1520414f8 LISTOP \[OP\_LEAVE\]
	op\_next		0x0
	op\_sibling	0x0
	op\_targ		1
	...
OP (0x55d1520414c8)
	op\_ppaddr	0x55d1520414c8     OP \[OP\_ENTER\]
	op\_next		0x55d152041538    COP \[OP\_NEXTSTATE\]
	op\_sibling	0x55d152041538    COP \[OP\_NEXTSTATE\]
	op\_targ		0
	...

In the other systems

SystemPortVersion
DragonFlydevel/p5-B-Debug1.26
FreeBSDdevel/p5-B-Debug1.26
OpenBSDdevel/p5-B-Debug1.26
NetBSDdevel/p5-B-Debug1.26nb7
HardenedBSDdevel/p5-B-Debug1.26
GhostBSDdevel/p5-B-Debug1.26

Install

Binary package:

pkg install p5-B-Debug

From DPorts:

cd /usr/dports/devel/p5-B-Debug && make install clean

Dependencies

Run dependencies 1

No port depends on this one.