pdb — The Python Debugger — Python 3.16.0a0 documentation

docs.python.org

Tin mới

faulthandler — Dump the Python traceback

profiling — Python profilers

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

Debugging and profiling

bdb: Debugger framework.

The module pdb defines an interactive source code debugger for Python programs. It supports setting (conditional) breakpoints and single stepping at the source line level, inspection of stack frames, source code listing,

cmd: Build line-oriented command interpreters.

The module pdb defines an interactive source code debugger for Python programs. It supports setting (conditional) breakpoints and single stepping at the source line level, inspection of stack frames, source code listing,

traceback: Print or retrieve a stack traceback.

Used to dump Python tracebacks explicitly, on a fault, after a timeout, or on a user signal.

readline: GNU readline support for Python.

Changed in version 3.3: Tab-completion via the readline module is available for commands and command arguments, e.g. the current global and local names are offered as arguments of the p command.

__main__: The environment where top-level code is run. Covers command-line interfaces, import-time behavior, and ``__name__ == '__main__'``.

pprint: Data pretty printer.

Like the p command, except the value of expression is pretty-printed using the pprint module.

code: Facilities to implement read-eval-print loops.

Start an interactive interpreter (using the code module) in a new global namespace initialised from the local and global namespaces for the current scope. Use exit() or quit() to exit the interpreter and return to the de

shlex: Simple lexical analysis for Unix shell-like languages.

Restart the debugged Python program. If args is supplied, it is split with shlex and the result is used as the new sys.argv. History, breakpoints, actions and debugger options are preserved. restart is an alias for run.