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")
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.
scope – This determines the depth of nested functions to go down, defaults to 1