diff --git a/src/plugins/debugger/debuggeritemmanager.cpp b/src/plugins/debugger/debuggeritemmanager.cpp index 4cfe7cf1541..c952951ebfa 100644 --- a/src/plugins/debugger/debuggeritemmanager.cpp +++ b/src/plugins/debugger/debuggeritemmanager.cpp @@ -231,7 +231,7 @@ void DebuggerItemManager::autoDetectGdbOrLldbDebuggers() = lldbInfo.runBlocking(QLatin1String("xcrun"), QStringList() << QLatin1String("--find") << QLatin1String("lldb")); if (response.result == Utils::SynchronousProcessResponse::Finished) { - QString lPath = response.allOutput(); + QString lPath = response.allOutput().trimmed(); if (!lPath.isEmpty()) { const QFileInfo fi(lPath); if (fi.exists() && fi.isExecutable() && !fi.isDir())