Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. run Debugging issues in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

run Debugging issues in Qt Creator

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
13 Posts 4 Posters 2.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Blackzero
    wrote on last edited by
    #1

    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
    
    jsulmJ cristian-adamC 2 Replies Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
    • B Blackzero

      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
      
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Blackzero How did you install QtCreator and GDB? On which platform?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      B 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Blackzero How did you install QtCreator and GDB? On which platform?

        B Offline
        B Offline
        Blackzero
        wrote on last edited by
        #3

        @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.

        jsulmJ 1 Reply Last reply
        0
        • B Blackzero

          @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.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @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?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          B 1 Reply Last reply
          1
          • B Blackzero

            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
            
            cristian-adamC Offline
            cristian-adamC Offline
            cristian-adam
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            2
            • jsulmJ jsulm

              @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?

              B Offline
              B Offline
              Blackzero
              wrote on last edited by
              #6

              @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.

              JonBJ 1 Reply Last reply
              0
              • B Blackzero

                @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.

                JonBJ Offline
                JonBJ Offline
                JonB
                wrote on last edited by JonB
                #7

                @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.

                B 1 Reply Last reply
                1
                • JonBJ JonB

                  @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.

                  B Offline
                  B Offline
                  Blackzero
                  wrote on last edited by
                  #8

                  @JonB oh operating system, I use the Windows 10 operating system

                  jsulmJ 1 Reply Last reply
                  0
                  • B Blackzero

                    @JonB oh operating system, I use the Windows 10 operating system

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @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?

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    B 1 Reply Last reply
                    1
                    • jsulmJ jsulm

                      @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?

                      B Offline
                      B Offline
                      Blackzero
                      wrote on last edited by
                      #10

                      @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.

                      cristian-adamC 1 Reply Last reply
                      0
                      • B Blackzero

                        @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.

                        cristian-adamC Offline
                        cristian-adamC Offline
                        cristian-adam
                        wrote on last edited by
                        #11

                        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.

                        B 1 Reply Last reply
                        1
                        • cristian-adamC cristian-adam

                          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.

                          B Offline
                          B Offline
                          Blackzero
                          wrote on last edited by
                          #12

                          @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-adamC 1 Reply Last reply
                          0
                          • B Blackzero

                            @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-adamC Offline
                            cristian-adamC Offline
                            cristian-adam
                            wrote on last edited by
                            #13

                            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.

                            1 Reply Last reply
                            0

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved