By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,097 Members | 1,580 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,097 IT Pros & Developers. It's quick & easy.

How to debug Python program with GUI (Tkinter)?

P: n/a
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?

Any suggestions are welcome!
Best regards,
Davy
Nov 28 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
Nov 28 '07 #2

P: n/a
Nir
On Nov 28, 11:18 am, Davy <zhushe...@gmail.comwrote:
Hi all,

How todebugPython program with GUI, especially Tkinter? Mydebug
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?

Any suggestions are welcome!
Best regards,
Davy

Try Winpdb
http://www.digitalpeers.com/pythondebugger/

With Winpdb you can pause (break into) and inspect the state of the
Python script even if it is doing some C code.

Nir

Dec 5 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.