PyDocs

Nav

Python Runtime Services

settrace

sys

function
  • settrace(tracefunc)
Set the global debug tracing function.

It will be called on each function call.  See the debugger chapter
in the library manual.

The official docs include a CPython implementation detail for this entry.

Changed in 3.7
  • 3.7: 'opcode' event type added; f_trace_lines and f_trace_opcodes attributes added to frames
0 Examples
No examples for sys/settrace.
See Also
No see-alsos for sys/settrace
0 Notes
No notes for settrace