Error when starting debug with Qt Creator
-
Firstly, as English is not my native language, my English level is very poor. I apologize for this.
I encountered an error prompt while debugging with qt creator (as shown in the screenshot). When I press F5, this message will pop up. It says my Python version is 0.0, but actually, I have Python 2.7 on my machine (Windows OS) and its bin path is in $PATH (typing "python" in cmd does bring me to python cmd).
In fact, the reason for the incident was that I switched from Qt Creator 4.5.0 (built-in when installing Qt 5.9.4) to 11.0.0 (the latest version), so that I could experience the latest features.
I have searched for this issue on the QT forum before, and some people said that manually adding a kit can solve it, but I tried and it didn't work. Some people say that they can modify the. gdbinit file to disable certain features, but it seems that Windows platform does not have this file.
Additionally, my colleague used the same Creator version as me and did not encounter this issue. Although he is using Qt6 and I am using 5.9.4, I do not think this is the cause of the problem. Based on this, I speculate that there is a problem with one of my configurations, so I uninstalled all versions of Qt, Qt Creator, Python, GDB, deleted all files with these keywords, and then reinstalled them. The problem remains unresolved. -
C Christian Ehrlicher moved this topic from Installation and Deployment on
-
It's a regression in Qt Creator 11.0.0. Qt Creator 10.0.2 works fine. See https://bugreports.qt.io/browse/QTCREATORBUG-29440
Take libcpp_stdtypes.py and replace your version from
c:\Qt\qtcreator-11.0.0\share\qtcreator\debugger\libcpp_stdtypes.py
and it should be fine. -
C Christian Ehrlicher referenced this topic on
-