Office-M > SoftwareDevelopment > Tips > Python |
Python
======
I wanted a simple trace-function under simple control:
def TraceBeg (): |
The heart is "sys._getframe(1).f_code.co_name".
To trace a function you simply have to write "TraceBeg ()" at the beginning and "TraceEnd ()" at the end of the function.
Example:
#!/usr/bin/env python |
^Top
Questions / tips?
Last Update: