New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DB::sub is not called for 'eval' #15617
Comments
From @KES777Created by @KES777$cat t.pl t0(); $cat Devel/DB.pm sub DB { sub sub { goto &$DB::sub; 1; $perl -I. -d:DB t.pl Despite on the (eval) frames are created the DB::sub is not called for them. Expected behaviour: Perl Info
|
From @cpansproutOn Tue Sep 20 07:55:50 2016, kes-kes@yandex.ru wrote:
What value would you put in $DB::sub in that case? There is no valid value for which ‘goto &$DB::sub’ will work and call the eval. Evals do not work that way. -- Father Chrysostomos |
The RT System itself - Status changed from 'new' to 'open' |
From @KES777Maybe we require to supply different hooks so debugger will know that 'eval' is in effect now. Lack of that feature prevents us to make step over eval/require/use while debugging: $ cat t3.pl $ perl -Ilib -I/home/kes/tmp -d ~/tmp/t3.pl Loading DB routines from perl5db.pl version 1.49_04 Enter h or 'h h' for help, or 'man perldebug' for more help. main::(/home/kes/tmp/t3.pl:1): eval { As you can see we fall into eval instead of step over as expected. 20.09.2016, 19:52, "Father Chrysostomos via RT" <perlbug-followup@perl.org>:
|
From @KES777
sub CORE::eval { and then when we call under `-d` flag eval '1+2;' The DB::sub will be called and the \&CORE::eval assigned to $DB::sub. So 'goto &$DB::sub' will call CORE::eval which in its turn will &make_real_call_to_eval |
Migrated from rt.perl.org#129315 (status was 'open')
Searchable as RT129315$
The text was updated successfully, but these errors were encountered: