Controlling Python

M.-A. Lemburg mal at lemburg.com
Wed Aug 18 06:19:37 EDT 1999


nriedlin at my-deja.com wrote:
> 
> > You can use a callback which you can register with the
> > sys.settrace() function. A less fine-grained hook is available
> > through sys.setprofile(). See the docs for more infos.
> >
> 
> You are correct, but isn't it true, that the callback is only called
> every function call? I would like to interfere every line (and so being
> able to trace my scripts). Please correct me if I'm wrong.

Please read the docs or simply try the hints I gave you...
sys.settrace() is what you want, BTW.

-- 
Marc-Andre Lemburg
______________________________________________________________________
Y2000:                                                   135 days left
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/






More information about the Python-list mailing list