Development/Tutorials/Collaboration/Attica/Tips: Difference between revisions
< Development | Tutorials
(Created page with '= Debugging Attica = In <code>attica/lib/atticabasejob.cpp</code> you can enable the debug output of all XML the server sends. Simply add the qDebug() to the dataFinished functi...') |
|||
Line 11: | Line 11: | ||
QByteArray data = d->m_reply->readAll(); | QByteArray data = d->m_reply->readAll(); | ||
'''qDebug() << data;''' | '''qDebug() << data;''' | ||
... | |||
</code> | </code> | ||
and you will see lots of XML in your debug shell. |
Revision as of 17:27, 17 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.