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. debugger Mac OS
QtWS25 Last Chance

debugger Mac OS

Scheduled Pinned Locked Moved Unsolved General and Desktop
27 Posts 4 Posters 7.8k 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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #1

    Hi - I used Creator a few years ago, and am returning to it now. I've just installed it, and the debugger's not working. I have a hazy memory of having to do something to get it working. The online document says to go to Tools->Options, but there is no options under Tools.

    Can someone point me in the right direction? Thanks.

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

      hi and welcome back
      maybe this can cast some light
      https://forum.qt.io/topic/32743/no-debugger-setup-for-mac-os-x/14
      Sorry I can't be more direct, only linux & win here.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aktk
        wrote on last edited by
        #3

        I'm also struggling with OS X debugging at the moment: after updating Xcode to 7.2 debug just doesn't work. Reinstalling of Qt to latest revision doesn't help.

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

          Hi,

          The debugger options are under Preferences -> Debugger on OS X.

          But the first thing to check is whether your Kit is currently using clang and lldb.

          Hope it helps

          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
          • mzimmersM Offline
            mzimmersM Offline
            mzimmers
            wrote on last edited by
            #5

            I don't think Qt had "kits" when I was using it. Is this the new name for the tool chains?

            And...where do I inspect the details of a kit?

            I don't know how to imbed pictures, but here are a couple of snapshots that might help:

            scopedin.com/images/debug.jpg
            scopedin.com/images/debug2.jpg

            Thank you for the help.

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

              It's a specific setup for Qt + Compiler + Debugger + mkspecs.

              Go to Preferences -> Build and Run

              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
              • mzimmersM Offline
                mzimmersM Offline
                mzimmers
                wrote on last edited by
                #7

                OK, this is what I have. I still can't get it to run.

                http://scopedin.com/images/debug3.jpg

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

                  What do you have in your Kit ?

                  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
                  • mzimmersM Offline
                    mzimmersM Offline
                    mzimmers
                    wrote on last edited by
                    #9

                    This:

                    http://scopedin.com/images/debug4.jpg

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

                      Looks fine… What error are you getting ?

                      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
                      • mzimmersM Offline
                        mzimmersM Offline
                        mzimmers
                        wrote on last edited by mzimmers
                        #11

                        I'm not getting an error, but when I try to start debugging, the debug controls (step over, step into, etc) aren't enabled. The display says the debugger is busy, but it doesn't seem to be doing anything.

                        This could be cockpit error, as I haven't used Creator in a couple years.

                        EDIT: when I start the debug session, it opens an XQuartz session as well.

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

                          XQuartz ?

                          Are you also getting this with a default Qt project ?

                          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
                          • mzimmersM Offline
                            mzimmersM Offline
                            mzimmers
                            wrote on last edited by
                            #13

                            I'm not sure I know what you mean by default Qt project, but I tried creating a Qt Console application, and the results are the same.

                            Perhaps I should remove Qt and reinstall?

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

                              That's what I meant, or with a widget application but the result would probably be the same.

                              Can you run otool -L on the executable ?

                              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
                              • mzimmersM Offline
                                mzimmersM Offline
                                mzimmers
                                wrote on last edited by
                                #15
                                Mac-Mini:bin mzimmers$ pwd
                                /usr/bin
                                Mac-Mini:bin mzimmers$ otool -L lldb
                                lldb:
                                	/usr/lib/libxcselect.dylib (compatibility version 1.0.0, current version 1.0.0)
                                	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
                                Mac-Mini:bin mzimmers$ 
                                
                                

                                Thanks...

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

                                  Sorry, I meant on your project executable

                                  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
                                  • mzimmersM Offline
                                    mzimmersM Offline
                                    mzimmers
                                    wrote on last edited by
                                    #17

                                    Mac-Mini:build-QtPrime-Desktop_Qt_5_5_1_clang_64bit-Debug mzimmers$ otool -L QtPrime
                                    QtPrime:
                                    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)
                                    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
                                    Mac-Mini:build-QtPrime-Desktop_Qt_5_5_1_clang_64bit-Debug mzimmers$

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

                                      So it's not even a Qt based application ?

                                      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
                                      • mzimmersM Offline
                                        mzimmersM Offline
                                        mzimmers
                                        wrote on last edited by
                                        #19

                                        I'm trying to start with something minimal, just to get it working.

                                        I think I may have found the problem, though...the run option "Run In Terminal" was checked by default. I removed that, and I think it's working, though I"m not sure what I'll do if I need to furnish input.

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

                                          Haaaaa, didn't thought about that one… You can check the Environment part in the Preferences to see what terminal it's using. That might explain why XQuartz gets started.

                                          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

                                          • Login

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