12-29-2012 10:06 AM
Hi,
Yesterday evening I had to restore the OS on my Dev Alpha B device (Hung on start screen for hours). Now I don't see any logging messages from qDebug() or console.log using either slog2info or the Device Log screen within momentics.
Last log message I see is from 28-Dec-2012 @ 9pm.
Any Suggestions? It's kind of hard to debug without any messages.
12-29-2012 10:34 AM
12-29-2012 03:54 PM
I have tried restarting my computer and still don't see any messages.
When restoring my Dev Alpha I used the latest firmware downloaded from this dev alpha page.
Thanks for the suggestion. Any other ideas? ![]()
12-29-2012 06:29 PM
Just a quick note to anyone else who might find themselves in a similar spot. While I have not figured out a solution for this problem, I have a work-around that uses a 'log file' that I can access using the Target File System Navigator. This at least lets me debug my apps.
Here are the methods I use (Quick & Dirty, illustrates the idea):
//
// Log to a file since console.log and qDebug are broken
//
bool DebugLogEnabled = false;
const QString LogFile = QDir::currentPath() + "/app/native/assets/log.log";
void DAL::log(QString message){
if(DebugLogEnabled){
QFile Log;
Log.setFileName(LogFile);
Log.open(QIODevice::Append);
QDateTime Date = QDateTime::currentDateTime();
QTextStream OutStream(&Log);
OutStream << Date.toString() << " - " << message << "\n";
Log.close();
}
}
//
// Let users enable debug logging from within application
//
void DAL::ToggleDebugLog(){
if(DebugLogEnabled){
DebugLogEnabled = false;
} else {
DebugLogEnabled = true;
}
}
01-04-2013 10:08 PM
Just wanted to note that after a few days Debug logging from qDebug() and console.log() started appearing again in slog2info. I'm not sure what the root cause was.