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. QtCreator remote debugging an embedded linux device
Forum Updated to NodeBB v4.3 + New Features

QtCreator remote debugging an embedded linux device

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 7.9k Views 1 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.
  • G Offline
    G Offline
    gandiii
    wrote on last edited by
    #1

    Hi,

    I'm still trying to do remote debugging on my raspberry pi, but I have not found
    a working solution.

    I have:

    • virtual Debian
    • crosscompiler (generated by crosstool-ng)
    • qt version 4.8.4 crosscompiled

    I can compile a simple qt console project with a qDebug output for test.
    To this point it works, but now I want to remote debug this application.
    These are the envirement settings:
    !http://i46.tinypic.com/dblgcy.png!
    how can I set the target executable path??

    1 Reply Last reply
    0
    • M Offline
      M Offline
      messi
      wrote on last edited by
      #2

      Which version of QtCreator do you use?
      It seams to me that you haven't add the following lines to your project file:
      target.path = <remote path>
      INSTALLS += target

      But this is actually not necessary.
      You can go directly to: Debug-> Start Debugging -> Attach to Remote Debug Server.

      Do not forget to start the gdbsever on you target.
      Cheers

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gandiii
        wrote on last edited by
        #3

        qtcreator 2.7.81
        thx for your help, now the path works, but if I want
        to debug (starting the gdbserver manual or with qtcreator) i get this
        error message:
        @Cannot continue debugged process:
        Remote 'g' packet reply is too long: 0000000051feffbe000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050fdffbe00000000@

        1 Reply Last reply
        0
        • M Offline
          M Offline
          messi
          wrote on last edited by
          #4

          I know this bug. I had it one or two years ago.
          Check google about it.

          Be sure that your gdb matches with the gdbserver on the target.
          You have to use a special gdb not the one which is installed by default on your host.

          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