Created
September 9, 2017 12:12
-
-
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".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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