This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
The attached patch adds to the debugger a capability I thought about
authorPeter Scott <peter@psdt.com>
Thu, 24 Nov 2011 09:21:29 +0000 (01:21 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 24 Nov 2011 09:45:32 +0000 (01:45 -0800)
commit611272bb8372feaba3d008744b5aa5a14c8b92c0
tree3e5f3457bb224c9368eec457140fa48a952937c9
parent0b754184eac744bd93c1b9c338cbbfbc82fb7bd4
The attached patch adds to the debugger a capability I thought about
ages ago and which turned out to be absurdly easy to implement.  It adds
an optional parameter to the t(race) command, a maximum number of stack
frames to trace below the current one:, e.g.:

     t 3 - turn tracing on, trace up to 3 levels below current depth, be
silent below that
     t 2 fnord() - trace up to 2 levels deep in execution of fnord()

Since it is backwards compatible I added it to the legacy command set as
well, but that's certainly debatable.
lib/perl5db.pl
lib/perl5db.t
lib/perl5db/t/rt-104168 [new file with mode: 0644]
pod/perldebug.pod