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.
26. 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.