Skip to content

Instantly share code, notes, and snippets.

@technofriends
Created September 9, 2017 12:12
Show Gist options
  • Save technofriends/9325a28449ccc4e9459efdac52aa6ce9 to your computer and use it in GitHub Desktop.
Save technofriends/9325a28449ccc4e9459efdac52aa6ce9 to your computer and use it in GitHub Desktop.
Python3.3+ has a standard lib module for displaying tracebacks even when Python "dies".
# Python 3.3+ has a std
# lib module for displaying
# tracebacks even when Python
# "dies", e.g with a segfault:
import faulthandler
faulthandler.enable()
# Can also be enabled with
# "python -X faulthandler"
# from the command line.
# Learn more here:
# https://docs.python.org/3/library/faulthandler.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment