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

Mark Lawrence breamoreboy at yahoo.co.uk
Sat Jul 7 13:04:42 CEST 2012


On 07/07/2012 09:34, Alan Gauld wrote:
> 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.
>

I don't use a debbuger much but when I do winpdb is superb.

-- 
Cheers.

Mark Lawrence.





More information about the Tutor mailing list