How to trace Python/sys.settrace() ?

Fredrik Lundh fredrik at pythonware.com
Wed Jul 14 10:24:17 EDT 1999


Andreas Jung <ajung at sz-sb.de> wrote:
> In some situations it is neccessary to be able to do a complete
> trace of Python script (similiar to truss/strace) - that means one
> want to know all called functions (function names) and functions parameters. 
> 
> sys.settrace() seems to be a candidate for building such a tracing functionality.
> However I am not sure if this is the right way. I'd like to ask the Python gurus
> and Python hackers here  about a possible solution. Maybe there is already some usable
> code available.

http://www.deja.com/getdoc.xp?AN=400537551
could be what you're looking for.

</F>





More information about the Python-list mailing list