forked from qt-creator/qt-creator
Debugger: Add more information about the debugee when debugging
Fixes: QTCREATORBUG-25159 Change-Id: Ic462c8bb4d9f4f7163dbb9fcc13adce4c7172564 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
@@ -738,7 +738,8 @@ void DebuggerRunTool::start()
|
||||
}
|
||||
}
|
||||
|
||||
appendMessage(tr("Debugging starts"), NormalMessageFormat);
|
||||
appendMessage(tr("Debugging %1 ...").arg(m_runParameters.inferior.commandLine().toUserOutput()),
|
||||
NormalMessageFormat);
|
||||
QString debuggerName = m_engine->objectName();
|
||||
if (m_engine2)
|
||||
debuggerName += ' ' + m_engine2->objectName();
|
||||
@@ -782,7 +783,12 @@ void DebuggerRunTool::handleEngineFinished(DebuggerEngine *engine)
|
||||
{
|
||||
engine->prepareForRestart();
|
||||
if (--d->engineStopsNeeded == 0) {
|
||||
appendMessage(tr("Debugging has finished"), NormalMessageFormat);
|
||||
QString cmd = m_runParameters.inferior.commandLine().toUserOutput();
|
||||
QString msg = engine->runParameters().exitCode // Main engine.
|
||||
? tr("Debugging of %1 has finished with exit code %2.")
|
||||
.arg(cmd).arg(engine->runParameters().exitCode.value())
|
||||
: tr("Debugging of %1 has finished.").arg(cmd);
|
||||
appendMessage(msg, NormalMessageFormat);
|
||||
reportStopped();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user