PyCharm does not stop in debugging mode at the breakpoints in a QThread

PyCharm does not stop in debugging mode at the breakpoints of a piece of code launched by QThread on a new installed station with fresh fedora core 37 and pycharm-community-2021.3.2 or pycharm-community-2022.3.2 or pycharm-community-2023.2.2. Breakpoints work very well for methods in the same module before QThread is used. That's why I thought of a link with QThread.

It worked fine on an old fedora core 33 station with the same codes.

After spending many hours trying to fix the issue (I consulted everything I could find on the subject for example: https://intellij-support.jetbrains.com/hc/en-us/community/posts/203420404-Pycharm-debugger-not-stopping-on-QThread-breakpoints) I have just installed LiClipse and launched it without reading the documentation with the default configuration and it works perfectly ... The problem seems to come at least in part from PyCharm!

Maybe I'm missing something?

I'd got into the habit of using PyCharm and find it a good ally for development, but if I can't use debugging I'll have to switch to another IDE. I'd be very sad about that.

$ python
Python 3.11.5 (main, Aug 28 2023, 00:00:00) [GCC 12.3.1 20230508 (Red Hat 12.3.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt5
>>> import PyQt4
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'PyQt4'
>>> import PyQt6
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'PyQt6'
>>> import PySide6
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'PySide6'
>>> import PySide2
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'PySide2'
>>> import Pyside
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'Pyside'

 

0

Similar issue here.

Updated Pycharm to PyCharm 2023.3.2 (Community Edition) (Build #PC-233.13135.95, built on December 19, 2023) and debugging is working fine everywhere except tests.
Runtime version: 17.0.9+7-b1087.9 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Station: Apple M2 Pro macOS Sonoma 14.2.1 

I can debug and stop on break points in the code running from the main in the python files from anywhere, but it just doesn't stop in tests. Went through many similar issues from previous posts in Jetbrains tried everything but it just doesn't work. Tried to switch between “Module” to “Script path” in Run Configuration but no success  

Tried adding a new lines (print()) and set breakpoints on it, the code executed with the print message in the console but pycharm doesn't stop on break points. Tried clean cache and restart and even we tried to do the same from another mac station. The problem persists.

I'm just getting tired of this for-no-reason memory heave and buggy IDE, time to move back to VSCode

2

请先登录再写评论。