< Development | Tutorials
Difference between revisions of "Development/Tutorials/Collaboration/Attica/Tips"
(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...') |
Neverendingo (talk | contribs) m (Text replace - "</code>" to "</syntaxhighlight>") |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
= Debugging Attica = | = Debugging Attica = | ||
− | In | + | In {{path|attica/lib/atticabasejob.cpp}} |
− | |||
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: | ||
− | < | + | <syntaxhighlight lang="text"> |
void BaseJob::dataFinished() | void BaseJob::dataFinished() | ||
{ | { | ||
if (d->m_reply->error() == QNetworkReply::NoError) { | if (d->m_reply->error() == QNetworkReply::NoError) { | ||
QByteArray data = d->m_reply->readAll(); | QByteArray data = d->m_reply->readAll(); | ||
− | + | qDebug() << data; // ADD THIS LINE | |
− | </ | + | ... |
+ | </syntaxhighlight> | ||
+ | |||
+ | and you will see lots of XML in your debug shell. |
Latest revision as of 20:50, 29 June 2011
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; // ADD THIS LINE
...
and you will see lots of XML in your debug shell.
This page was last edited on 29 June 2011, at 20:50. Content is available under Creative Commons License SA 4.0 unless otherwise noted.