如何调试基于PyQt4的应用程序?

Fel*_*lix 2 python debugging pyqt pycharm

我有一个简单PyQt4的应用程序.我想用PyCharm调试它.

唉,我崩溃了一个错误:

Process finished with exit code -1073740771 (0xC000041D)

这是代码:

from PyQt4 import QtGui, QtCore

app = QtGui.QApplication([])
win = QtGui.QMainWindow() # Breakpoint is here
win.show()
QtGui.QApplication.instance().exec_()
Run Code Online (Sandbox Code Playgroud)

你不能告诉我,我该怎么做才能应付它?

Ben*_*our 5

我发现File > Settings > Build, Execution, Deployment > Python DebuggerPyQt盒子被检查了.取消选中它可以解决问题.要解决每个程序的问题,请执行相同的操作File > Default settings > (...).