Skip to content

Commit

Permalink
replace deprecated by the use of #13
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Oct 26, 2024
1 parent 98f88d3 commit f6f2235
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions lib/Debug/Client.pm
Original file line number Diff line number Diff line change
Expand Up @@ -234,28 +234,12 @@ sub set_breakpoint {
$self->_prompt;

# if it was successful no reply
given ( $self->{buffer} ) {
when ( $_ =~ /^Subroutine [\w:]+ not found[.]/sxm ) {
return 0;
}
when ( $_ =~ /^Line \d+ not breakable[.]/sxm ) {
return 0;
}
when ( $_ =~ /^\d+ levels deep in subroutine calls!/sxm ) {
return 0;
}
when ( $_ =~ /^Already in/m ) {
return 1;
}
when ( $_ =~ /\S/sxm ) {

# say 'Non-whitespace charter found';
return 0;
}
default {
return 1;
}
}
return 0 if $self->{buffer} =~ /^Subroutine [\w:]+ not found[.]/sxm;
return 0 if $self->{buffer} =~ /^Line \d+ not breakable[.]/sxm;
return 0 if $self->{buffer} =~ /^\d+ levels deep in subroutine calls!/sxm;
return 1 if $self->{buffer} =~ /^Already in/m;
return 0 if $self->{buffer} =~ /\S/sxm; # say 'Non-whitespace charter found';
return 1;
}

#######
Expand Down

0 comments on commit f6f2235

Please sign in to comment.