views:

730

answers:

5

Yesterday I made a simulation using Python. I had a few difficulties with variables and debugging.

Is there any software for Python, which provides a decent debugger?

Related question: What is the best way to debug my Python code?

+6  A: 

You can check out the python debugger pdb, which is included in the standard library: http://docs.python.org/library/pdb.html

sykora
+2  A: 

I'd recommend pydb and ipython for interactive debugging.

Both have screencasts available at showmedo.com

Ryan
Is there a tutorial you'd recommend for getting started?
Prairiedogg
Yup, the showmedo screencasts.
Ryan
+8  A: 
nosklo
+2  A: 

Komodo IDE (not the free Komodo Edit) comes with a debugger. I haven't used it in over a year, but it was good back then (v 3, IIRC).

Matthew Schinckel
Komodo has definitely been nice for debugging.
David
How does the debugger differ in Komodo Edit from the one in Komodo IDE?For me, the Komodo Edit solved three indentation problems fast taday.
Masi
Maybe they've added it in the newer version. It definitely didn't have one 18 months ago!
Matthew Schinckel
A: 

There is an Eclipse plug-in for Python which supports debugging, among other tools. See the The Tutorial to start with, and the Website for download. Off course you will need to get Eclipse as well.

Leonid