Документация Python неофициальный перевод

debug.md

66 строк · 6.1 КБ · обычная страница · сырой текст · скачать

1> **Источник:** https://python-all.ru/3.7/library/debug.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# Отладка и профилирование89Эти библиотеки помогают в разработке на Python: отладчик позволяет пошагово выполнять код, анализировать стек вызовов и устанавливать точки останова и т.д., а профилировщики выполняют код и предоставляют подробные результаты по времени выполнения, что помогает выявить узкие места в программах.1011- [`bdb` – фреймворк отладчика](https://python-all.ru/3.7/library/bdb.html)12- [`faulthandler` – дамп трассировки Python](https://python-all.ru/3.7/library/faulthandler.html)1314  - [Дамп трассировки](https://python-all.ru/3.7/library/faulthandler.html#dumping-the-traceback)15  - [Состояние обработчика сбоев](https://python-all.ru/3.7/library/faulthandler.html#fault-handler-state)16  - [Дамп трассировок по тайм-ауту](https://python-all.ru/3.7/library/faulthandler.html#dumping-the-tracebacks-after-a-timeout)17  - [Дамп трассировки по сигналу пользователя](https://python-all.ru/3.7/library/faulthandler.html#dumping-the-traceback-on-a-user-signal)18  - [Проблема с файловыми дескрипторами](https://python-all.ru/3.7/library/faulthandler.html#issue-with-file-descriptors)19  - [Пример](https://python-all.ru/3.7/library/faulthandler.html#example)20- [`pdb` – отладчик Python](https://python-all.ru/3.7/library/pdb.html)2122  - [Команды отладчика](https://python-all.ru/3.7/library/pdb.html#debugger-commands)23- [Профилировщики Python](https://python-all.ru/3.7/library/profile.html)2425  - [Введение в профилировщики](https://python-all.ru/3.7/library/profile.html#introduction-to-the-profilers)26  - [Краткое руководство пользователя](https://python-all.ru/3.7/library/profile.html#instant-user-s-manual)27  - [Справочник модулей `profile` и `cProfile`](https://python-all.ru/3.7/library/profile.html#module-cProfile)28  - [Класс `Stats`](https://python-all.ru/3.7/library/profile.html#the-stats-class)29  - [Что такое детерминированное профилирование?](https://python-all.ru/3.7/library/profile.html#what-is-deterministic-profiling)30  - [Ограничения](https://python-all.ru/3.7/library/profile.html#limitations)31  - [Калибровка](https://python-all.ru/3.7/library/profile.html#calibration)32  - [Использование пользовательского таймера](https://python-all.ru/3.7/library/profile.html#using-a-custom-timer)33- [`timeit` – Измерение времени выполнения небольших фрагментов кода](https://python-all.ru/3.7/library/timeit.html)3435  - [Основные примеры](https://python-all.ru/3.7/library/timeit.html#basic-examples)36  - [Интерфейс Python](https://python-all.ru/3.7/library/timeit.html#python-interface)37  - [Интерфейс командной строки](https://python-all.ru/3.7/library/timeit.html#command-line-interface)38  - [Примеры](https://python-all.ru/3.7/library/timeit.html#examples)39- [`trace` – Трассировка или отслеживание выполнения операторов Python](https://python-all.ru/3.7/library/trace.html)4041  - [Использование командной строки](https://python-all.ru/3.7/library/trace.html#command-line-usage)4243    - [Основные параметры](https://python-all.ru/3.7/library/trace.html#main-options)44    - [Модификаторы](https://python-all.ru/3.7/library/trace.html#modifiers)45    - [Фильтры](https://python-all.ru/3.7/library/trace.html#filters)46  - [Программный интерфейс](https://python-all.ru/3.7/library/trace.html#programmatic-interface)47- [`tracemalloc` – Трассировка выделений памяти](https://python-all.ru/3.7/library/tracemalloc.html)4849  - [Примеры](https://python-all.ru/3.7/library/tracemalloc.html#examples)5051    - [Отображение первых 10](https://python-all.ru/3.7/library/tracemalloc.html#display-the-top-10)52    - [Вычисление различий](https://python-all.ru/3.7/library/tracemalloc.html#compute-differences)53    - [Получение трассировки для блока памяти](https://python-all.ru/3.7/library/tracemalloc.html#get-the-traceback-of-a-memory-block)54    - [Удобный вывод топа](https://python-all.ru/3.7/library/tracemalloc.html#pretty-top)55  - [API](https://python-all.ru/3.7/library/tracemalloc.html#api)5657    - [Функции](https://python-all.ru/3.7/library/tracemalloc.html#functions)58    - [DomainFilter](https://python-all.ru/3.7/library/tracemalloc.html#domainfilter)59    - [Filter](https://python-all.ru/3.7/library/tracemalloc.html#filter)60    - [Фрейм](https://python-all.ru/3.7/library/tracemalloc.html#frame)61    - [Снимок](https://python-all.ru/3.7/library/tracemalloc.html#snapshot)62    - [Статистика](https://python-all.ru/3.7/library/tracemalloc.html#statistic)63    - [StatisticDiff](https://python-all.ru/3.7/library/tracemalloc.html#statisticdiff)64    - [Трассировка](https://python-all.ru/3.7/library/tracemalloc.html#trace)65    - [Traceback](https://python-all.ru/3.7/library/tracemalloc.html#traceback)66