25.10 trace -- Trace or track Python statement execution
The trace module allows you to trace program execution, generate annotated statement coverage listings, print caller/callee relationships and list functions executed during a program run. It can be used in another program or from the command line.
See About this document... for information on suggesting changes.