Difference between revisions of "Development/Tutorials/Collaboration/Attica/Tips"

Jump to: navigation, search
(Debugging Attica)
(use other template)
Line 1: Line 1:
 
= Debugging Attica  =
 
= Debugging Attica  =
In
+
In {{path|attica/lib/atticabasejob.cpp}}
<code>attica/lib/atticabasejob.cpp</code>
+
 
you can enable the debug output of all XML the server sends.
 
you can enable the debug output of all XML the server sends.
 
Simply add the qDebug() to the dataFinished function:
 
Simply add the qDebug() to the dataFinished function:

Revision as of 21:47, 18 November 2009

Debugging Attica

In attica/lib/atticabasejob.cpp you can enable the debug output of all XML the server sends. Simply add the qDebug() to the dataFinished function:

void BaseJob::dataFinished() {

   if (d->m_reply->error() == QNetworkReply::NoError) {
       QByteArray data = d->m_reply->readAll();
       qDebug() << data;
       ...

and you will see lots of XML in your debug shell.


KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal