-
Notifications
You must be signed in to change notification settings - Fork 540
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
perldebguts documentation should be fixed #16055
Comments
From @KES777Created by @KES777[The documentation](https://perldoc.perl.org/perldebguts.html) --- (This doesn't happen if the subroutine was compiled in the DB package.) In short: And vice versa: The output: $cat test.pl $cat lib/Test.pm $cat lib/Devel/DB.pm use B qw/ svref_2object /; sub test{}; sub postponed { sub DB{ sub sub { &$DB::sub; 1; See attached archive with source codes. Perl Info
|
From @KES777 |
From zefram@fysh.orgKES wrote:
The phrase "the subroutine" is ambiguous, because in that paragraph -zefram |
The RT System itself - Status changed from 'new' to 'open' |
From @KES777
Actually first is right. Because with current behavior: I can not setup breakpoint by subroutine name. I check $DB::sub and setup breakpoint at 'DB::sub'. Code looks like next: if( $breakpoints{ $DB::sub } ) { $DB::single = 1 }; This works well in most cases except for next one. I implement debugger command in not DB package. So when that subroutine (which implements debugger command) is called from DB package, it can not be tracked. As work around I put next code into that sub: $^D |= (1<<30); $DB::single = 1; But this will not be required if perl works as documented: I check this behavior on the oldest version I have: perl-5.6.2 |
From zefram@fysh.orgDocumentation fixed in commit 7270698. -zefram |
@cpansprout - Status changed from 'open' to 'pending release' |
From @KES777On Tue, 05 Dec 2017 10:11:53 -0800, zefram@fysh.org wrote:
Thank you for fix. Zefram, will next sound more clear? Please review. |
From zefram@fysh.orgKES via RT wrote:
No, that's less clear. If you want to raise another issue with the documentation, please do so -zefram |
From @khwilliamsonThank you for filing this report. You have helped make Perl better. With the release yesterday of Perl 5.28.0, this and 185 other issues have been Perl 5.28.0 may be downloaded via: If you find that the problem persists, feel free to reopen this ticket. |
@khwilliamson - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#131672 (status was 'resolved')
Searchable as RT131672$
The text was updated successfully, but these errors were encountered: