trace
trace — Trace or track Python statement execution
Source code: Lib/trace.py
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.
1. Command-Line Usage
The trace
module can be invoked from the command line. It can be as simple as
登录查看完整内容