Skip to content

Commit c8fd0ab

Browse files
committed
perlrun/debguts: Connect -dt and PERL5DB_THREADS a bit better
This was going to cover more, but it turned out to already be fairly well covered.
1 parent e639338 commit c8fd0ab

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

pod/perldebguts.pod

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ Perl inserts the contents of C<$ENV{PERL5DB}> (or C<BEGIN {require
3434

3535
=item *
3636

37+
If the C<-dt> switch is supplied, C<PERL5DB_THREADED=1> is set in the
38+
environment. C<perl5db.pl> or your custom debugger can use this to
39+
enable threading support.
40+
41+
=item *
42+
3743
Each array C<@{"_<$filename"}> holds the lines of $filename for a
3844
file compiled by Perl. The same is also true for C<eval>ed strings
3945
that contain subroutines, or which are currently being executed.

pod/perlrun.pod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,9 @@ X<-d> X<-dt>
365365
=item B<-dt>
366366

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

371372
=item B<-d:>I<MOD[=bar,baz]>
372373
X<-d> X<-dt>

0 commit comments

Comments
 (0)