[Pythonmac-SIG] Mac User Python Newbies

Roger Binns rogerb at rogerbinns.com
Sat Feb 12 05:12:20 CET 2005


>>>  import pdb ; pdb.set_trace()
>>
>> Use this instead:
>>
>>   import pdb; pdb.Pdb().set_trace()
>>
>> It is more convenient in that you end up at the stack level you 
>> actually want to be at, rather than inside [pdb]

Yes, but it is 4 more characters to type extra Pdb(). versus 'n' and 
return :-)

Roger



More information about the Pythonmac-SIG mailing list