Debug with PyQt event loop is not working.

I'm wondering if anyone has a way to debug PyQt code in PyCharm 4.0.4? I get the following error when I start the debugger. I can run the code with no issues but when I go to debug it appears that there is debug subprocess that spawns and tries to attach to the main process. I dont know how to setup the debug options to try and make this work. Any help would be appreciated.

---- cut here —-

C:\Users\patman\AppData\Local\Enthought\Canopy\User\python.exe "C:\Program Files (x86)\JetBrains\PyCharm 4.0.4\helpers\pydev\pydevd.py" –multiproc –client 127.0.0.1 –port 56989 –file C:/Users/patman/Documents/GitHub/iscan/main.py
creating a module named _pydev_imps._pydev_pluginbase.import_hook
pydev debugger: process 7416 is connecting

Connected to pydev debugger (build 139.1001)
Running on Windows

Process finished with exit code -1073741819 (0xC0000005)

---- cut here —-
1
2 comments
I have the same problem. When debugging code that uses matplotlib or PyQt, python.exe crashes. PyCharm 3 works well in this usage. For now I have both 3 and 4 installed just so I can go back when I need such debugging.
0

Same Issue with PyCharm 2017.1.2, Python 3.6 and PyQt5

0

Please sign in to leave a comment.