faulthandler
Faulthandler is a Python standard library module that provides facilities for printing Python stack traces to help diagnose crashes, hangs, and deadlocks in Python programs. It is designed to offer quick visibility into what multiple threads are doing at the moment a fault occurs or on demand, without a full debugger.
The module can emit tracebacks for the current thread or for all threads, and it can include
On Unix-like systems, faulthandler can be configured to dump tracebacks in response to signals (for example,
Usage in brief involves importing the module and enabling it, then calling the available dump routines as