On this page
  1. faulthandler.enable
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

faulthandler.enable

Prev: faulthandler.dump_traceback_later | Up: faulthandler | Next: faulthandler.is_enabled
Rel: faulthandler.cancel_dump_traceback_later, faulthandler.disable, faulthandler.dump_c_stack, faulthandler.dump_traceback
Ref: docs.python.org — faulthandler.enable
Tags: #public #python3 #stdlib #faulthandler


Import

import faulthandler
from faulthandler import enable

Signature & Overview

faulthandler.enable(...)

Enable the fault handler.

Usage

import faulthandler

faulthandler.enable()
try:
    assert faulthandler.is_enabled() is True
finally:
    faulthandler.disable()

Gotchas

REPL Inspect

from faulthandler import enable
help(enable)

Linked from

Related notes