π¦ FULL SET: ./library/debug.html - HD Photos!
This document is for an old version of Python that is no longer supported.
You should upgrade, and read the
Python documentation for the current stable release.
27. Debugging and ProfilingΒΆ
These libraries help you with Python development: the debugger enables you to step through code, analyze stack frames and set breakpoints etc., and the profilers run code and give you a detailed breakdown of execution times, allowing you to identify bottlenecks in your programs.
- 27.1.
bdbβ Debugger framework - 27.2.
faulthandlerβ Dump the Python traceback - 27.3.
pdbβ The Python Debugger - 27.4. The Python Profilers
- 27.5.
timeitβ Measure execution time of small code snippets - 27.6.
traceβ Trace or track Python statement execution - 27.7.
tracemallocβ Trace memory allocations
