{
    "mode": "pydoc",
    "parameter": "faulthandler",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/faulthandler/json",
    "generated": "2026-06-17T13:20:43Z",
    "sections": {
        "NAME": {
            "content": "faulthandler - faulthandler module.\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "cancel_dump_traceback_later",
                    "content": "canceldumptracebacklater():\ncancel the previous call to dumptracebacklater().\n"
                },
                {
                    "name": "disable",
                    "content": "disable(): disable the fault handler\n"
                },
                {
                    "name": "dump_traceback",
                    "content": "dumptraceback(file=sys.stderr, allthreads=True): dump the traceback of the current thread, or of all threads if allthreads is True, into file\n"
                },
                {
                    "name": "dump_traceback_later",
                    "content": "dumptracebacklater(timeout, repeat=False, file=sys.stderrn, exit=False):\ndump the traceback of all threads in timeout seconds,\nor each timeout seconds if repeat is True. If exit is True, call exit(1) which is not safe.\n"
                },
                {
                    "name": "enable",
                    "content": "enable(file=sys.stderr, allthreads=True): enable the fault handler\n"
                },
                {
                    "name": "is_enabled",
                    "content": "isenabled()->bool: check if the handler is enabled\n"
                },
                {
                    "name": "register",
                    "content": "register(signum, file=sys.stderr, allthreads=True, chain=False): register a handler for the signal 'signum': dump the traceback of the current thread, or of all threads if allthreads is True, into file\n"
                },
                {
                    "name": "unregister",
                    "content": "unregister(signum): unregister the handler of the signal 'signum' registered by register()\n"
                }
            ]
        },
        "FILE": {
            "content": "(built-in)\n\n",
            "subsections": []
        }
    },
    "summary": "faulthandler - faulthandler module.",
    "flags": [],
    "examples": [],
    "see_also": []
}