Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Problems about remote debugging embedded linux with qt creator.
Forum Updated to NodeBB v4.3 + New Features

Problems about remote debugging embedded linux with qt creator.

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 856 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.
  • L Offline
    L Offline
    liurong
    wrote on last edited by liurong
    #1

    Hi,
    I am debugging a C program on embedded linux platform, now I can debug the program in creator with a gdbserver running on the board. because the openssh has been transplanted successfully , I can use any functions proviced by Qt creator , add break point, step over ,step in and any other operations provided by Qt creator.
    But here is a problem: the Application output panel in the Qt creator can not display the Application output . for example, my program is like this:

        int main()
        {
                  printf("hello,qt");
        }
    

    when my program executed to the printf function , Application output panel should display "hello, qt", but the result it that it displays nothing. (I have add the CONFIG += console in my .pro file).

    so , I want to know : is there anything wrong with my configuration for Qt creator or my debugger, or it is a bug of qt creator , if not , how can I configure my qt creator or debugger to make my Application output panel display the application output . can someone help me with this problem?

    best regards.
    Liurong

    1 Reply Last reply
    0
    • J Offline
      J Offline
      justin1122
      wrote on last edited by justin1122
      #2

      Use this instead to see in your Qt console output:

      qDebug() << "Hello, Qt";

      L 1 Reply Last reply
      0
      • J justin1122

        Use this instead to see in your Qt console output:

        qDebug() << "Hello, Qt";

        L Offline
        L Offline
        liurong
        wrote on last edited by
        #3

        @justin1122
        Thanks for your help !
        I have tried this, it's a good solution, but it works only in a C++ program.
        since the project that I created is a plain C project , so I can not include the header file "qdebug.h", in this situation, how can I do this, is there any funtions for plain C language has the same effect?

        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