python execution path

Peter Hansen peter at engcorp.com
Tue Jan 18 01:00:18 EST 2005


qhfgva at gmail.com wrote:
> Peter Hansen wrote:
>>The best approach, if it's really intended to be a debugging
>>aid, might be to learn about "pdb"  ....
> 
> This is more of a what if-ish question I guess.  I use pdb fairly
> regularly, I'm just looking to extend my debugging toolkit.  I saw an
> article recently about how perl has the sh -x type functionality and I
> was curious if anything like that was possible in python.  Not entirely
> sure how it would make my life better, but it seems intriguing.

Ah.  In that case, investigate sys.settrace().  There are doubtless
a variety of recipes and snippets available in either the Cookbook
or in the mailing list archives, after you do the basic reading in
http://www.python.org/doc/2.4/lib/module-sys.html .

-Peter



More information about the Python-list mailing list