docs/library/sys.rst: Add docs for sys.settrace.

pull/7934/head
NitiKaur 2021-11-12 20:39:56 +05:30 zatwierdzone przez Damien George
rodzic e538d8a5a6
commit b851950c26
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -43,6 +43,15 @@ Functions
positional; further arguments are not supported. CPython-compatible
``traceback`` module can be found in `micropython-lib`.
.. function:: settrace(tracefunc)
Enable tracing of bytecode execution. For details see the `CPython
documentaion <https://docs.python.org/3/library/sys.html#sys.settrace>`_.
This function requires a custom MicroPython build as it is typically not
present in pre-built firmware (due to it affecting performance). The relevant
configuration option is *MICROPY_PY_SYS_SETTRACE*.
Constants
---------