diff --git a/src/plugins/debugger/debuggerruncontrol.cpp b/src/plugins/debugger/debuggerruncontrol.cpp index fb43e60eeaf..b60f8b296fc 100644 --- a/src/plugins/debugger/debuggerruncontrol.cpp +++ b/src/plugins/debugger/debuggerruncontrol.cpp @@ -708,6 +708,13 @@ static bool fixupParameters(DebuggerRunParameters &rp, RunControl *runControl, Q } } + // FIXME: We can't handle terminals yet. + if (rp.useTerminal && rp.cppEngineType == LldbEngineType) { + qWarning("Run in Terminal is not supported yet with the LLDB backend"); + m_errors.append(DebuggerPlugin::tr("Run in Terminal is not supported with the LLDB backend.")); + rp.useTerminal = false; + } + return true; } diff --git a/src/plugins/debugger/lldb/lldbengine.cpp b/src/plugins/debugger/lldb/lldbengine.cpp index 433440f5f47..9aedd4c3a1b 100644 --- a/src/plugins/debugger/lldb/lldbengine.cpp +++ b/src/plugins/debugger/lldb/lldbengine.cpp @@ -176,13 +176,6 @@ void LldbEngine::abortDebugger() void LldbEngine::setupEngine() { - // FIXME: We can't handle terminals yet. - if (runParameters().useTerminal) { - qWarning("Run in Terminal is not supported yet with the LLDB backend"); - showMessage(tr("Run in Terminal is not supported with the LLDB backend."), AppError); - runParameters().useTerminal = false; - } - if (runParameters().useTerminal) { QTC_CHECK(false); // See above. if (HostOsInfo::isWindowsHost()) {