Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Error when trying to attach GDB to project



  • Getting this error when I try to attach the debugger to a C++ project - "The selected build of GDB supports Python scripting, but the used version 0.0 is not sufficient for Qt Creator. Supported versions are Python 2.7 and 3.x."

    I have python 2.x and 3.x installed already. Running on Fedora 29.
    Qt Creator version - 4.11.2.
    GDB version - Fedora 8.2-3.fc29
    gcc version - 8.3.1 20190223

    qt_creator_error.png



  • @alex1 that error comes from method GdbEngine::handlePythonSetup in Qt Creator source code.

    You may want to check why your GDB setup reports Python version as 0.0 back to Qt Creator

     GdbMi data = response.data;
            watchHandler()->addDumpers(data["dumpers"]);
            m_pythonVersion = data["python"].toInt();
            if (m_pythonVersion < 20700) {
                int pythonMajor = m_pythonVersion / 10000;
                int pythonMinor = (m_pythonVersion / 100) % 100;
    

    You may find more information about Qt Creator and GDB interaction here.

    Additionally, you may want to contact the Qt Creator mailing list



  • Thanks for the info.

    I don't know how to check why GDB setup reports python version as 0.0, I don't really have the skill level to dig into the Qt Creator source code and find out how it works. I did find this link for a bug report that was filed from someone a few years ago. Seems releated. No actionable info in there for me to solve my problem though.
    https://bugreports.qt.io/browse/QTCREATORBUG-17659?focusedCommentId=345304&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel


Log in to reply