Click to See Complete Forum and Search --> : Python newbie Question


linuxprogrammer
02-19-2005, 06:18 PM
Can i use gdb for debugging with python?

bwkaz
02-19-2005, 10:51 PM
I don't know, but do you need to debug it necessarily? Python comes with a top-level that you can use to execute bits of Python code interactively, which works almost as well as a debugger. (Or at least, it did when I was writing Lisp in the clisp top-level.)

Just run "python" and start typing in bits of code, to see that they do what you expect.

(Of course, this won't help for large programs that you didn't write, so if that's what you're trying to debug, perhaps it would be a good idea to look for a Python debugger. Or maybe you could just sprinkle various print statements through the code?)