Alan Conway wrote:
Mistakes in python client code often causes a fatal exception in one of
the worker threads leaving the main thread hanging. You see the worker
thread stack trace but have no idea where your code is at.
Anyone got debugging tips?
For general python debugging check out the python debugger module:
http://docs.python.org/lib/module-pdb.html
For more specialized stuff you can use sys.settrace to do just about
anything. It's documented in the "How it Works" section of the above
module docs.
In this particular case you might just try putting a few prints in
Queue.get since that's the likely spot the thread is hanging.
--Rafael