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
Forum Updated to NodeBB v4.3 + New Features

debugger Mac OS

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

                  Currently, it's set to:

                  /Developer/Applications/Qt/Qt\ Creator.app/Contents/MacOS/../Resources/scripts/openTerminal.command

                  And, as I suspected, cin doesn't work.

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

                    I don't know if it can be considered a bug… I haven't used the Terminal for debugging for a long time.

                    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
                      #23

                      OK, so let's say I wanted to create a "hello world" project that accepts an integer and prints "hello world" that many times...which project template should I use for this?

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

                        Non-Qt project -> Plain C or Plain C++ 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
                          #25

                          I must not be asking the question the right way...I began by using a non-Qt project. That's when it popped up Xterm on me.

                          What do I need to do, to get the debugger to accept character-based input?

                          Thanks.

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

                            Ok sorry, I get it now.

                            The thing is, it should work but there's something that seems to start maybe Xterm rather than Terminal. What happens if you call /Applications/Qt\ Creator.app/Contents/MacOS/../Resources/scripts/openTerminal.command from your terminal ?

                            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
                              #27

                              I don't have anything in that path. My installation is in /Developer/Applications.

                              If I run:

                              /Developer/Applications/Qt/Qt\ Creator.app/Contents/MacOS/../Resources/scripts/openTerminal.command
                              

                              Then I get a new terminal window, but it's under control of the shell, not my app.

                              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