forked from qt-creator/qt-creator
Debugger: Annotate internal debug output with engine type
Makes it easier to reason in mixed setups. Change-Id: I4f7aa43847dab51d4041fb1b9850ed9860a6dafc Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1765,6 +1765,10 @@ void DebuggerEngine::showMessage(const QString &msg, int channel, int timeout) c
|
|||||||
d->m_logWindow->showInput(LogInput, msg);
|
d->m_logWindow->showInput(LogInput, msg);
|
||||||
d->m_logWindow->showOutput(LogInput, msg);
|
d->m_logWindow->showOutput(LogInput, msg);
|
||||||
break;
|
break;
|
||||||
|
case LogOutput:
|
||||||
|
case LogWarning:
|
||||||
|
d->m_logWindow->showOutput(channel, msg);
|
||||||
|
break;
|
||||||
case LogError:
|
case LogError:
|
||||||
d->m_logWindow->showInput(LogError, "ERROR: " + msg);
|
d->m_logWindow->showInput(LogError, "ERROR: " + msg);
|
||||||
d->m_logWindow->showOutput(LogError, "ERROR: " + msg);
|
d->m_logWindow->showOutput(LogError, "ERROR: " + msg);
|
||||||
@@ -1779,7 +1783,7 @@ void DebuggerEngine::showMessage(const QString &msg, int channel, int timeout) c
|
|||||||
emit appendMessageRequested(msg, StdErrFormat, false);
|
emit appendMessageRequested(msg, StdErrFormat, false);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
d->m_logWindow->showOutput(channel, msg);
|
d->m_logWindow->showOutput(channel, QString("[%1] %2").arg(debuggerName(), msg));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user