How to debug PyQt4-based application?

3

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?

python
debugging
pyqt
pycharm
asked on Stack Overflow Jun 8, 2015 by Felix

2 Answers

5

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 > (...).

answered on Stack Overflow Nov 27, 2015 by Benjamin Delacour • edited Nov 27, 2015 by jalopaba
-1

Removing PySide from the virtualenv solved the problem for me.

answered on Stack Overflow Sep 24, 2015 by Kaniabi

User contributions licensed under CC BY-SA 3.0