MCPcopy Index your code
hub / github.com/RustPython/RustPython / debug

Function debug

Lib/doctest.py:2766–2775  ·  view source on GitHub ↗

Debug a single doctest docstring. Provide the module (or dotted name of the module) containing the test to be debugged and the name (within the module) of the object with the docstring with tests to be debugged.

(module, name, pm=False)

Source from the content-addressed store, hash-verified

2764 pdb.Pdb(nosigint=True).run("exec(%r)" % src, globs, globs)
2765
2766def debug(module, name, pm=False):
2767 """Debug a single doctest docstring.
2768
2769 Provide the module (or dotted name of the module) containing the
2770 test to be debugged and the name (within the module) of the object
2771 with the docstring with tests to be debugged.
2772 """
2773 module = _normalize_module(module)
2774 testsrc = testsource(module, name)
2775 debug_script(testsrc, pm, module.__dict__)
2776
2777######################################################################
2778## 9. Example Usage

Callers

nothing calls this directly

Calls 3

_normalize_moduleFunction · 0.85
testsourceFunction · 0.85
debug_scriptFunction · 0.85

Tested by

no test coverage detected