ID EN
Inspect

trace

Python 3.11

Return a list of FrameInfo objects for the stack between the current frame and the frame in which an exception currently being handled was raised in. The first entry in the list represents the caller; the last entry represents where the exception was raised.

Syntax

PYTHON
inspect.trace(context=1)

See Also

FrameInfo named tuples FrameInfo