Pycharm community 2020.3. debugger on breakpoint locked entire desktop

Answered

I tried today to use a breakpoint in a pyqt5 project in a pushbutton click function and this locked everything and I couldn't stop the debugger, close pycharm or do anything on desktop. I'm using a linux system so I switched to another tty and there from htop I killed the application.

I used a breakpoint on this onclick function:

pyqtSlot()
def on_bYes_clicked(self):
if self.lWinLoose.text()== "WIN ! ! !":
logic.winNum= logic.winNum+logic.winNum
print(logic.winNum)
self.dialogTypes("HIDE")
pass

This is a dialog's button which changes the "winNum" variable and hides the dialog. The breakpoint was on that line because somehow the change happens twice. I tried to put a breakpoint in the "HIDE" line also but but as soon as the dialog is active, debugger, pycharm and all system locks

 

0
2 comments

Do you have File | Settings | Build, Execution, Deployment | Python Debugger | PyQt compatible enabled? If so, try disabling it.

Would it be possible to provide a complete code example that reproduces the issue?

1
Avatar
Permanently deleted user

Thanks that was helpful. I didn't disable it, I just changed the value to "PyQt5" and then it worked.

0

Please sign in to leave a comment.