I wanted to use qDebug in the Qt unit testing, i had written the code of qDebug but it is not getting diplayed
I even used
ctest -R alkimia-alkinvoice -VV
But even this shows only the location where the error is coming from.
but i needed to use qDebug for more information about the error
To quote the documentation for qDebug()..
I’m going to assume you are running under Windows, sorry if that is incorrect.
qDebug()output under Windows is converted into Win32OutputDebugString()API calls. If you are running under a debugger/IDE that can hook into that API then you should see the debug outputs in one of that program’s windows.If you add
CONFIG+=consoleto your .pro file and rebuild/run your program from the console, you should see the debug output.