cfme.utils.tracer module¶
To use the function tracer, simply import the trace object and wrap a function with it
from utils.tracer import trace:
@trace(scope=3)
def func():
print("something")
-
cfme.utils.tracer.
trace
(scope=1, file_name_limit=None)[source]¶ Very simple tracer for functions and tests
The tracer module is a very simple tracer that prints out lines of code as they are executed. It is useful when debugging tests so that you can actually see the lines of code being executed and hence determine where blocks are happening. This is not a substitute for good logging but a simple enhancement.
Parameters: scope – This determines the depth of nested functions to go down, defaults to 1