05-30-2012 02:32 PM
I have tried several ways to show debug information to console, however, there is nothing there.
How to write with IDE...
here is my code:
printf("%i",code); qDebug() << "my debug information"; qWarning()<<"my warning information";
Solved! Go to Solution.
05-30-2012 02:56 PM
I assume you mean Cascades.
I have used qDebug() << "stuff " << i; from C++ and console.debug(value) from qml.
These show up in debug builds in the console log in Momentics.
05-30-2012 03:41 PM
Are you building configuration Device-Debug or Simulator-Debug?
It just worked for me in the samples.
Try changing stampCollector to put a qDebug() << "Hello"; in setUpStampListModel and look in the window shown by Window/Show View/Console. Perhaps it's where you are putting the qDebug(). Perhaps you are putting it too early.
I did not see the result of printf even if I added a \n terminator.
Try setting a breakpoint above the qDebug() and step until you have processed that line. Perhaps something afterwards has obscured the message.
05-30-2012 04:04 PM
Thanks for the fflush.
I found a way to misplace and find again my logs in Momentics. If you are versant in Eclipse this is unlikely your issue, but just in case...
See attached picture in case this is the issue.