On this page
doctest.debug
Up: doctest | Next: doctest.debug_src
Rel: doctest.debug_src, doctest.DebugRunner, doctest.DocFileSuite, doctest.DocTest
Ref: docs.python.org — doctest.debug
Tags: #public #python3 #stdlib #doctest
Import
import doctest
from doctest import debug
Signature & Overview
doctest.debug(module, name, pm=False)
Debug a single doctest docstring.
Usage
import doctest
# Drops into pdb on a docstring's examples: doctest.debug(my_module, "my_func")
assert callable(doctest.debug)
Gotchas
- Interactive debugger helper: Launches
pdbinteractively—never call in automated tests.
REPL Inspect
from doctest import debug
help(debug)
Linked from
- tuts/python3/stdlib_module/doctest
- tuts/python3/stdlib_module/doctest/debug_src
- tuts/python3/stdlib_module/doctest/DebugRunner
- tuts/python3/stdlib_module/doctest/DocFileSuite
- tuts/python3/stdlib_module/doctest/DocTest
- tuts/python3/stdlib_module/doctest/DocTestFailure
- tuts/python3/stdlib_module/doctest/DocTestFinder
- tuts/python3/stdlib_module/doctest/DocTestParser
- tuts/python3/stdlib_module/doctest/DocTestRunner
- tuts/python3/stdlib_module/doctest/DocTestSuite
- tuts/python3/stdlib_module/doctest/Example
- tuts/python3/stdlib_module/doctest/OutputChecker
- tuts/python3/stdlib_module/doctest/register_optionflag
- tuts/python3/stdlib_module/doctest/run_docstring_examples
- tuts/python3/stdlib_module/doctest/script_from_examples
- tuts/python3/stdlib_module/doctest/set_unittest_reportflags
- tuts/python3/stdlib_module/doctest/testfile
- tuts/python3/stdlib_module/doctest/testmod
- tuts/python3/stdlib_module/doctest/testsource
- tuts/python3/stdlib_module/doctest/UnexpectedException
Related notes
- tuts/python3/stdlib_module/doctest/debug_src Linked here; links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/DebugRunner Linked here; links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/DocFileSuite Linked here; links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/DocTest Linked here; links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/DocTestFailure links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/DocTestFinder links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/DocTestParser links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/DocTestRunner links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/DocTestSuite links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/Example links to this page; shared tags: #doctest, #stdlib