Runtime Data Attributes

frame.f_trace_opcodes

Requests per-opcode trace events for a traced frame. Disabled by default; tracing every opcode has overhead and callback failures should not escape.

Formal Syntax & Structure

python syntaxpython
frame.f_trace_opcodes

Return Value

bool

Value exposed by this attribute; availability and mutability depend on the owner as described.

Working Example

Example Snippetpython
import inspectdef f(): return inspect.currentframe().f_trace_opcodesprint(f())
Python Reference