
B::Debugger - optree debugger

perl -MB::Debugger programm.pl
B::Debugger 0.01 - optree debugger. h for help
op 0 enter
> n
op 1 nextstate
> h
Usage:
n next op d Debug of op
c <n> continue F Flags of op
b <n> break at step C Concise of op
l <n> list sv1,cv1,...
x .. execute [SAHPICG]V<n> inspect n-th global variable
h help
q quit
> b 5
breakpoint 5 added
> l
- <0> enter ->-
- <;> nextstate(main 111 test.pl:5) v:{ ->-
- <0> pushmark sM ->- > c
> q
quit
executing...

Start an optree inspector before the runtime execution begins, similar to the perl debugger, but only at the internal optree level, not the source level. Kind of interactive B::Concise. The ops are numbered and in exec order, starting from 0.

None yet.
Planned:
-exec switch exec order -skip skip BEGIN blocks (use modules, ...) -check hook into CHECK block (Default, at B) -unit hook into UNITCHECK block (after B) -init hook into INIT block (before B)

n goto the next op in current execution order n <n> skip over the next n ops s step into kid if not next sib step to next sibling c <n> continue. Optionally until op n l <x-y> list n ops or from x to y. h help q quit debugger, start execution F list B::Flags op C list B::Concise op D list B::Debug op [sahpicg]v<n> inspect n-th global variable. eg. sv1

Reini Urban rurban@cpan.org