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!