faulthandler

Stdlib — TestingPython 2.0+Intermediate

Dump tracebacks on crash (segfault, timeout, signal)

Quick Info

Documentation
Official Docs
Python Version
2.0+
Dependencies
None — Python Standard Library
Install
Included with Python

Learn by Difficulty

Quick Example

python
import faulthandler

print(f"Module: faulthandler")
print(f"Contents: {dir(faulthandler)[:10]}")

The faulthandler module is part of Python's standard library. Dump tracebacks on crash (segfault, timeout, signal).

Try in Playground

Tags

stdlibtestingdebugging