Wednesday, June 24, 2009

Debugging Python threads

My understanding is that because pythonwin runs in its own thread if you spawn a thread - you can't debug it.
I have an application that runs 2 background threads. You can make special classes for testing the application outside of background threading, but that just gets confusing. I really don't want to be creating a whole bunch of code just to be able to debug what I already have.

I was really getting frustrated with the whole process, until I discovered winpdb. It is bloody mavellous, it really needs to be bundled into the activestate distribution.

No comments: