diff --git a/src/backtracewidget.cpp b/src/backtracewidget.cpp --- a/src/backtracewidget.cpp +++ b/src/backtracewidget.cpp @@ -306,7 +306,7 @@ ui.m_extraDetailsLabel->setText(xi18nc("@info/rich", "You need to first install the debugger " "application (%1) then click the Reload" " button.", - m_btGenerator->debugger().name())); + m_btGenerator->debugger().displayName())); } ui.m_reloadBacktraceButton->setEnabled(true); diff --git a/src/debugger.h b/src/debugger.h --- a/src/debugger.h +++ b/src/debugger.h @@ -41,7 +41,7 @@ bool isInstalled() const; /** Returns the translatable name of the debugger (eg. "GDB") */ - QString name() const; + QString displayName() const; /** Returns the code name of the debugger (eg. "gdb"). */ QString codeName() const; diff --git a/src/debugger.cpp b/src/debugger.cpp --- a/src/debugger.cpp +++ b/src/debugger.cpp @@ -47,16 +47,16 @@ { QString tryexec = tryExec(); if(tryexec.isEmpty()) { - qCDebug(DRKONQI_LOG) << "tryExec of" << name() << "is empty!"; + qCDebug(DRKONQI_LOG) << "tryExec of" << codeName() << "is empty!"; return false; } // Find for executable in PATH and in our application path return !QStandardPaths::findExecutable(tryexec).isEmpty() || !QStandardPaths::findExecutable(tryexec, {QCoreApplication::applicationDirPath()}).isEmpty(); } -QString Debugger::name() const +QString Debugger::displayName() const { return isValid() ? m_config->group("General").readEntry("Name") : QString(); } diff --git a/src/debuggerlaunchers.cpp b/src/debuggerlaunchers.cpp --- a/src/debuggerlaunchers.cpp +++ b/src/debuggerlaunchers.cpp @@ -38,7 +38,7 @@ QString DefaultDebuggerLauncher::name() const { - return m_debugger.name(); + return m_debugger.displayName(); } void DefaultDebuggerLauncher::start() diff --git a/src/drkonqibackends.cpp b/src/drkonqibackends.cpp --- a/src/drkonqibackends.cpp +++ b/src/drkonqibackends.cpp @@ -172,7 +172,9 @@ Debugger firstKnownGoodDebugger, preferredDebugger; foreach (const Debugger & debugger, internalDebuggers) { - qCDebug(DRKONQI_LOG) << "Check debugger if" << debugger.name() << "is installed:" << debugger.isInstalled(); + qCDebug(DRKONQI_LOG) << "Check debugger if" + << debugger.displayName() << "[" << debugger.codeName() << "]" + << "is installed:" << debugger.isInstalled(); if (!firstKnownGoodDebugger.isValid() && debugger.isInstalled()) { firstKnownGoodDebugger = debugger; } @@ -192,6 +194,7 @@ } } + qCDebug(DRKONQI_LOG) << "Using debugger:" << preferredDebugger.codeName(); return new DebuggerManager(preferredDebugger, Debugger::availableExternalDebuggers(QStringLiteral("KCrash")), this); }