| 1 | package Devel::ebug::Backend::Plugin::StackTrace; | ||
| 2 | |||
| 3 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 6 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 6 | ▶ | use Devel::StackTrace; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 6 | our $VERSION = '0.69'; # VERSION | |
| 8 | |||
| 9 | 6 | ▶ | sub register_commands { |
|
Subroutine
register_commands: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 10 | 6 | return ( stack_trace => { sub => \&stack_trace } ); | |
| 11 | |||
| 12 | } | ||
| 13 | |||
| 14 | 0 | ▶ | sub stack_trace { |
|
Subroutine
stack_trace: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 15 | 0 | my($req, $context) = @_; | |
| 16 | 0 | my $trace = Devel::StackTrace->new; | |
| 17 | 0 | my @frames = $trace->frames; | |
| 18 | # remove our internal frames | ||
| 19 | 0 | shift @frames; | |
| 20 | 0 | shift @frames; | |
| 21 | 0 | shift @frames; | |
| 22 | 0 | return { stack_trace => \@frames }; | |
| 23 | } | ||
| 24 | |||
| 25 | |||
| 26 | 6 | 1; | |
| 27 | |||
| 28 | __END__ | ||