Logo

上個主題

25.5. test — Regression tests package for Python

下個主題

26.1. bdb — Debugger framework

本頁

  • 顯示原始碼

快速搜尋

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.

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • python logo
  • Python »
  • Python 2.7.18 說明文件 »
  • The Python Standard Library »
  • |

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.

  • 26.1. bdb — Debugger framework
  • 26.2. pdb — The Python Debugger
  • 26.3. Debugger Commands
  • 26.4. The Python Profilers
    • 26.4.1. Introduction to the profilers
    • 26.4.2. Instant User’s Manual
    • 26.4.3. profile and cProfile Module Reference
    • 26.4.4. The Stats Class
    • 26.4.5. What Is Deterministic Profiling?
    • 26.4.6. Limitations
    • 26.4.7. Calibration
    • 26.4.8. Using a custom timer
  • 26.5. hotshot — High performance logging profiler
    • 26.5.1. Profile Objects
    • 26.5.2. Using hotshot data
    • 26.5.3. Example Usage
  • 26.6. timeit — Measure execution time of small code snippets
    • 26.6.1. Basic Examples
    • 26.6.2. Python Interface
    • 26.6.3. Command-Line Interface
    • 26.6.4. Examples
  • 26.7. trace — Trace or track Python statement execution
    • 26.7.1. Command-Line Usage
      • 26.7.1.1. Main options
      • 26.7.1.2. Modifiers
      • 26.7.1.3. Filters
    • 26.7.2. Programmatic Interface

上個主題

25.5. test — Regression tests package for Python

下個主題

26.1. bdb — Debugger framework

本頁

  • 顯示原始碼

快速搜尋

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • python logo
  • Python »
  • Python 2.7.18 說明文件 »
  • The Python Standard Library »
  • |
© 版權所有 1990-2025, Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

最後更新於 8月 10, 2025。
Created using Sphinx 2.3.1.