Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Thread::Queue dies in debugger, runs without debugger

by stevieb (Canon)
on Nov 01, 2017 at 13:36 UTC ( [id://1202524]=note: print w/replies, xml ) Need Help??


in reply to Thread::Queue dies in debugger, runs without debugger (solved)

From perldebug:

perl -dt threaded_program_name
Debug a given program using threads (experimental).

So essentially, instead of running with perl -d, try running with perl -dt.

The 5.26 doc states that it's experimental, but my perldelta foo is failing this morning, so I can't figure out what version this feature was introduced. So worst case, you'll need a 5.26.x version of perl for this to work (hopefully I'll find the actual release, or someone else will).

Replies are listed 'Best First'.
Re^2: Thread::Queue dies in debugger, runs without debugger
by pryrt (Abbot) on Nov 01, 2017 at 14:00 UTC

      Holy crap, no wonder I couldn't find it. Good thing I didn't say "it's experimental, so it shouldn't have been in core for overly long" like I was going to! (I didn't, because I fully remember the whole smartmach fiasco, which iirc, is still kind of ongoing).

      Thanks for digging, pryrt!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1202524]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-20 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found