More about Debugging Unahndled Exceptions

logistix logistix at zworg.com
Tue Feb 18 17:44:47 EST 2003


"Lexy Zhitenev" <zhitenev at cs.vsu.ru> wrote in message news:<b2tjc5$pqn$1 at serv.vrn.ru>...
> I've read http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65287.
> Very interesting material. I don't want to look through PEPs or post mine.
> 
> How about including some basic features into Python itself?
> 
> I develop my Python programs in PythonWin. Most of them are graphical. They
> use wxPython. The problem is that I simply _can't_ debug such GUI programs.
> PythonWin dies with 'Unhandled exception la-la-la'. I write something, then
> run the program in the console, watch the printed exceptions, place 'print
> var' in the source code, run the program several times, place 'print var' in
> other places and when I find the mistake, delete prints, forget them in
> other places and so on...
> 
> Debugging is hard...
> 

If you're running pythonwin, won't "import
pywin.debugger;pywin.debugger.set_trace();" in your program throw you
into debug mode?  Don't know how it'll interact with wxWindows though.




More information about the Python-list mailing list