run Debugging issues in Qt Creator
-
I tried to run C++ debugging in Qt creator but a problem appeared saying "The Selected build of GDB does not support python scrypting." how to solve this problem? This is my GDB Version
GNU gdb (GDB) 11.1 Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
and this is my python version
Python 3.12.1
-
C Christian Ehrlicher moved this topic from General and Desktop on
-
I tried to run C++ debugging in Qt creator but a problem appeared saying "The Selected build of GDB does not support python scrypting." how to solve this problem? This is my GDB Version
GNU gdb (GDB) 11.1 Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
and this is my python version
Python 3.12.1
@Blackzero How did you install QtCreator and GDB? On which platform?
-
@Blackzero How did you install QtCreator and GDB? On which platform?
@jsulm said in run Debugging issues in Qt Creator:
@Blackzero How did you install QtCreator and GDB? On which platform?
I installed it following the method on YouTube, but for GDB I don't remember whether I installed it manually or not.
-
@jsulm said in run Debugging issues in Qt Creator:
@Blackzero How did you install QtCreator and GDB? On which platform?
I installed it following the method on YouTube, but for GDB I don't remember whether I installed it manually or not.
@Blackzero said in run Debugging issues in Qt Creator:
I installed it following the method on YouTube
This does not answer the question...
Did you use Qt Online Installer?
And again: on which platform? -
I tried to run C++ debugging in Qt creator but a problem appeared saying "The Selected build of GDB does not support python scrypting." how to solve this problem? This is my GDB Version
GNU gdb (GDB) 11.1 Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
and this is my python version
Python 3.12.1
Not every GDB has been built with Python bindings. Your standalone Python installation has nothing to do with it.
https://developers.redhat.com/blog/2017/11/10/gdb-python-api has some details about this.
-
@Blackzero said in run Debugging issues in Qt Creator:
I installed it following the method on YouTube
This does not answer the question...
Did you use Qt Online Installer?
And again: on which platform? -
@jsulm yes I use the online installer, I don't understand what you mean by platform but I only install the online installer for C++ and some python even though I don't use python in qt creator.
@Blackzero
"Platform" means which operating system you are under, which you don't tell us. Redhat, Ubuntu, Windows, ...? Assuming Linux, you distribution provides gdb, not Qt, and that is what determines whether gdb is supplied with Python scripting support. Which you need for it to work "nicely" with Qt Creator. -
@Blackzero
"Platform" means which operating system you are under, which you don't tell us. Redhat, Ubuntu, Windows, ...? Assuming Linux, you distribution provides gdb, not Qt, and that is what determines whether gdb is supplied with Python scripting support. Which you need for it to work "nicely" with Qt Creator. -
@Blackzero And the FDB you're using was also installed using Qt Online Installer?
I'm asking because that GDB version will work for sure. It lloks like you installed GDB or the whole MinGW by yourself? -
@Blackzero And the FDB you're using was also installed using Qt Online Installer?
I'm asking because that GDB version will work for sure. It lloks like you installed GDB or the whole MinGW by yourself? -
@jsulm Yes it is, but this Qt Online Instaler is old, I see the GDB version is from 2021 even though I installed the QT online instaler in 2023, it should work but it doesn't.
Which Qt Creator are you using? 12.0.2?
We had some issues with an older Qt Creator version and GDB due to python3 syntax in python2 source code.
-
Which Qt Creator are you using? 12.0.2?
We had some issues with an older Qt Creator version and GDB due to python3 syntax in python2 source code.
@cristian-adam I use the Qt Creator version 11.0.3, I don't know whether it is the oldest version or not, and for the Python version I use the latest version
-
@cristian-adam I use the Qt Creator version 11.0.3, I don't know whether it is the oldest version or not, and for the Python version I use the latest version
https://bugreports.qt.io/browse/QTCREATORBUG-29440 was the bug report for Qt Creator 11.0.0.
But you are using Qt Creator 11.0.3, which should work. Try with Qt Creator 12.0.2.
Otherwise the bugfixing is happening now in Qt Creator 13 branch.