| 1 | package Devel::ebug::Plugin::Basic; | ||
| 2 | |||
| 3 | 31 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 31 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 31 | ▶ | use base qw(Exporter); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 31 | our @EXPORT = qw(basic); | |
| 7 | |||
| 8 | 31 | our $VERSION = '0.69'; # VERSION | |
| 9 | |||
| 10 | # get basic debugging information | ||
| 11 | 142 | ▶ | sub basic { |
|
Subroutine
basic: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 12 | 142 | my ($self) = @_; | |
| 13 | 142 | _basic_response($self, $self->talk({ command => "basic" })); | |
| 14 | } | ||
| 15 | |||
| 16 | # record where the debuggee is, from the answer to a basic request | ||
| 17 | 186 | ▶ | sub _basic_response { |
|
Subroutine
_basic_response: called CC=1 SCAR=0.0
| |||
| 18 | 186 | my ($self, $response) = @_; | |
| 19 | 186 | $self->codeline($response->{codeline}); | |
| 20 | 186 | $self->filename($response->{filename}); | |
| 21 | 186 | $self->finished($response->{finished}); | |
| 22 | 186 | $self->line($response->{line}); | |
| 23 | 186 | $self->package($response->{package}); | |
| 24 | 186 | $self->subroutine($response->{subroutine}); | |
| 25 | } | ||
| 26 | |||
| 27 | 31 | 1; | |
| 28 | |||
| 29 | __END__ | ||