Development/Tutorials/Collaboration/Attica/Tips

    From KDE TechBase
    Revision as of 20:47, 18 November 2009 by Dhaumann (talk | contribs) (use other template)
    The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

    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.