in reply to code review: pretty print sub entry/exit
Here's half a solution, adapted from the Camel(3ed., Ch. 20) to indent for each call.
$ PERL5DB='{package DB;sub DB{} sub sub {print ++$i," "x$i," $sub\n";&$sub;$i--}}' perl -d imlate.plIt doesn't do anything on sub return, but I expect PERL5DB could be modified to do so. It can be set as an environment variable, or written as a Devel::Xxxx module for the 'perl -d:Xxxx' form of running.
The best part is that it works on unmodified code.
After Compline,
Zaxo
|
|---|