Skip to content

perlrun/debguts: Connect -dt and PERL5DB_THREADS a bit better #23274

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

Merged
merged 1 commit into from
May 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pod/perldebguts.pod
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ Perl inserts the contents of C<$ENV{PERL5DB}> (or C<BEGIN {require

=item *

If the C<-dt> switch is supplied, C<PERL5DB_THREADED=1> is set in the
environment. C<perl5db.pl> or your custom debugger can use this to
enable threading support.

=item *

Each array C<@{"_<$filename"}> holds the lines of $filename for a
file compiled by Perl. The same is also true for C<eval>ed strings
that contain subroutines, or which are currently being executed.
Expand Down
5 changes: 3 additions & 2 deletions pod/perlrun.pod
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,9 @@ X<-d> X<-dt>
=item B<-dt>

runs the program under the Perl debugger. See L<perldebug>.
If B<t> is specified, it indicates to the debugger that threads
will be used in the code being debugged.
If B<t> is specified, C<PERL5DB_THREADED=1> is set in the environment
to indicate to the debugger that threads will be used in the code
being debugged.

=item B<-d:>I<MOD[=bar,baz]>
X<-d> X<-dt>
Expand Down
Loading