![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Thread::Queue dies in debugger, runs without debugger (solved)by yulivee07 (Sexton) |
on Nov 01, 2017 at 10:05 UTC ( #1202503=perlquestion: print w/replies, xml ) | Need Help?? |
yulivee07 has asked for the wisdom of the Perl Monks concerning the following question:
Hi fellow perlmonks,
this morning I am trying to debug a program which is making use of Thread::Queue. Fortunately, the person who wrote it in the first place included an option "--debug" so the program does not use Threads, making debugging easier. However, I am encountering a problem which I currently have no clue how to tackle:
If I start the program in the debugger it blurts out error messages and dies: If I start the same thing on the command line without the debugger, it just runs: I am a bit at loss how to properly debug this, as I am doing a feature extension and I am trying to hunt down an error. Any Ideas why Thread::Queue dies in the debugger but runs without the debugger? Looking at other questions regarding Thread::Queue it should be possible to debug it (although it could be hard with the threading). Also I admit, I don't quite understand the error message (the part about locking and the unbalanced scopes). Appreciating any hints! Yulivee Update I got this working. For anyone who stumbles upon this: Threads need to be explicitly enabled in the debugger, even if they are not in in use. As soon as a threads module is in user, one needs to start the debugger with perl -dt program.
Back to
Seekers of Perl Wisdom
|
|