QtCreator remote debugging an embedded linux device
-
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?? -
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 += targetBut 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 -
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@ -
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.