![Phytec phyBoard Wega AM335x Скачать руководство пользователя страница 60](http://html1.mh-extra.com/html/phytec/phyboard-wega-am335x/phyboard-wega-am335x_application-manual_1554191060.webp)
phyBOARD-Wega AM335x [PB-00802-xxx]
44
©
PHYTEC Messtechnik GmbH 2014 L-792e_1
Click outside of the context menu to close it.
Now you can start the compilation and execution of the application by clicking the
green
triangle
.
After the application is compiled a window opens displaying the application running.
Close the running application.
2.2.6
Debugging the Demo Application
We finish the Qt Creator chapter by showing how to debug the
HelloWidget
demo
application.
2.2.6.1
Using QDebug for simple Debugging Messages
In our first debugging step we use the
QDebug
class. This class provides an output stream
for debugging information. It is used whenever the developer needs to write out
debugging or tracing information to a device, file, string or console.
To make use of the
QDebug
functions
QDebug
is already included in the header of the file
mainwindow.cpp.
In this file you will also see two out-commented lines in the function
on_btn_showLogo_clicked()
which
start with a
qDebug()
command
.
This is an example how
to make use of qDebug().