summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-17 11:06:14 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-17 11:06:14 (GMT)
commit8527126f85d09e46c2e30f005373d8949d15e60a (patch)
treee7586e59f82adc23b23893fb75e91654bbbbfbb6
parent12c695cea98189d8325cc3041e19c08b6081d055 (diff)
downloadcpython-8527126f85d09e46c2e30f005373d8949d15e60a.zip
cpython-8527126f85d09e46c2e30f005373d8949d15e60a.tar.gz
cpython-8527126f85d09e46c2e30f005373d8949d15e60a.tar.bz2
#9237: document sys.call_tracing().
-rw-r--r--Doc/library/sys.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 6540311..23fdb09 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -55,6 +55,13 @@ always available.
``modules.keys()`` only lists the imported modules.)
+.. function:: call_tracing(func, args)
+
+ Call ``func(*args)``, while tracing is enabled. The tracing state is saved,
+ and restored afterwards. This is intended to be called from a debugger from
+ a checkpoint, to recursively debug some other code.
+
+
.. data:: copyright
A string containing the copyright pertaining to the Python interpreter.