[Tutor] python debugger

Alan Gauld alan.gauld at freenet.co.uk
Sun Jul 2 16:15:09 CEST 2006


> I have a small  problem with python's debugger. 
> I don't know how can I debugg a script through this debugger.
> Can you tell me?

There are several debuggers available on top of the basic pdb module.
If you know the Gnu debugger gdb then pdb is closely modelled 
on that. If you don't know gdb you are probably better off with a 
graphical interface such as the debuggers in IDLE or Pythonwin.

If you really want to learn how to use pdb let us know and we 
can talk you through it - not a bad thing since text based 
debuggers are potentially powerful testing tools. But I'd try 
the graphical tools first.

If the IDLE/Pyhtonwin debuggers still don't make sense tell 
us specifically what the issues are and we can tryu to help 
there too.

OTOH if it is debugging in general that you are having difficulty 
with then its very possible you never bneed to start a debugger 
tool, simple test strategies can often be more effective.

Alan g.




More information about the Tutor mailing list