PyDocs

Nav

Debugging and profiling

enable

faulthandler

function
  • enable(file=sys.stderr, all_threads=True, c_stack=True, *, max_threads=100)
Enable the fault handler.
Changed in 3.5, 3.6, 3.10, 3.14, 3.15
  • 3.5: Added support for passing file descriptor to this function.
  • 3.6: On Windows, a handler for Windows exception is also installed.
  • 3.10: The dump now mentions if a garbage collector collection is running if all_threads is true.
  • 3.14: Only the current thread is dumped if the GIL is disabled to prevent the risk of data races.
  • 3.14: The dump now displays the C stack trace if c_stack is true.
  • 3.15: Added the max_threads keyword argument.
0 Examples
No examples for faulthandler/enable.
See Also
No see-alsos for faulthandler/enable
0 Notes
No notes for enable