forked from qt-creator/qt-creator
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user