Felix
Felix

Reputation: 3581

How to debug PyQt4-based application?

I have a simple PyQt4-based application. I want to debug it with PyCharm.

Alas, I it crashes with an error:

Process finished with exit code -1073740771 (0xC000041D)

Here is the code:

from PyQt4 import QtGui, QtCore

app = QtGui.QApplication([])
win = QtGui.QMainWindow() # Breakpoint is here
win.show()
QtGui.QApplication.instance().exec_()

Cannot you tell me, what should I do to cope with it?

Upvotes: 4

Views: 4858

Answers (2)

Benjamin Delacour
Benjamin Delacour

Reputation: 151

I found in File > Settings > Build, Execution, Deployment > Python Debugger that PyQt box was checked. Unchecking it solves the problem. To solve the problem for every program, do the same in File > Default settings > (...).

Upvotes: 6

Kaniabi
Kaniabi

Reputation: 530

Removing PySide from the virtualenv solved the problem for me.

Upvotes: -1

Related Questions