PyDocs

Nav

Debugging and profiling

register

faulthandler

function
  • register(signum, file=sys.stderr, all_threads=True, chain=False, *, max_threads=100)
Register a handler for the signal 'signum'.

Dump the traceback of the current thread, or of all threads if
all_threads is True, into file. max_threads caps the number of threads
dumped.
Changed in 3.5, 3.15
  • 3.5: Added support for passing file descriptor to this function.
  • 3.15: Added the max_threads keyword argument.
0 Examples
No examples for faulthandler/register.
See Also
No see-alsos for faulthandler/register
0 Notes
No notes for register