thread debugging

Peter Hansen peter at engcorp.com
Mon Aug 18 11:37:18 EDT 2003


Cliff Wells wrote:
> 
> On Fri, 2003-08-15 at 10:56, Kevin Cazabon wrote:
> > Two solutions I can see:
> >
> > 1)  at the end of your main script... don't exit.  use "while 1:
> > pass".  That'll keep the main script running so you can debug normally
> 
> Better yet, do a join() on the threads in question.  Doesn't burn up cpu
> while it waits.

Or perhaps simpler for the case in question but with roughly the
same benefit: use "time.sleep(1)" in place of "pass".




More information about the Python-list mailing list