Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32074

Debug remote linux project shows no application output

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • Qt Creator 15.0.0
    • Qt Creator 15.0.0-rc1
    • Debugger
    • None
    • Linux/X11
    • b1bf4594b (15.0)

    Description

      I have a strange problem with QtCreator 15.0.0-rc1, that I do not have in QtCreator 14 and below.

      I create a simple "Hello World!" test project (e.g. from QtCreator new project wizard) and a run configuration for a remote linux project. 

      • when I click on Run: I see the output in the Application output area
      • but when I set a breakpoint and click on Debug: then no output is shown

      Output  from Run and Debug in QtCreator 14.0.2:

      20:15:21: Starting /tmp/qtc_Test/usr/local/bin/testQtc15 on localhost...
      20:15:21: Environment:
      
      Hello World!
      20:15:21: /tmp/qtc_Test/usr/local/bin/testQtc15 on localhost exited with code 0
      
      20:15:22: Checking available ports...
      20:15:22: Found 101 free ports.
      20:15:23: Starting /usr/bin/gdbserver --multi :10000 on localhost...
      20:15:23: Environment:
      
      Listening on port 10000
      20:15:23: Debugging ssh://lf@localhost/tmp/qtc_Test/usr/local/bin/testQtc15 ...
      Remote debugging from host ::1, port 42216
      Process /tmp/qtc_Test/usr/local/bin/testQtc15 created; pid = 45767
      Hello World!
      
      Child exited with status 0
      20:15:37: /usr/bin/gdbserver on localhost exited with code 0
      20:15:37: Debugging of ssh://lf@localhost/tmp/qtc_Test/usr/local/bin/testQtc15 has finished with exit code 0.
      

       

      And here is the same for QtCreator 15.0.0-rc1:

      20:16:44: Starting /tmp/qtc_Test/usr/local/bin/testQtc15 on localhost...
      20:16:44: Environment:
      
      Hello World!
      20:16:44: /tmp/qtc_Test/usr/local/bin/testQtc15 on localhost exited with code 0
      
      20:16:46: Checking available ports...
      20:16:46: Found 101 free ports.
      20:16:47: Debugging ssh://lf@localhost/tmp/qtc_Test/usr/local/bin/testQtc15 ...
      20:16:51: Debugging of ssh://lf@localhost/tmp/qtc_Test/usr/local/bin/testQtc15 has finished with exit code 0.
      

      Notice the missing "Hello World!". Actually the whole equivalent lines from "Remote debugging from host ::1, port 42216" until "/usr/bin/gdbserver on localhost exited with code 0"  are missing in QtCreator 15.0.0-rc1.

      I see this behavior with a real world program deploying to a real remote device and a simple hello world program using ssh to localhost.

      I do not see this behavior with a normal project (that means Desktop and not "remote").

      The debugger stops at the breakpoint:

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              hjk hjk
              larsf Lars Fischer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change