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
%{"_<..."} acts on @DB::dbline #13259
Comments
From @cpansproutperldebguts says: o Each hash "%{"_<$filename"}" contains breakpoints and actions keyed This implies that breakpoints set on %{"_<..."} apply to the named file. That is not actually true, as every %{"_<..."} hash sets breakpoints on lines in @DB::dbline, regardless of which file it refers to. The assumption is that debuggers will alias *DB::dbline to *{"_<..."} before setting any breakpoints. Hence, all %{"_<..."} hashes are the same. Is this a case where the documentation should be expanded to match the implementation? Or should we change the implementation to make each %{"_<..."} hash work on its corresponding @{"_<..."} array? The latter seems more useful to me. Demonstration: Run this with the -d switch and with PERL5DB set to 1: #!perl $ PERL5DB=1 ./perl -Ilib -d foo If I change the script to alias @DB::dbline to @{"_<".__FILE__} first, it works: #!perl $ PERL5DB=1 ./perl -Ilib -d foo Flags: Site configuration information for perl 5.19.4: Configured by sprout at Sun Sep 8 12:35:32 PDT 2013. Summary of my perl5 (revision 5 version 19 subversion 4) configuration: Locally applied patches: @INC for perl 5.19.4: Environment for perl 5.19.4: |
From @rjbs* Father Chrysostomos <perlbug-followup@perl.org> [2013-09-15T15:01:58]
I agree: the latter seems more useful. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @nwc10On Mon, Sep 16, 2013 at 06:25:56PM -0400, Ricardo Signes wrote:
I really don't have much of an opinion of this. The latter seems more useful. It seems somewhat wasteful that there is a There are so few debuggers on CPAN that I suspect that there's almost no Nicholas Clark |
From @cpansproutOn Mon Sep 16 15:26:35 2013, perl.p5p@rjbs.manxome.org wrote:
I have changed it in commit 43e4250. -- Father Chrysostomos |
From [Unknown Contact. See original ticket]On Mon Sep 16 15:26:35 2013, perl.p5p@rjbs.manxome.org wrote:
I have changed it in commit 43e4250. -- Father Chrysostomos |
@cpansprout - Status changed from 'open' to 'resolved' |
From @KES777Hi. After this commit it seems this section in DOC is meaningless. https://perldoc.perl.org/perldebguts.html#Debugger-Internal-Variables Anybody can use %{ _< ... } directly |
Migrated from rt.perl.org#119799 (status was 'resolved')
Searchable as RT119799$
The text was updated successfully, but these errors were encountered: