Kopete 3.5.7 is an IM client for KDE and I'm trying to get it to
somefunction_I_have_not_written (...)
{
QString result = ...;
qDebug(result.ascii());
}

so I get a write out of the result. But I get nothing written in my console window. Is there any thing else I must do to get qDebug to produce output? Compilation options?
It's a lot of source code so it is hard to be sure what to change.