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. Qt Creator External Terminal Configuration
Forum Updated to NodeBB v4.3 + New Features

Qt Creator External Terminal Configuration

Scheduled Pinned Locked Moved General and Desktop
14 Posts 2 Posters 9.0k Views 2 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.
  • mrjjM mrjj

    @freddy311082 said:
    And if you try with no %exe ?

    freddy311082F Offline
    freddy311082F Offline
    freddy311082
    wrote on last edited by
    #3

    @mrjj said:

    @freddy311082 said:
    And if you try with no %exe ?

    if I try with no %exe xterm work, but debugger doesn't... and I need to debug my app...

    I'm working with KDevelop project, so, I'm loading a CMakeList.txt file, not a .pro file

    My point is, I need to use xterm -e -hold but at the same time, I need to use the debugger... with KDevelop I can use the debugger, and I need the same with Qt Creator

    regards

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

      I installed qt 5.5 in kubuntu.
      I put
      /usr/bin/xterm -hold -e in "Terminal"
      and it display a xterm and stops at break points.
      Only tested with some printf + fflush(stdout);

      Seems ok?

      freddy311082F 1 Reply Last reply
      0
      • mrjjM mrjj

        I installed qt 5.5 in kubuntu.
        I put
        /usr/bin/xterm -hold -e in "Terminal"
        and it display a xterm and stops at break points.
        Only tested with some printf + fflush(stdout);

        Seems ok?

        freddy311082F Offline
        freddy311082F Offline
        freddy311082
        wrote on last edited by
        #5

        @mrjj

        well... let me explain my environment..

        in my enterprise they use KDevelop to develop our system... I'm loading a CMakeList.txt project, not a .pro file. In the second place, I'm running an external application... my application is a pp_paraguay_suscripcion.mod, which is a library, is not an executable file.

        I had set the Executable and Working directory configurations manually, which are in the Project configuration in the Run tab from the Kit which I use...

        after that, I had set the xterm -hold -e configuration in the Terminal configuration...

        I'm using Debian Wizzy... run my application work fine, the problem is when I try to debug it... With KDevelop I can do it well, but with QtCreator I can't because, the program wait for my input, and after I set my input, program run and finish without stop in any breakpoint...

        that is my issue... maybe I'm missing something, but I don't know what

        regards

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

          Im not sure it can work if not all are build in qt.

          https://forum.qt.io/topic/26538/problem-debugging-shared-and-static-libs-in-qt-creator/2

          I assume pp_paraguay_suscripcion.mod is a .so
          and you have another program you set "run" as to use as loader / main program. ( is that also build in qtCreator ?)

          I have never tried a CMakeList project, but I assume it does set it for debug.

          Have you tried something simple and seen that it can stop at break points ?

          1 Reply Last reply
          0
          • freddy311082F Offline
            freddy311082F Offline
            freddy311082
            wrote on last edited by
            #7

            pp_paraguay_suscripcion.mod is an so and I have set run other program who load pp_paraguay_suscripcion.mod. Neither of then are build with QtCreator... they are build with KDevelop...

            I have try only set breakpoint into the first function cal of my pp_paraguay_suscripcion.mod library, but QtCreator does not stop there...

            that is my problem

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

              I have not tried with a non qt loader program.
              Maybe I can later.
              And you are 100% sure the pp_mod SO are in debug mode ?

              SET(CMAKE_BUILD_TYPE Debug)
              project(mybuildtype)

              in top of CMakeList.txt ?

              freddy311082F 1 Reply Last reply
              0
              • mrjjM mrjj

                I have not tried with a non qt loader program.
                Maybe I can later.
                And you are 100% sure the pp_mod SO are in debug mode ?

                SET(CMAKE_BUILD_TYPE Debug)
                project(mybuildtype)

                in top of CMakeList.txt ?

                freddy311082F Offline
                freddy311082F Offline
                freddy311082
                wrote on last edited by
                #9

                @mrjj yes because the same application I'm debugging it with KDevelop, is exactly the same :(

                mrjjM 1 Reply Last reply
                0
                • freddy311082F freddy311082

                  @mrjj yes because the same application I'm debugging it with KDevelop, is exactly the same :(

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #10

                  @freddy311082

                  Hmm , then i am out of suggestions.

                  The external application (the loader) is a kdevelop program, or completely external ?

                  Would it be possible to build that in QCreator too just to check?

                  freddy311082F 1 Reply Last reply
                  0
                  • freddy311082F Offline
                    freddy311082F Offline
                    freddy311082
                    wrote on last edited by
                    #11

                    the external application is an executable made it a time ago and I have not permission to its code.... QtCreator run the executable application, and in some point he stop running waiting for my input in console (in this case, xterm)... when I set the input, debugger does not stop... i can build my .mod file with qt creator, in fact, I made it many times, the problem is that the debugger does not stop...

                    tomorrow i will build again the app with qt creator and I'll tell you my frind

                    thanks for answer

                    regards

                    1 Reply Last reply
                    0
                    • mrjjM mrjj

                      @freddy311082

                      Hmm , then i am out of suggestions.

                      The external application (the loader) is a kdevelop program, or completely external ?

                      Would it be possible to build that in QCreator too just to check?

                      freddy311082F Offline
                      freddy311082F Offline
                      freddy311082
                      wrote on last edited by
                      #12

                      @mrjj

                      Hi mrjj

                      I had compiled my .mod file with Qt Creator and debugger doesn't stop in the breakpoint

                      I cant compile with Qt Creator the main application who run and load my library, I don't have access to it, and I think that we are found a bug, because KDevelop stop in the break point and Qt Creator doesn't.

                      And I know that Qt Creator is running my application because I can see the my output messages at xterm console, but DEBUGGER DOESN'T STOP IN THE BREAKPOINTS !! :(

                      regards my friend, and thank you very much

                      mrjjM 1 Reply Last reply
                      0
                      • freddy311082F freddy311082

                        @mrjj

                        Hi mrjj

                        I had compiled my .mod file with Qt Creator and debugger doesn't stop in the breakpoint

                        I cant compile with Qt Creator the main application who run and load my library, I don't have access to it, and I think that we are found a bug, because KDevelop stop in the break point and Qt Creator doesn't.

                        And I know that Qt Creator is running my application because I can see the my output messages at xterm console, but DEBUGGER DOESN'T STOP IN THE BREAKPOINTS !! :(

                        regards my friend, and thank you very much

                        mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on last edited by
                        #13

                        @freddy311082

                        Hi freddy

                        If I read here
                        http://doc.qt.io/qtcreator/creator-debugger-operating-modes.html
                        and Launching in Start External Mode
                        it should be as easy
                        Debug > Start Debugging > Start and Debug External Application.
                        and select your "main application"

                        So if that is not working, I guess you found a bug yes. As far as I understand
                        what you have/want.

                        freddy311082F 1 Reply Last reply
                        0
                        • mrjjM mrjj

                          @freddy311082

                          Hi freddy

                          If I read here
                          http://doc.qt.io/qtcreator/creator-debugger-operating-modes.html
                          and Launching in Start External Mode
                          it should be as easy
                          Debug > Start Debugging > Start and Debug External Application.
                          and select your "main application"

                          So if that is not working, I guess you found a bug yes. As far as I understand
                          what you have/want.

                          freddy311082F Offline
                          freddy311082F Offline
                          freddy311082
                          wrote on last edited by
                          #14

                          @mrjj

                          well my friend, then we found a bug, because it doesn't work :(

                          regards

                          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