How to debug Python program with GUI (Tkinter)?

Diez B. Roggisch deets at nospam.web.de
Wed Nov 28 04:51:50 EST 2007


Davy wrote:

> Hi all,
> 
> How to debug Python program with GUI, especially Tkinter? My debug
> environment is PythonWin.
> 
> For example, when I single step in the program, the step will go to
> mainloop() and always loop there. How can I know where the program is
> processed?

You can't - the mainloop is written in C. You need to set breakpoints in the
command-handlers of your interest.

Diezv



More information about the Python-list mailing list