thread debugging

Robert Hayes robert.hayes at havok.com
Fri Aug 15 10:10:49 EDT 2003


Hi,
This may well be a very stupid question, but I'll ask it anyway:

I have a script that uses Thread classes.  All it does (when called as a 
__main__ script) is initialise the classes and start() them.  Then it exits.

The problem is that I can't debug those threads with a standard debugger 
(I'm using PythonWin 157 btw), because the script has already exited! 
(even though the threads are still running).  So any breakpoints I set 
are ignored...

My question is thus: is impossible to debug this threaded code, or is 
there some way that I can? (preferable using pythonwin; sorry, my *nix 
friends, but I am confined to windows for this one ;))

thanks,
~Rob





More information about the Python-list mailing list