diff options
author | Yves Orton <demerphq@gmail.com> | 2022-10-17 10:33:54 +0200 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2022-10-24 14:33:55 +0200 |
commit | ed06cd5b1cf00b7eba5942568cdedf3adca7b4f2 (patch) | |
tree | 12824b4d586e3e370be648bd38bb40fc837144d5 /perl.c | |
parent | ef15b84745df8968e8543f25b7b3229a56fa7278 (diff) | |
download | perl-ed06cd5b1cf00b7eba5942568cdedf3adca7b4f2.tar.gz |
perl.c - add debug output to show when the run_body() continues after eval fail
This can be helpful debugging issues related to phaser blocks and eval.
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2783,6 +2783,14 @@ S_run_body(pTHX_ I32 oldscope) PERL_SET_PHASE(PERL_PHASE_RUN); if (PL_restartop) { +#ifdef DEBUGGING + /* this complements the "EXECUTING..." debug we emit above. + * it will show up when an eval fails in the main program level + * and the code continues after the error. + */ + if (!DEBUG_q_TEST) + PERL_DEBUG(PerlIO_printf(Perl_debug_log, "\nCONTINUING...\n\n")); +#endif PL_restartjmpenv = NULL; PL_op = PL_restartop; PL_restartop = 0; |