[Tutor] Program gets stuck after a creating a list from dictinary items!

Alan Gauld alan.gauld at btinternet.com
Sat Jul 7 10:34:10 CEST 2012


On 07/07/12 04:35, Steven D'Aprano wrote:

> I find it ironic that you are suggesting removing the debugger to make
> it easier to debug the code :)

But the pdb.trace() calls are not needed for debugging. The
interactive debugger will work just fine without them.
They are for very specialised use. (ie I've never found
a need for them! ;-)

>> I'd either add some more print statements or I'd run it inside a
>> debugger.
>
> Which is what pdb is :)

Yes but it doesn't need  the trace() calls to use it and
winpdb (or even IDLE) is much easier to use!

> Nevertheless, if the Original Poster is not actually using the debugger,
> he should remove the debugger calls.

And that really was the point I was making.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/





More information about the Tutor mailing list