Provide human readable debugger states

The debuggerengine has an internal state machine. This change provides
the state name instead of the states number for debugging purposes.

Change-Id: Ic8d63902e83e3905d7880a703302cb597174460b
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Wolfgang Bremer
2017-04-06 14:41:28 +02:00
parent f9cabade6b
commit 60379856a4

View File

@@ -2125,7 +2125,7 @@ void DebuggerEngine::checkState(DebuggerState state, const char *file, int line)
return;
QString msg = QString("UNEXPECTED STATE: %1 WANTED: %2 IN %3:%4")
.arg(current).arg(state).arg(QLatin1String(file)).arg(line);
.arg(stateName(current)).arg(stateName(state)).arg(QLatin1String(file)).arg(line);
showMessage(msg, LogError);
qDebug("%s", qPrintable(msg));