mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
docs/library/sys.rst: Add docs for sys.settrace.
This commit is contained in:
parent
e538d8a5a6
commit
b851950c26
@ -43,6 +43,15 @@ Functions
|
|||||||
positional; further arguments are not supported. CPython-compatible
|
positional; further arguments are not supported. CPython-compatible
|
||||||
``traceback`` module can be found in `micropython-lib`.
|
``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
|
Constants
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user