faulthandler.dump_traceback()
faulthandler.dump_traceback() is a Python function in the Faulthandler Module category. Dumps tracebacks of all threads (like during a crash). The syntax is faulthandler.dump_traceback(file=sys.stderr, all_threads=True). Returns: None. A typical example: faulthandler.dump_traceback() # Manual dump. A close sibling is faulthandler.enable(), which enables the fault handler for crashes (segfaults, etc.). Dumps tracebacks on fatal signals. A close sibling is faulthandler.disable(), which disables the fault handler. A close sibling is faulthandler.register(), which registers a handler for a fatal signal. More about this category: Fault handler for crashes — enable, disable, dump_traceback, register. Related Faulthandler Module entries: faulthandler.enable(), faulthandler.disable(), faulthandler.register(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try faulthandler.dump_traceback() immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.