Browse Source

faulthandler

master
Nils 3 years ago
parent
commit
1700fd8d6a
  1. 6
      bug01/main.py

6
bug01/main.py

@ -1,6 +1,12 @@
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
#Give at least some feedback when C libs crash.
#Will still not work for the common case that PyQt crashes and ends Python.
#But every bit helps when hunting bugs.
import faulthandler; faulthandler.enable()
import sys
from PyQt5 import QtWidgets, QtGui, QtCore
from PyQt5.QtWidgets import QApplication, QStyleFactory

Loading…
Cancel
Save