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.
bdb
--- Debugger frameworkpdb
--- The Python Debugger- Debugger Commands
- The Python Profilers
hotshot
--- High performance logging profilertimeit
--- Measure execution time of small code snippetstrace
--- Trace or track Python statement execution- Command-Line Usage
- Programmatic Interface