Starting debugger on errors in threads
<p>I'm using following trick to get debugger started on error
<a href="http://stackoverflow.com/questions/242485/starting-python-debugger-automatically-on-error">Starting python debugger automatically on error</a></p>

<p>Any idea how to make this also work for errors that happen in newly created threads? I'm using thread pool, something like <a href="http://code.activestate.com/recipes/577187-python-thread-pool/" rel="nofollow">http://code.activestate.com/recipes/577187-python-thread-pool/</a></p>
