Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to configure the debugger for Qt creator?
Forum Updated to NodeBB v4.3 + New Features

How to configure the debugger for Qt creator?

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 3.1k Views 1 Watching
  • 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.
  • D Offline
    D Offline
    Der Kode
    wrote on last edited by
    #1

    I installed Qt 5.1.1 on Mac OS. When I enter a project, Qt Creator show: "The debugger is not set". How to configure the debugger?

    Thanks in advance

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you install Xcode/Xcode command line tools ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        billconan
        wrote on last edited by
        #3

        this became a bit difficult on latest Mac OS 10.9 with XCode 5.

        it used to be automatic, qt, by default, would use gcc + gdb. but Mac has changed to use clang + lldb.

        What you need to do is creating another Qt kit from QtCreator's preference, because the default Qt Kit doesn't allow you to change the debugger.

        When selecting debugger, you need to select lldb and point the location to /Application/Xcode5.1/Content/Developer/usr/bin/lldb

        1 Reply Last reply
        0
        • D Offline
          D Offline
          Der Kode
          wrote on last edited by
          #4

          [quote author="SGaist" date="1384551305"]

          Did you install Xcode/Xcode command line tools ?[/quote]

          How to install "Command line tools"?. I have in Preference -> Downloads:

          !http://storage7.static.itmages.ru/i/13/1116/h_1384592821_3253687_76bb5f0c8b.png(qt)!

          1 Reply Last reply
          0
          • D Offline
            D Offline
            Der Kode
            wrote on last edited by
            #5

            [quote author="billconan" date="1384555539"]this became a bit difficult on latest Mac OS 10.9 with XCode 5.

            it used to be automatic, qt, by default, would use gcc + gdb. but Mac has changed to use clang + lldb.

            What you need to do is creating another Qt kit from QtCreator's preference, because the default Qt Kit doesn't allow you to change the debugger.

            When selecting debugger, you need to select lldb and point the location to /Application/Xcode5.1/Content/Developer/usr/bin/lldb[/quote]

            I did so:

            !http://storage9.static.itmages.ru/i/13/1116/h_1384593898_7796986_46f24c62ac.png(qt)!

            It does not works.

            1 Reply Last reply
            0
            • P Offline
              P Offline
              panosk
              wrote on last edited by
              #6

              Hi,

              You can install the command line tools with:
              @
              xcode-select --install
              @

              However, I think you won't have much luck with debugging in Qt 5.1. Use Qt 5.2 Beta which supports LLDB. See also this post:
              "http://qt-project.org/forums/viewthread/34533/":http://qt-project.org/forums/viewthread/34533/

              1 Reply Last reply
              0
              • D Offline
                D Offline
                Der Kode
                wrote on last edited by
                #7

                I installed Qt 5.2. Now works! Thanks
                [quote author="panosk" date="1384602089"]Hi,

                You can install the command line tools with:
                @
                xcode-select --install
                @

                However, I think you won't have much luck with debugging in Qt 5.1. Use Qt 5.2 Beta which supports LLDB. See also this post:
                "http://qt-project.org/forums/viewthread/34533/":http://qt-project.org/forums/viewthread/34533/[/quote]

                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