-
Notifications
You must be signed in to change notification settings - Fork 559
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
[doc] perldebguts does not have any info how to check that we are in THREADED mode #22854
Comments
I myself have never written a threaded Perl program ... and I'll bet that's true for lots of us. Could you supply a simple threaded program for people to try debugging on? |
@KES777 - I'm not clear on what you're asking for, in that:
Are you looking for:
If you have a specific use case or problem in mind, knowing what that is might also help us. |
@jkeenan I was thinking that the script I am debugging is multithreaded. Hopefully it is not. Until I realized that I tried to find what should I implement inside my debugger to support
Yes.
Yes. I expect to see on perldebguts page something like this:
I expect to see cautions about gotchas I should aware of when debugging threaded script. What is the environment differences with regular and threaded debugging. PS. I am not going to write something threaded or debug something threaded. I just noticed that perldebguts page does not have any info about that and decided to create this ticket. |
perl sets The debugger detects thread creation in DB::sub by checking if threads::new is being called, so it uses already documented mechanisms. Settings breakpoints under threads works the same as non-threads (updating The E and e commands, and the thread id in the prompt use the API provided by threads.pm. Is there other information you're looking for? This isn't the solution to your issue, but checking exactly what we're missing so we can update it. |
Where
https://perldoc.perl.org/perldebguts
Description
The perldebguts does not provide any info how to debug threaded perl.
Here we can find that we can debug a given program using threads:
perl -dt threaded_program_name
Here we can find that this support
was built into the debugger as of Perl version 5.8.6
TODO:
It should be documented how to use that capability.
The text was updated successfully, but these errors were encountered: