Debugging & Profiling
faulthandler — Dump the Python traceback
This module contains functions to dump Python tracebacks explicitly, on a fault, after a timeout, or on a user signal. Call
to install fault handlers for the
SIGILL signals. You can also enable them at startup by setting the
environment variable or by using the
faulthandler command line option.
bdb — Debugger framework
Audit events table
This table contains all events raised by
calls throughout the CPython runtime and the standard library. These calls were added in 3.8.0 or later.
pdb — The Python Debugger
The Python Profilers
trace — Trace or track Python statement execution
tracemalloc — Trace memory allocations
timeit — Measure execution time of small code snippets