Based on the Qt Creator setup discussed in [I 7.5 Using the Qt Creator IDE], this chapter demonstrates a
simple Qt Widget application debugging session.
Make sure that all Qt Creator setup steps are already done up to [I 7.5.1 Developing with Qt Creator]
Note: For all the following steps the SDK environment has to be sourced.
$ source /opt/seconorth-wayland/kirkstone-7.0/environment-setup-cortexa9t2hf-neon-seconorth-linux-gnueabi $ make
Create a new project through File->New file or project... as shown in Qt creator new project creation image.
Select Qt Widgets Application as shown in Qt Creator Qt Widget Application project type selection image.
Name the project myqtapp as shown in Qt Creator project naming image.
Select the build system as qmake as we are making a simple qt application.
Leave the default widget class creation setup as shown in Qt Creator project main class information.
We can select the desired local language and get the corresponding translation file.
Select the cross development kit that was created and configured in [I 7.5.1 Developing with Qt Creator] as shown in Qt Creator kit selection image.
Do not setup any version control system as shown in Qt Creator project version control setup image.
Add the following lines to myqtapp.pro to set up the installation path of the myqtapp application:
... linux-* { target.path = /tmp INSTALLS += target } ...
as shown in Qt Creator target installation path setup image. We select /tmp here.
Select Projects->Build & Run->Run>Add Deploy Step
and select Run custom remote command as shown in Qt Creator custom remote command insertion image.
Add the command
systemctl stop seco-show-demo
as shown in above image to make sure that the automatically Seco NE demo is stopped if it’s running.
From the above image we can further see, that the remote installation directory we set up
previously is now known under Files to Deploy:
Now, set up a breakpoints shown in Qt Creator break-point setup image by right clicking the desired line through the context menu.
Finally, debugging can be started as shown in the above image.
For more information about Qt Creator debugging consult the debugging part of the reference manual.