PyDocs

Nav

Debugging and profiling

dump_traceback_later

faulthandler

function
  • dump_traceback_later(timeout, repeat=False, file=sys.stderr, exit=False, *, max_threads=100)
Dump the traceback of all threads in timeout seconds.

If repeat is true, the tracebacks of all threads are dumped every
timeout seconds.  If exit is true, call _exit(1) which is not safe.
max_threads caps the number of threads dumped.
Changed in 3.5, 3.7, 3.15
  • 3.5: Added support for passing file descriptor to this function.
  • 3.7: This function is now always available.
  • 3.15: Added the max_threads keyword argument.
0 Examples
No examples for faulthandler/dump_traceback_later.
See Also
No see-alsos for faulthandler/dump_traceback_later
0 Notes
No notes for dump_traceback_later