Using Python 3.7 and PyQT 5.14, I sometimes get an error but rather than having an exception or a message, I only get an exit code such as this one : Process finished with exit code -1073740791 (0xC0000409)
and it does not make debugging a very easy task.
I tried to to catch an exception but it does not seem to work. Event went as far as to try and catch everything :
try:
app.exec_()
except Exception as e:
print(e)
But the try / except is completely ignored.
How can I get error messages that are easy to understand ?
In this case, the error is due to me trying to read a value that does not exist of a QTextEdit class. But it's not an information I am going to get from that code.
If it can help, I am using the latest version of PyCharm ( the JetBrains IDE )