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
Step-by-step debugging do not work for if elsif elsif #16341
Comments
From @KES777Very often in the program there are consecutive ifs. Like this: $x = <>; if( !$x ) { And this is unhandy when 's' debugger command skip all ifs and do not stop on each. $ perl -d ./t.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::(./t.pl:3): $x = <>; expected debugging: main::(./t.pl:3): $x = <>; |
From @iabynOn Mon, Dec 25, 2017 at 01:19:59AM -0800, KES wrote:
's' is documented as: Single step. Executes until the beginning of another Perl compiles if/else chains into ?: expressions; for example, if (C1) { gets compiled to the equivalent of: C1 ? do { S1; } : C2 ? do { S2; } : C3 ? do { S3 } : do { S4 }; which the debugger sees as a single expression. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @xsawyerxDetermined not a bug. Rejecting ticket. |
@xsawyerx - Status changed from 'open' to 'rejected' |
From @KES777
Hope this will someday be seen by debugger as a few expressions |
From @eserte"Sawyer X via RT" <perlbug-followup@perl.org> writes:
IMHO this issue is valid. The current behavior represents bad user Regards, -- Berlin Perl Mongers - http://berlin.pm.org |
From @xsawyerxOn Thu, 28 Dec 2017 06:14:55 -0800, slaven@rezic.de wrote:
This can be a wishlist item for the debugger, but it is not a bug with the language. It is just the way the language is. I'm not sure it's possible to accomplish, though. Dave, what do you think? |
From @eserte"Sawyer X via RT" <perlbug-followup@perl.org> writes:
Whether it's called a bug, a problem, an issue or a wishlist item --- At least this something deserves a little bit of discussion. Regards, -- |
From @jkeenanRe-opening and classifying ticket as Wishlist. For the time being, a documentation patch describing the limitation would be welcome. Thank you very much. |
@jkeenan - Status changed from 'rejected' to 'open' |
From @xsawyerxOn Thu, 28 Dec 2017 14:49:27 -0800, jkeenan wrote:
Thank you. I just opened the ticket to do the same, following Slaven's comments. |
From @iabynOn Thu, Dec 28, 2017 at 04:31:58PM +0100, Slaven Rezic wrote:
My opinions: 1) It's not a bug, in that its behaving exactly as documented; -- |
Migrated from rt.perl.org#132653 (status was 'open')
Searchable as RT132653$
The text was updated successfully, but these errors were encountered: